DDG4.Geant4 Class Reference
Public Member Functions | |
| def | __init__ (self, kernel=None, calo='Geant4CalorimeterAction', tracker='Geant4SimpleTrackerAction') |
| def | kernel (self) |
| def | master (self) |
| def | setupUI (self, typ='csh', vis=False, ui=True, macro=None) |
| def | setupCshUI (self, typ='csh', vis=False, ui=True, macro=None) |
| def | addUserInitialization (self, worker, worker_args=None, master=None, master_args=None) |
| def | detectorConstruction (self) |
| def | addDetectorConstruction (self, name_type, field=None, field_args=None, geometry=None, geometry_args=None, sensitives=None, sensitives_args=None, allow_threads=False) |
| def | addPhaseAction (self, phase_name, factory_specification, ui=True, instance=None) |
| def | addConfig (self, factory_specification) |
| def | addInit (self, factory_specification) |
| def | addStart (self, factory_specification) |
| def | addStop (self, factory_specification) |
| def | execute (self, num_events=None) |
| def | printDetectors (self) |
| def | setupDetector (self, name, action, collections=None) |
| def | setupCalorimeter (self, name, type=None, collections=None) |
| def | setupTracker (self, name, type=None, collections=None) |
| def | setupTrackingFieldMT (self, name='MagFieldTrackingSetup', stepper='ClassicalRK4', equation='Mag_UsualEqRhs', prt=False) |
| def | setupTrackingField (self, name='MagFieldTrackingSetup', stepper='ClassicalRK4', equation='Mag_UsualEqRhs', prt=False) |
| def | setupPhysics (self, name) |
| def | addPhysics (self, name) |
| def | setupGun (self, name, particle, energy, isotrop=True, multiplicity=1, position=(0.0, 0.0, 0.0), register=True, **args) |
| def | setupROOTOutput (self, name, output, mc_truth=True) |
| def | setupLCIOOutput (self, name, output) |
| def | setupEDM4hepOutput (self, name, output) |
| def | buildInputStage (self, generator_input_modules, output_level=None, have_mctruth=True) |
| def | run (self) |
Public Attributes | |
| description | |
| sensitive_types | |
Detailed Description
Helper object to perform stuff, which occurs very often. I am sick of typing the same over and over again. Hence, I grouped often used python fragments to this small class to re-usage. \author M.Frank \version 1.0
Constructor & Destructor Documentation
◆ __init__()
| def DDG4.Geant4.__init__ | ( | self, | |
kernel = None, |
|||
calo = 'Geant4CalorimeterAction', |
|||
tracker = 'Geant4SimpleTrackerAction' |
|||
| ) |
Member Function Documentation
◆ addConfig()
| def DDG4.Geant4.addConfig | ( | self, | |
| factory_specification | |||
| ) |
Add a new phase action to the 'configure' step. Called at the beginning of Geant4Exec::configure. The factory specification is the typical string "<factory_name>/<instance name>". If no instance name is specified it defaults to the factory name. \author M.Frank
◆ addDetectorConstruction()
| def DDG4.Geant4.addDetectorConstruction | ( | self, | |
| name_type, | |||
field = None, |
|||
field_args = None, |
|||
geometry = None, |
|||
geometry_args = None, |
|||
sensitives = None, |
|||
sensitives_args = None, |
|||
allow_threads = False |
|||
| ) |
◆ addInit()
| def DDG4.Geant4.addInit | ( | self, | |
| factory_specification | |||
| ) |
Add a new phase action to the 'initialize' step. Called at the beginning of Geant4Exec::initialize. The factory specification is the typical string "<factory_name>/<instance name>". If no instance name is specified it defaults to the factory name. \author M.Frank
◆ addPhaseAction()
| def DDG4.Geant4.addPhaseAction | ( | self, | |
| phase_name, | |||
| factory_specification, | |||
ui = True, |
|||
instance = None |
|||
| ) |
◆ addPhysics()
◆ addStart()
| def DDG4.Geant4.addStart | ( | self, | |
| factory_specification | |||
| ) |
◆ addStop()
| def DDG4.Geant4.addStop | ( | self, | |
| factory_specification | |||
| ) |
◆ addUserInitialization()
| def DDG4.Geant4.addUserInitialization | ( | self, | |
| worker, | |||
worker_args = None, |
|||
master = None, |
|||
master_args = None |
|||
| ) |
◆ buildInputStage()
| def DDG4.Geant4.buildInputStage | ( | self, | |
| generator_input_modules, | |||
output_level = None, |
|||
have_mctruth = True |
|||
| ) |
Generic build of the input stage with multiple input modules. Actions executed are: 1) Register Generation initialization action 2) Append all modules to build the complete input record These modules are readers/particle sources, boosters and/or smearing actions. 3) Merge all existing interaction records 4) Add the MC truth handler \author M.Frank
◆ detectorConstruction()
◆ execute()
| def DDG4.Geant4.execute | ( | self, | |
num_events = None |
|||
| ) |
◆ kernel()
| def DDG4.Geant4.kernel | ( | self | ) |
◆ master()
| def DDG4.Geant4.master | ( | self | ) |
◆ printDetectors()
◆ run()
| def DDG4.Geant4.run | ( | self | ) |
◆ setupCalorimeter()
| def DDG4.Geant4.setupCalorimeter | ( | self, | |
| name, | |||
type = None, |
|||
collections = None |
|||
| ) |
◆ setupCshUI()
| def DDG4.Geant4.setupCshUI | ( | self, | |
typ = 'csh', |
|||
vis = False, |
|||
ui = True, |
|||
macro = None |
|||
| ) |
◆ setupDetector()
| def DDG4.Geant4.setupDetector | ( | self, | |
| name, | |||
| action, | |||
collections = None |
|||
| ) |
◆ setupEDM4hepOutput()
| def DDG4.Geant4.setupEDM4hepOutput | ( | self, | |
| name, | |||
| output | |||
| ) |
◆ setupGun()
| def DDG4.Geant4.setupGun | ( | self, | |
| name, | |||
| particle, | |||
| energy, | |||
isotrop = True, |
|||
multiplicity = 1, |
|||
position = (0.0, 0.0, 0.0), |
|||
register = True, |
|||
| ** | args | ||
| ) |
◆ setupLCIOOutput()
| def DDG4.Geant4.setupLCIOOutput | ( | self, | |
| name, | |||
| output | |||
| ) |
◆ setupPhysics()
◆ setupROOTOutput()
| def DDG4.Geant4.setupROOTOutput | ( | self, | |
| name, | |||
| output, | |||
mc_truth = True |
|||
| ) |
◆ setupTracker()
| def DDG4.Geant4.setupTracker | ( | self, | |
| name, | |||
type = None, |
|||
collections = None |
|||
| ) |
◆ setupTrackingField()
| def DDG4.Geant4.setupTrackingField | ( | self, | |
name = 'MagFieldTrackingSetup', |
|||
stepper = 'ClassicalRK4', |
|||
equation = 'Mag_UsualEqRhs', |
|||
prt = False |
|||
| ) |
◆ setupTrackingFieldMT()
| def DDG4.Geant4.setupTrackingFieldMT | ( | self, | |
name = 'MagFieldTrackingSetup', |
|||
stepper = 'ClassicalRK4', |
|||
equation = 'Mag_UsualEqRhs', |
|||
prt = False |
|||
| ) |
◆ setupUI()
| def DDG4.Geant4.setupUI | ( | self, | |
typ = 'csh', |
|||
vis = False, |
|||
ui = True, |
|||
macro = None |
|||
| ) |
Member Data Documentation
◆ description
◆ sensitive_types
The documentation for this class was generated from the following file:
1.8.18