ATLAS Offline Software
Functions | Variables
AtlasG4_tf Namespace Reference

Functions

def main ()
 
def getTransform ()
 

Variables

 ListOfDefaultPositionalKeys
 

Function Documentation

◆ getTransform()

def AtlasG4_tf.getTransform ( )

Definition at line 48 of file AtlasG4_tf.py.

48 def getTransform():
49  executorSet = set()
50  from SimuJobTransforms.SimTransformUtils import addAtlasG4Substep, addAtlasG4Arguments
51  addAtlasG4Substep(executorSet)
52  trf = transform(executor = executorSet, description = 'Legacy ATLAS Simulation transform. Inputs must be EVNT else a single particle Generator job options must be specified. Outputs must be HITS or TrackRecords.')
53  addAthenaArguments(trf.parser)
54  addDetectorArguments(trf.parser)
55  addAtlasG4Arguments(trf.parser)
56  return trf
57 

◆ main()

def AtlasG4_tf.main ( )

Definition at line 33 of file AtlasG4_tf.py.

33 def main():
34 
35  msg.info('This is %s' % sys.argv[0])
36 
37  trf = getTransform()
38  trf.parseCmdLineArgs(sys.argv[1:])
39  trf.execute()
40  if 'outputFileValidation' in trf._argdict and trf._argdict['outputFileValidation'].value is False and not ('eventService' in trf._argdict and trf._argdict['eventService'].value):
41  msg.info('Skipping report generation')
42  else:
43  trf.generateReport()
44 
45  msg.info("%s stopped at %s, trf exit code %d" % (sys.argv[0], time.asctime(), trf.exitCode))
46  sys.exit(trf.exitCode)
47 

Variable Documentation

◆ ListOfDefaultPositionalKeys

AtlasG4_tf.ListOfDefaultPositionalKeys

Definition at line 29 of file AtlasG4_tf.py.

python.trfArgs.addDetectorArguments
def addDetectorArguments(parser)
Options related to the setup of the ATLAS detector (used in simulation and digitisation as well as re...
Definition: trfArgs.py:229
python.SimTransformUtils.addAtlasG4Substep
def addAtlasG4Substep(executorSet)
Definition: SimTransformUtils.py:107
python.trfArgs.addAthenaArguments
def addAthenaArguments(parser, maxEventsDefaultSubstep='first', addValgrind=True, addPerfMon=True, addVTune=True)
Options related to running athena in general TODO: Some way to mask certain options (perExec,...
Definition: trfArgs.py:59
AtlasG4_tf.getTransform
def getTransform()
Definition: AtlasG4_tf.py:48
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
AtlasG4_tf.main
def main()
Definition: AtlasG4_tf.py:33
python.SimTransformUtils.addAtlasG4Arguments
def addAtlasG4Arguments(parser)
Definition: SimTransformUtils.py:47
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232