ATLAS Offline Software
Functions
FastChain_tf Namespace Reference

Functions

def main ()
 
def getTransform ()
 
def addFastChainTrfArgs (parser)
 

Function Documentation

◆ addFastChainTrfArgs()

def FastChain_tf.addFastChainTrfArgs (   parser)

Definition at line 80 of file FastChain_tf.py.

80 def addFastChainTrfArgs(parser):
81  "Add transformation arguments for fast chain"
82  parser.defineArgGroup('FastChain','Fast chain options')
83  parser.add_argument('--preSimExec',type=argFactory(argList),nargs='+',
84  help='preExec before simulation step',
85  group='FastChain')
86  parser.add_argument('--postSimExec',type=argFactory(argList),nargs='+',
87  help='postExec after simulation step',
88  group='FastChain')
89  parser.add_argument('--preDigiExec',type=argFactory(argList),nargs='+',
90  help='preExec before digitisation step',
91  group='FastChain')
92  parser.add_argument('--preSimInclude',type=argFactory(argList),nargs='+',
93  help='preInclude before simulation step',
94  group='FastChain')
95  parser.add_argument('--postSimInclude',type=argFactory(argList),nargs='+',
96  help='postInclude after simulation step',
97  group='FastChain')
98  parser.add_argument('--preDigiInclude',type=argFactory(argList),nargs='+',
99  help='preInclude before digitisation step',
100  group='FastChain')
101  parser.defineArgGroup('MCOverlay', 'MC Overlay Options')
102  parser.add_argument('--inputRDO_BKGFile', nargs='+',
103  type=argFactory(argRDOFile, io='input'),
104  help='Input background RDO for MC+MC overlay',
105  group='MCOverlay')
106 
107 

◆ getTransform()

def FastChain_tf.getTransform ( )

Definition at line 40 of file FastChain_tf.py.

40 def getTransform():
41  executorSet = set()
42 
43  addRecoSubsteps(executorSet)
44 
45  executorSet.add(athenaExecutor(name = 'EVNTtoRDO',
46  skeletonCA = 'FullChainTransforms.FastChainSkeleton',
47  substep = 'simdigi', tryDropAndReload = False, perfMonFile = 'ntuple.pmon.gz',
48  inData=['NULL','EVNT', 'RDO_BKG', 'BS_SKIM'],
49  outData=['RDO', 'HITS', 'NULL'] ))
50 
51  trf = transform(executor = executorSet, description = 'Fast chain ATLAS transform with ISF simulation, digitisation'
52  ' and reconstruction. Inputs can be EVNT, with outputs of RDO, ESD, AOD or DPDs.'
53  ' See https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/FastChainTf for more details.')
54 
55  # Common arguments
56  addAthenaArguments(trf.parser)
57  addDetectorArguments(trf.parser)
58  addTriggerArguments(trf.parser)
59 
60  # Reconstruction arguments and outputs (use the factorised 'do it all' function)
61  addAllRecoArgs(trf)
62 
63  # Simulation and digitisation options
64  addCommonSimTrfArgs(trf.parser)
65  addCommonSimDigTrfArgs(trf.parser)
66  addBasicDigiArgs(trf.parser)
67  addSim_tfArgs(trf.parser)
68  addSimIOTrfArgs(trf.parser)
69  # addForwardDetTrfArgs(trf.parser)
70  addPileUpTrfArgs(trf.parser)
71  addTrackRecordArgs(trf.parser)
72  addFastChainTrfArgs(trf.parser)
73 
74  # Overlay arguments
75  from OverlayConfiguration.OverlayTransformHelpers import addOverlayArguments
76  addOverlayArguments(trf.parser)
77 
78  return trf
79 

◆ main()

def FastChain_tf.main ( )

Definition at line 28 of file FastChain_tf.py.

28 def main():
29 
30  msg.info('This is %s', sys.argv[0])
31 
32  trf = getTransform()
33  trf.parseCmdLineArgs(sys.argv[1:])
34  trf.execute()
35  trf.generateReport()
36 
37  msg.info("%s stopped at %s, trf exit code %d", sys.argv[0], time.asctime(), trf.exitCode)
38  sys.exit(trf.exitCode)
39 
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.trfArgs.addTriggerArguments
def addTriggerArguments(parser, addTrigFilter=True)
Add trigger related arguments.
Definition: trfArgs.py:515
python.simTrfArgs.addCommonSimTrfArgs
def addCommonSimTrfArgs(parser)
Add common Simulation transform arguments to an argparse ArgumentParser.
Definition: simTrfArgs.py:181
python.simTrfArgs.addCommonSimDigTrfArgs
def addCommonSimDigTrfArgs(parser)
Add common Simulation/Digitization transform arguments to an argparse ArgumentParser.
Definition: simTrfArgs.py:196
python.simTrfArgs.addSim_tfArgs
def addSim_tfArgs(parser)
Add arguments used only by ISF-based simulation jobs.
Definition: simTrfArgs.py:146
FastChain_tf.addFastChainTrfArgs
def addFastChainTrfArgs(parser)
Definition: FastChain_tf.py:80
python.recTransformUtils.addRecoSubsteps
def addRecoSubsteps(executorSet)
Add reconstruction substeps to a set object.
Definition: recTransformUtils.py:96
FastChain_tf.main
def main()
Definition: FastChain_tf.py:28
python.OverlayTransformHelpers.addOverlayArguments
def addOverlayArguments(parser, in_reco_chain=False)
Definition: OverlayTransformHelpers.py:63
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
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
python.simTrfArgs.addBasicDigiArgs
def addBasicDigiArgs(parser)
Add Basic digitization arguments to an argparse ArgumentParser.
Definition: simTrfArgs.py:35
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
python.simTrfArgs.addSimIOTrfArgs
def addSimIOTrfArgs(parser)
Add common Simulation transform arguments to an argparse ArgumentParser.
Definition: simTrfArgs.py:169
FastChain_tf.getTransform
def getTransform()
Definition: FastChain_tf.py:40
python.recTransformUtils.addAllRecoArgs
def addAllRecoArgs(trf)
The standard suite of reconstruction specific arguments.
Definition: recTransformUtils.py:127
python.simTrfArgs.addPileUpTrfArgs
def addPileUpTrfArgs(parser)
Add Pile-up related transform arguments to an argparse ArgumentParser.
Definition: simTrfArgs.py:73
python.simTrfArgs.addTrackRecordArgs
def addTrackRecordArgs(parser)
Add arguments used by simulation jobs which may read in or write out TrackRecord files.
Definition: simTrfArgs.py:132