Skip to content

Commit 583bb9e

Browse files
committed
MC: allow to run ITS3
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent c170533 commit 583bb9e

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
700700

701701
# a list of smaller sensors (used to construct digitization tasks in a parametrized way)
702702
smallsensorlist = [ "ITS", "TOF", "FDD", "MCH", "MID", "MFT", "HMP", "PHS", "CPV", "ZDC" ]
703+
if args.detectorList == 'ALICE2.1':
704+
smallsensorlist = ['IT3' if sensor == 'ITS' else sensor for sensor in smallsensorlist]
705+
703706
# a list of detectors that serve as input for the trigger processor CTP --> these need to be processed together for now
704707
ctp_trigger_inputlist = [ "FT0", "FV0", "EMC" ]
705708

@@ -757,9 +760,11 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
757760
# determine final conf key for QED simulation
758761
QEDBaseConfig = "GeneratorExternal.fileName=$O2_ROOT/share/Generators/external/QEDLoader.C;QEDGenParam.yMin=-7;QEDGenParam.yMax=7;QEDGenParam.ptMin=0.001;QEDGenParam.ptMax=1.;QEDGenParam.xSectionHad="+str(XSecSys[COLTYPE])+";QEDGenParam.Z="+str(Zsys[COLTYPE])+";QEDGenParam.cmEnergy="+str(ECMS)+";Diamond.width[2]=6.;"
759762
QEDCONFKEY = constructConfigKeyArg(create_geant_config(args, QEDBaseConfig + args.confKeyQED))
760-
763+
detectors = ' ITS MFT FT0 FV0 FDD '
764+
if args.detectorList == 'ALICE2.1':
765+
detectors = detectors.replace('ITS', 'IT3')
761766
QED_task['cmd'] = 'o2-sim -e TGeant3 --field ccdb -j ' + str('1') + ' -o qed' \
762-
+ ' -n ' + str(NEventsQED) + ' -m PIPE ITS MFT FT0 FV0 FDD ' \
767+
+ ' -n ' + str(NEventsQED) + ' -m ' + detectors \
763768
+ ('', ' --timestamp ' + str(args.timestamp))[args.timestamp!=-1] + ' --run ' + str(args.run) \
764769
+ ' --seed ' + str(TFSEED) \
765770
+ ' -g extgen ' \
@@ -1076,7 +1081,7 @@ def createRestDigiTask(name, det='ALLSMALLER'):
10761081
tneeds += [QED_task['name']]
10771082
commondigicmd = '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption \
10781083
+ ' --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini' \
1079-
+ putConfigValues(["MFTAlpideParam", "ITSAlpideParam", "ITSDigitizerParam"],
1084+
+ putConfigValues(["MFTAlpideParam", "ITSAlpideParam", "ITSDigitizerParam" if args.detectorList == 'ALICE2' else "IT3DigitizerParam"],
10801085
localCF={"DigiParams.seed" : str(TFSEED), "MCHDigitizer.seed" : str(TFSEED)}) + QEDdigiargs
10811086

10821087
if det=='ALLSMALLER': # here we combine all smaller digits in one DPL workflow
@@ -1249,12 +1254,12 @@ def getDigiTaskName(det):
12491254

12501255
#<--------- ITS reco task
12511256
ITSMemEstimate = 12000 if havePbPb else 2000 # PbPb has much large mem requirement for now (in worst case)
1252-
ITSRECOtask=createTask(name='itsreco_'+str(tf), needs=[getDigiTaskName("ITS")],
1253-
tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu='1', mem=str(ITSMemEstimate))
1257+
ITSRECOtask=createTask(name='itsreco_'+str(tf), needs=[getDigiTaskName("ITS" if args.detectorList == 'ALICE2' else "IT3")],
1258+
tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu='1', mem=str(ITSMemEstimate))
12541259
ITSRECOtask['cmd'] = task_finalizer([
1255-
"${O2_ROOT}/bin/o2-its-reco-workflow",
1260+
"${O2_ROOT}/bin/o2-its-reco-workflow" if args.detectorList == 'ALICE2' else "${O2_ROOT}/bin/o2-its3-reco-workflow",
12561261
getDPL_global_options(bigshm=havePbPb),
1257-
'--trackerCA',
1262+
'--trackerCA' if args.detectorList == 'ALICE2' else '',
12581263
'--tracking-mode async',
12591264
putConfigValues(["ITSVertexerParam",
12601265
"ITSAlpideParam",
@@ -1292,6 +1297,7 @@ def getDigiTaskName(det):
12921297
'ITSClustererParam',
12931298
'GPU_rec_tpc',
12941299
'trackTuneParams',
1300+
'GlobalParams',
12951301
'ft0tag'],
12961302
{"NameConf.mDirMatLUT" : ".."} | tpcLocalCFreco),
12971303
tpc_corr_scaling_options,
@@ -1320,6 +1326,7 @@ def getDigiTaskName(det):
13201326
'trackTuneParams',
13211327
'GPU_rec_tpc',
13221328
'TPCGasParam',
1329+
'GlobalParams',
13231330
'TPCCorrMap'], {"NameConf.mDirMatLUT" : ".."} | tpcLocalCFreco),
13241331
'--track-sources ' + trd_track_sources,
13251332
tpc_corr_scaling_options,
@@ -1604,7 +1611,7 @@ def getDigiTaskName(det):
16041611
[ '${O2_ROOT}/bin/o2-secondary-vertexing-workflow',
16051612
getDPL_global_options(bigshm=True),
16061613
svfinder_threads,
1607-
putConfigValues(['svertexer', 'TPCCorrMap'], {"NameConf.mDirMatLUT" : ".."} | tpcLocalCFreco),
1614+
putConfigValues(['svertexer', 'TPCCorrMap', 'GlobalParams'], {"NameConf.mDirMatLUT" : ".."} | tpcLocalCFreco),
16081615
tpc_corr_scaling_options,
16091616
tpc_corr_options_mc,
16101617
'--vertexing-sources ' + svfinder_sources,

0 commit comments

Comments
 (0)