|
ATLAS Offline Software
|
Go to the documentation of this file.
6 Run Geant4 simulation on generated events and produce a HITS file.
14 msg.info(
'logging set in %s' % sys.argv[0])
18 from PyJobTransforms.trfArgs
import addAthenaArguments, addDetectorArguments
19 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
20 from SimuJobTransforms.simTrfArgs
import addSimIOTrfArgs,addCommonSimTrfArgs, addCommonSimDigTrfArgs, addTestBeamArgs
23 ListOfDefaultPositionalKeys=[
'--AMIConfig',
'--AMITag',
'--DBRelease',
'--DataRunNumber',
'--Eta',
'--Theta',
'--Z',
'--asetup',
'--athena',
'--athenaopts',
'--beamType',
'--checkEventCount',
'--command',
'--conditionsTag',
'--enableLooperKiller',
'--env',
'--eventAcceptanceEfficiency',
'--execOnly',
'--firstEvent',
'--geometryVersion',
'--ignoreErrors',
'--ignoreFiles',
'--ignorePatterns',
'--imf',
'--inputEvgenFile',
'--jobNumber',
'--maxEvents',
'--outputHITSFile',
'--physicsList',
'--postExec',
'--postInclude',
'--preExec',
'--preInclude',
'--randomSeed',
'--reportName',
'--reportType',
'--runNumber',
'--showGraph',
'--showPath',
'--showSteps',
'--skipEvents',
'--skipFileValidation',
'--skipInputFileValidation',
'--skipOutputFileValidation',
'--tcmalloc',
'--testBeamConfig',
'--useISF']
25 @stdTrfExceptionHandler
29 msg.info(
'This is %s' % sys.argv[0])
32 trf.parseCmdLineArgs(sys.argv[1:])
34 if 'outputFileValidation' in trf._argdict
and trf._argdict[
'outputFileValidation'].value
is False:
35 msg.info(
'Skipping report generation')
39 msg.info(
"%s stopped at %s, trf exit code %d" % (sys.argv[0], time.asctime(), trf.exitCode))
40 sys.exit(trf.exitCode)
43 trf =
transform(executor = athenaExecutor(name =
'TestBeamTf', skeletonCA =
'SimuJobTransforms.TestBeam_Skeleton',
44 substep =
'TBsim', tryDropAndReload =
False, perfMonFile =
'ntuple.pmon.gz', inData=[
'NULL',
'Evgen'], outData=[
'HITS',
'NULL'] ))
63 if __name__ ==
'__main__':
def addDetectorArguments(parser)
Options related to the setup of the ATLAS detector (used in simulation and digitisation as well as re...
def addCommonSimTrfArgs(parser)
Add common Simulation transform arguments to an argparse ArgumentParser.
def addCommonSimDigTrfArgs(parser)
Add common Simulation/Digitization transform arguments to an argparse ArgumentParser.
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,...
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
def addTestBeamArgs(parser)
Add arguments used only by TestBeam simulation jobs.
def addSimIOTrfArgs(parser)
Add common Simulation transform arguments to an argparse ArgumentParser.