Skip to content

Commit 142f993

Browse files
committed
make DPL device combination the default
1 parent c72a73a commit 142f993

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
# power feature (for playing) --> does not appear in help message
9696
# help='Treat smaller sensors in a single digitization')
9797
parser.add_argument('--combine-smaller-digi', action='store_true', help=argparse.SUPPRESS)
98-
parser.add_argument('--combine-dpl-devices', action='store_true', help=argparse.SUPPRESS)
98+
parser.add_argument('--no-combine-dpl-devices', action='store_true', help=argparse.SUPPRESS)
9999
parser.add_argument('--combine-tpc-clusterization', action='store_true', help=argparse.SUPPRESS) #<--- useful for small productions (pp, low interaction rate, small number of events)
100100
parser.add_argument('--first-orbit', default=0, type=int, help=argparse.SUPPRESS) # to set the first orbit number of the run for HBFUtils (only used when anchoring)
101101
# (consider doing this rather in O2 digitization code directly)
@@ -687,7 +687,7 @@ def createRestDigiTask(name, det='ALLSMALLER'):
687687
# t['cmd'] += commondigicmd + ' --skipDet TPC,TRD,FT0,FV0,CTP '
688688
t['cmd'] += commondigicmd + ' --onlyDet TOF,CPV,EMC,HMP,PHS,ITS,MFT,MID,MCH,FDD'
689689
t['cmd'] += ' --ccdb-tof-sa '
690-
t['cmd'] += ('',' --combine-devices ')[args.combine_dpl_devices]
690+
t['cmd'] += (' --combine-devices ','')[args.no_combine_dpl_devices]
691691
workflow['stages'].append(t)
692692
return t
693693

@@ -721,7 +721,7 @@ def createRestDigiTask(name, det='ALLSMALLER'):
721721
t = createTask(name="ft0fv0ctp_digi_" + str(tf), needs=tneeds,
722722
tf=tf, cwd=timeframeworkdir, lab=["DIGI","SMALLDIGI"], cpu='1')
723723
t['cmd'] = ('','ln -nfs ../bkg_HitsFT0.root . ; ln -nfs ../bkg_HitsFV0.root . ;')[doembedding]
724-
t['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption + ' --onlyDet FT0,FV0,CTP --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini' + putConfigValuesNew() + ('',' --combine-devices')[args.combine_dpl_devices]
724+
t['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption + ' --onlyDet FT0,FV0,CTP --interactionRate ' + str(INTRATE) + ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini' + putConfigValuesNew() + (' --combine-devices','')[args.no_combine_dpl_devices]
725725
workflow['stages'].append(t)
726726
det_to_digitask["FT0"]=t
727727
det_to_digitask["FV0"]=t
@@ -807,7 +807,7 @@ def getDigiTaskName(det):
807807
'TPCGasParam',
808808
'ITSCATrackerParam',
809809
'MFTClustererParam']) \
810-
+ " --track-sources " + anchorConfig.get("o2-tof-matcher-workflow-options",{}).get("track-sources",toftracksrcdefault) + ('',' --combine-devices')[args.combine_dpl_devices]
810+
+ " --track-sources " + anchorConfig.get("o2-tof-matcher-workflow-options",{}).get("track-sources",toftracksrcdefault) + (' --combine-devices','')[args.no_combine_dpl_devices]
811811
workflow['stages'].append(TOFTPCMATCHERtask)
812812

813813
MFTRECOtask = createTask(name='mftreco_'+str(tf), needs=[getDigiTaskName("MFT")], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500')
@@ -907,7 +907,7 @@ def getDigiTaskName(det):
907907
PVFINDERtask = createTask(name='pvfinder_'+str(tf), needs=pvfinderneeds, tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu=NWORKERS, mem='4000')
908908
PVFINDERtask['cmd'] = '${O2_ROOT}/bin/o2-primary-vertexing-workflow ' \
909909
+ getDPL_global_options() + putConfigValuesNew(['ITSAlpideParam','MFTAlpideParam', 'pvertexer', 'TPCGasParam'], {"NameConf.mDirMatLUT" : ".."})
910-
PVFINDERtask['cmd'] += ' --vertexing-sources ' + pvfinder_sources + ' --vertex-track-matching-sources ' + pvfinder_matching_sources + ('',' --combine-source-devices')[args.combine_dpl_devices]
910+
PVFINDERtask['cmd'] += ' --vertexing-sources ' + pvfinder_sources + ' --vertex-track-matching-sources ' + pvfinder_matching_sources + (' --combine-source-devices','')[args.no_combine_dpl_devices]
911911
workflow['stages'].append(PVFINDERtask)
912912

913913
if includeFullQC or includeLocalQC:
@@ -1027,7 +1027,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10271027
svfinder_sources = "ITS,ITS-TPC,TPC-TRD,TPC-TOF,ITS-TPC-TRD,ITS-TPC-TOF"
10281028
if isActive("MID"):
10291029
svfinder_sources += ",MID"
1030-
SVFINDERtask['cmd'] += ' --vertexing-sources ' + svfinder_sources + ('',' --combine-source-devices')[args.combine_dpl_devices]
1030+
SVFINDERtask['cmd'] += ' --vertexing-sources ' + svfinder_sources + (' --combine-source-devices','')[args.no_combine_dpl_devices]
10311031
workflow['stages'].append(SVFINDERtask)
10321032

10331033
# -----------
@@ -1074,7 +1074,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10741074
AODtask['cmd'] += ' --lpmp-prod-tag ${ALIEN_JDL_LPMPRODUCTIONTAG:-unknown}'
10751075
AODtask['cmd'] += ' --anchor-pass ${ALIEN_JDL_LPMANCHORPASSNAME:-unknown}'
10761076
AODtask['cmd'] += ' --anchor-prod ${ALIEN_JDL_MCANCHOR:-unknown}'
1077-
AODtask['cmd'] += ('',' --combine-source-devices ')[args.combine_dpl_devices]
1077+
AODtask['cmd'] += (' --combine-source-devices ','')[args.no_combine_dpl_devices]
10781078
if environ.get('O2DPG_AOD_NOTRUNCATE') != None or environ.get('ALIEN_JDL_O2DPG_AOD_NOTRUNCATE') != None:
10791079
AODtask['cmd'] += ' --enable-truncation 0' # developer option to suppress precision truncation
10801080

0 commit comments

Comments
 (0)