Public Member Functions | Public Attributes | List of all members
python.g4viscp.G4Scene Class Reference

Public Member Functions

def __init__ (self, aname, vol="world", acopyno=0, amode=0, bmode=1)
 
def create_scene (self)
 
def update_scene (self)
 

Public Attributes

 name
 
 volume
 
 copyno
 
 mode_eventaction
 
 mode_runaction
 
 mode
 

Detailed Description

Definition at line 16 of file g4viscp.py.

Constructor & Destructor Documentation

def python.g4viscp.G4Scene.__init__ (   self,
  aname,
  vol = "world",
  acopyno = 0,
  amode = 0,
  bmode = 1 
)

Definition at line 19 of file g4viscp.py.

19  amode=0, bmode=1):
20  self.name= aname
21  self.volume= vol
22  self.copyno= acopyno
23  self.mode_eventaction= amode # 0: accumulate / 1: refresh
24  self.mode_runaction= bmode # 0: accumulate / 1: refresh
25  self.mode= ("accumulate", "refresh")
26 

Member Function Documentation

def python.g4viscp.G4Scene.create_scene (   self)

Definition at line 27 of file g4viscp.py.

References python.g4viscp.G4Scene.copyno, Definition.Definition.name, Table.name, legacymc_extractor.LegacyMC.name, Chain.Chain.name, ChainData.ChainData.name, nova_fhicl_metadata.NovaFhclExtractor.name, ana::HistDef.name, Controller.Controller.name, PageMaker.PageMaker.name, nova_log_metadata.NovaLogExtractor.name, Component.Component.name, ana::MultiHistDef.name, Plot.name, HistDef.name, python.g4viscp.G4Scene.name, CalibrationType.name, nova_h5_metadata.NovaH5.name, plotConfusion.HistSet.name, CutDef.name, ana::NuTruthHistDef.name, bp_plot.Plot.name, GENIEWeightLabel.name, generic.views.Pages.SubdirInfo.name, nova_caf_metadata.NovaCAFExtractor.name, nova_text_metadata.NovaText.name, novaddt::sm_cleaner.name, drawEvents.HistSet.name, mcscore.MCParticle.name, ColumnDef.name, novaddt::MapSource.name, Weight.name, ana::VarDef.name, galleryMaker.FileNBE.name, DefinitionData.DefinitionData.name, ana::CutDef.name, FileUp.name, nova::dbi::DataEpoch.name, ana::PIDCutDef.name, ana::WeightDef.name, PolyDef.name, IntConfig.name, nova_art_metadata.NovaArt.name, nuebarccinc::SelDef.name, nuebarccinc::SelDefST.name, object.name, generic.models.PlotInfo.CanvasSummary.name, nuebarccinc::mHistAxisDef.name, nuebarccinc::mHistAxisSTDef.name, EventContainer.name, generic.models.PlotInfo.PlotComparisonStatistic.name, gen_flatrecord.TypeName.name, generic.models.Organizational.PlotID.name, ana::GenieMultiverseSpectra::knob_sampling_mode.name, TB_WatchdogFx.Tier.name, WatchdogFx.Tier.name, TB_WatchdogFx.Path.name, WatchdogFx.Path.name, ana::GenieMultiverseParameters::knob_sampling_mode.name, ana::nueccinc::SelDef.name, ana::nueccinc::SelDefST.name, ana::SelDef.name, ana::nueccinc::mHistAxisDef.name, ExtrapDef.name, ana::nueccinc::mHistAxisSTDef.name, ana::predictions.name, ana::mHistAxisDef.name, ana::mHistAxisSTDef.name, generic.models.Organizational.Folder.name, std_candles.PlotConfig.name, python.g4viscp.G4Scene.update_scene(), and python.g4viscp.G4Scene.volume.

27  def create_scene(self):
28  ApplyUICommand("/vis/scene/create " + self.name)
29  ApplyUICommand("/vis/scene/add/volume %s %d" %
30  (self.volume, self.copyno))
31  ApplyUICommand("/vis/scene/add/trajectories")
32  self.update_scene()
33 
def update_scene(self)
Definition: g4viscp.py:34
def create_scene(self)
Definition: g4viscp.py:27
def python.g4viscp.G4Scene.update_scene (   self)

Definition at line 34 of file g4viscp.py.

