1 from __future__
import division
7 msg = logging.getLogger(__name__)
13 from SimuJobTransforms.simTrfArgs
import addForwardDetTrfArgs, addCommonSimDigTrfArgs
18 from SimuJobTransforms.simTrfArgs
import addCommonSimTrfArgs, addSimIOTrfArgs, addCosmicsTrfArgs, addTrackRecordArgs
26 from SimuJobTransforms.simTrfArgs
import addSim_tfArgs
30 from SimuJobTransforms.simTrfArgs
import addBasicDigiArgs, addPileUpTrfArgs
35 from SimuJobTransforms.simTrfArgs
import addCommonSimTrfArgs, addCosmicsTrfArgs, addTrackRecordArgs, addSim_tfArgs, addReSimulationArgs
52 from SimuJobTransforms.simTrfArgs
import addHITSMergeArgs
60 from SimuJobTransforms.simTrfArgs
import addHITSValidArgs, addCommonSimDigTrfArgs
65 from SimuJobTransforms.simTrfArgs
import addRDOValidArgs, addCommonSimDigTrfArgs
73 TRExe = athenaExecutor(name =
'TRtoHITS',
74 skeletonCA =
'SimuJobTransforms.ISF_Skeleton',
75 substep =
'simTRIn', tryDropAndReload =
False, perfMonFile =
'ntuple.pmon.gz',
77 outData=[
'HITS',
'NULL'] )
78 executorSet.add(TRExe)
79 SimExe = athenaExecutor(name =
'EVNTtoHITS',
80 skeletonCA =
'SimuJobTransforms.ISF_Skeleton',
81 substep =
'sim', tryDropAndReload =
False, perfMonFile =
'ntuple.pmon.gz',
82 inData=[
'NULL',
'EVNT'],
83 outData=[
'EVNT_TR',
'HITS',
'NULL'] )
87 SimExe.inData = [(
'EVNT',
'BS_SKIM')]
89 SimExe.inData = [(
'EVNT',
'TXT_EVENTID')]
90 SimExe.outData = [
'HITS']
91 SimExe.inputDataTypeCountCheck = [
'EVNT']
92 executorSet.add(SimExe)
96 SimExe = athenaExecutor(name =
'ReSim',
97 skeletonCA =
'SimuJobTransforms.ReSimulation_Skeleton',
99 tryDropAndReload =
False,
100 perfMonFile =
'ntuple.pmon.gz',
102 outData=[
'HITS_RSM'],
103 inputDataTypeCountCheck = [
'HITS'] )
104 executorSet.add(SimExe)
108 executorSet.add(athenaExecutor(name =
'AtlasG4TfTRIn',
109 skeletonCA =
'SimuJobTransforms.G4AtlasAlg_Skeleton',
110 substep =
'simTRIn', tryDropAndReload =
False,
112 outData=[
'HITS',
'NULL'] ))
113 executorSet.add(athenaExecutor(name =
'AtlasG4Tf',
114 skeletonCA =
'SimuJobTransforms.G4AtlasAlg_Skeleton',
115 substep =
'sim', tryDropAndReload =
False,
116 inData=[
'NULL',
'EVNT'],
117 outData=[
'EVNT_TR',
'HITS',
'NULL'] ))
120 def addConfigurableSimSubstep(executorSet, confName, extraSkeleton, confSubStep, confInData, confOutData, confExtraRunargs, confRuntimeRunargs):
121 executorSet.add(athenaExecutor(name = confName, skeletonFile = extraSkeleton + [
'SimuJobTransforms/skeleton.EVGENtoHIT_MC12.py'],
122 substep = confSubStep, tryDropAndReload =
False,
124 outData = confOutData, extraRunargs = confExtraRunargs, runtimeRunargs = confRuntimeRunargs ))
128 executorSet.add(athenaExecutor(name =
'HITSMerge', substep=
"hitsmerge",
129 skeletonCA =
'SimuJobTransforms.HITSMerge_Skeleton',
130 tryDropAndReload =
False, inputDataTypeCountCheck = [
'HITS']))
134 executorSet.add(athenaExecutor(name =
'HITtoRDO',
135 skeletonCA=
'SimuJobTransforms.HITtoRDO_Skeleton',
136 substep =
'h2r', tryDropAndReload =
False,
137 inData = [
'HITS'], outData = [
'RDO',
'RDO_FILT'],
138 onlyMPWithRunargs = [
139 'inputLowPtMinbiasHitsFile',
140 'inputHighPtMinbiasHitsFile',
141 'inputCavernHitsFile',
142 'inputBeamHaloHitsFile',
143 'inputBeamGasHitsFile'
144 ]
if in_reco_chain
else None))
148 executorSet.add(athenaExecutor(name =
'SimValidation',
149 skeletonCA=
'SimuJobTransforms.HITtoHIST_SIM_Skeleton',
150 inData = [
'HITS'], outData = [
'HIST_SIM'],))
154 executorSet.add(athenaExecutor(name =
'DigiValidation',
155 skeletonCA=
'SimuJobTransforms.RDOtoHIST_DIGI_Skeleton',
156 inData = [
'RDO'], outData = [
'HIST_DIGI'],))
162 trf.appendToExecutorSet(executor)
167 trf.appendToExecutorSet(executor)
170 extraSkeleton = [], confSubstep = 'simTRIn',
171 confInData=['EVNT_TR'],
172 confOutData=['HITS','NULL'],
173 confExtraRunargs=None, confRuntimeRunargs=None ):
175 addConfigurableSimSubstep(executor, confName, extraSkeleton, confSubstep, confInData, confOutData, confExtraRunargs, confRuntimeRunargs )
176 trf.appendToExecutorSet(executor)
179 extraSkeleton = [], confSubstep = 'sim',
180 confInData=['NULL','EVNT'],
181 confOutData=['EVNT_TR','HITS','NULL'],
182 confExtraRunargs=None, confRuntimeRunargs=None ):
184 addConfigurableSimSubstep(executor, confName, extraSkeleton, confSubstep, confInData, confOutData, confExtraRunargs, confRuntimeRunargs )
185 trf.appendToExecutorSet(executor)
190 trf.appendToExecutorSet(executor)
195 trf.appendToExecutorSet(executor)