|
95 | 95 | # power feature (for playing) --> does not appear in help message |
96 | 96 | # help='Treat smaller sensors in a single digitization') |
97 | 97 | 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) |
99 | 99 | parser.add_argument('--combine-tpc-clusterization', action='store_true', help=argparse.SUPPRESS) #<--- useful for small productions (pp, low interaction rate, small number of events) |
100 | 100 | 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) |
101 | 101 | # (consider doing this rather in O2 digitization code directly) |
@@ -687,7 +687,7 @@ def createRestDigiTask(name, det='ALLSMALLER'): |
687 | 687 | # t['cmd'] += commondigicmd + ' --skipDet TPC,TRD,FT0,FV0,CTP ' |
688 | 688 | t['cmd'] += commondigicmd + ' --onlyDet TOF,CPV,EMC,HMP,PHS,ITS,MFT,MID,MCH,FDD' |
689 | 689 | t['cmd'] += ' --ccdb-tof-sa ' |
690 | | - t['cmd'] += ('',' --combine-devices ')[args.combine_dpl_devices] |
| 690 | + t['cmd'] += (' --combine-devices ','')[args.no_combine_dpl_devices] |
691 | 691 | workflow['stages'].append(t) |
692 | 692 | return t |
693 | 693 |
|
@@ -721,7 +721,7 @@ def createRestDigiTask(name, det='ALLSMALLER'): |
721 | 721 | t = createTask(name="ft0fv0ctp_digi_" + str(tf), needs=tneeds, |
722 | 722 | tf=tf, cwd=timeframeworkdir, lab=["DIGI","SMALLDIGI"], cpu='1') |
723 | 723 | 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] |
725 | 725 | workflow['stages'].append(t) |
726 | 726 | det_to_digitask["FT0"]=t |
727 | 727 | det_to_digitask["FV0"]=t |
@@ -807,7 +807,7 @@ def getDigiTaskName(det): |
807 | 807 | 'TPCGasParam', |
808 | 808 | 'ITSCATrackerParam', |
809 | 809 | '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] |
811 | 811 | workflow['stages'].append(TOFTPCMATCHERtask) |
812 | 812 |
|
813 | 813 | MFTRECOtask = createTask(name='mftreco_'+str(tf), needs=[getDigiTaskName("MFT")], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500') |
@@ -907,7 +907,7 @@ def getDigiTaskName(det): |
907 | 907 | PVFINDERtask = createTask(name='pvfinder_'+str(tf), needs=pvfinderneeds, tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu=NWORKERS, mem='4000') |
908 | 908 | PVFINDERtask['cmd'] = '${O2_ROOT}/bin/o2-primary-vertexing-workflow ' \ |
909 | 909 | + 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] |
911 | 911 | workflow['stages'].append(PVFINDERtask) |
912 | 912 |
|
913 | 913 | if includeFullQC or includeLocalQC: |
@@ -1027,7 +1027,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''): |
1027 | 1027 | svfinder_sources = "ITS,ITS-TPC,TPC-TRD,TPC-TOF,ITS-TPC-TRD,ITS-TPC-TOF" |
1028 | 1028 | if isActive("MID"): |
1029 | 1029 | 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] |
1031 | 1031 | workflow['stages'].append(SVFINDERtask) |
1032 | 1032 |
|
1033 | 1033 | # ----------- |
@@ -1074,7 +1074,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''): |
1074 | 1074 | AODtask['cmd'] += ' --lpmp-prod-tag ${ALIEN_JDL_LPMPRODUCTIONTAG:-unknown}' |
1075 | 1075 | AODtask['cmd'] += ' --anchor-pass ${ALIEN_JDL_LPMANCHORPASSNAME:-unknown}' |
1076 | 1076 | 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] |
1078 | 1078 | if environ.get('O2DPG_AOD_NOTRUNCATE') != None or environ.get('ALIEN_JDL_O2DPG_AOD_NOTRUNCATE') != None: |
1079 | 1079 | AODtask['cmd'] += ' --enable-truncation 0' # developer option to suppress precision truncation |
1080 | 1080 |
|
|
0 commit comments