References caf::SRQepid.mode, python.g4viscp.G4Scene.mode, flat::FlatQepid.mode, ana::NuWROSyst::Key_t.mode, flat::FlatNeutrino.mode, caf::SRNeutrino.mode, makeHists.mode, readNtuple.mode, lem::EventSummary.mode, lem::MatchSummary.mode, earms::ElasticArmsValidate.mode, ncs::Xeff.mode, s_traceControl.mode, ncs::NCAna.mode, ana::GenieMultiverseSpectra::knob_sampling_mode.mode, fuzz::FuzzyKValidate.mode, ana::GenieMultiverseParameters::knob_sampling_mode.mode, caf::Proxy< caf::SRNeutrino >.mode, python.g4viscp.G4Scene.mode_eventaction, python.g4viscp.G4Scene.mode_runaction, Definition.Definition.name, Table.name, legacymc_extractor.LegacyMC.name, Chain.Chain.name, ChainData.ChainData.name, nova_fhicl_metadata.NovaFhclExtractor.name, ana::HistDef.name, Controller.Controller.name, PageMaker.PageMaker.name, nova_log_metadata.NovaLogExtractor.name, Component.Component.name, ana::MultiHistDef.name, Plot.name, HistDef.name, python.g4viscp.G4Scene.name, CalibrationType.name, nova_h5_metadata.NovaH5.name, plotConfusion.HistSet.name, CutDef.name, ana::NuTruthHistDef.name, bp_plot.Plot.name, GENIEWeightLabel.name, generic.views.Pages.SubdirInfo.name, nova_caf_metadata.NovaCAFExtractor.name, nova_text_metadata.NovaText.name, novaddt::sm_cleaner.name, drawEvents.HistSet.name, mcscore.MCParticle.name, ColumnDef.name, novaddt::MapSource.name, Weight.name, ana::VarDef.name, galleryMaker.FileNBE.name, DefinitionData.DefinitionData.name, ana::CutDef.name, FileUp.name, ana::PIDCutDef.name, nova::dbi::DataEpoch.name, ana::WeightDef.name, PolyDef.name, IntConfig.name, nova_art_metadata.NovaArt.name, nuebarccinc::SelDef.name, nuebarccinc::SelDefST.name, object.name, generic.models.PlotInfo.CanvasSummary.name, nuebarccinc::mHistAxisDef.name, nuebarccinc::mHistAxisSTDef.name, EventContainer.name, generic.models.PlotInfo.PlotComparisonStatistic.name, gen_flatrecord.TypeName.name, generic.models.Organizational.PlotID.name, ana::GenieMultiverseSpectra::knob_sampling_mode.name, TB_WatchdogFx.Tier.name, WatchdogFx.Tier.name, TB_WatchdogFx.Path.name, WatchdogFx.Path.name, ana::GenieMultiverseParameters::knob_sampling_mode.name, ana::nueccinc::SelDef.name, ana::nueccinc::SelDefST.name, ana::SelDef.name, ana::nueccinc::mHistAxisDef.name, ExtrapDef.name, ana::nueccinc::mHistAxisSTDef.name, ana::predictions.name, ana::mHistAxisDef.name, ana::mHistAxisSTDef.name, generic.models.Organizational.Folder.name, and std_candles.PlotConfig.name.

Referenced by python.g4viscp.G4Scene.create_scene(), and python3.g4viscp.G4Scene.create_scene().

34  def update_scene(self):
35  ApplyUICommand("/vis/scene/select " + self.name)
36  ApplyUICommand("/vis/sceneHandler/attach")
37  ApplyUICommand("/vis/scene/endOfEventAction %s" %
38  (self.mode[self.mode_eventaction]) )
39  ApplyUICommand("/vis/scene/endOfRunAction %s" %
40  (self.mode[self.mode_runaction]) )
41 
42 # ------------------------------------------------------------------
43 # Visualization Control Panel
44 # ------------------------------------------------------------------
def update_scene(self)
Definition: g4viscp.py:34

Member Data Documentation

python.g4viscp.G4Scene.copyno
python.g4viscp.G4Scene.mode
python.g4viscp.G4Scene.mode_eventaction
python.g4viscp.G4Scene.mode_runaction
python.g4viscp.G4Scene.name
python.g4viscp.G4Scene.volume

The documentation for this class was generated from the following file: