Skip to content

Commit

Permalink
Enable strangeness tracking by default (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmazzasc authored and noferini committed Apr 19, 2024
1 parent d056941 commit 28dcf22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
parser.add_argument('--no-combine-dpl-devices', action='store_true', help=argparse.SUPPRESS)
parser.add_argument('--no-mc-labels', action='store_true', default=False, help=argparse.SUPPRESS)
parser.add_argument('--no-tpc-digitchunking', action='store_true', help=argparse.SUPPRESS)
parser.add_argument('--with-strangeness-tracking', action='store_true', default=False, help="Enable strangeness tracking")
parser.add_argument('--no-strangeness-tracking', action='store_true', default=False, help="Disable strangeness tracking")
parser.add_argument('--combine-tpc-clusterization', action='store_true', help=argparse.SUPPRESS) #<--- useful for small productions (pp, low interaction rate, small number of events)
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)
# (consider doing this rather in O2 digitization code directly)
Expand Down Expand Up @@ -1326,7 +1326,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
svfinder_sources = anchorConfig.get('o2-secondary-vertexing-workflow-options', {}). get('vertexing-sources', 'ITS-TPC,TPC-TRD,ITS-TPC-TRD,TPC-TOF,ITS-TPC-TOF,TPC-TRD-TOF,ITS-TPC-TRD-TOF,MFT-MCH,MCH-MID,ITS,MFT,TPC,TOF,FT0,MID,EMC,PHS,CPV,ZDC,FDD,HMP,FV0,TRD,MCH,CTP')
SVFINDERtask['cmd'] += ' --vertexing-sources ' + svfinder_sources + (' --combine-source-devices','')[args.no_combine_dpl_devices]
# strangeness tracking is now called from the secondary vertexer
if not args.with_strangeness_tracking:
if args.no_strangeness_tracking:
SVFINDERtask['cmd'] += ' --disable-strangeness-tracker'
# if enabled, it may require MC labels
else:
Expand Down Expand Up @@ -1364,7 +1364,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
if environ.get('O2DPG_AOD_NOTRUNCATE') != None or environ.get('ALIEN_JDL_O2DPG_AOD_NOTRUNCATE') != None:
AODtask['cmd'] += ' --enable-truncation 0' # developer option to suppress precision truncation

if not args.with_strangeness_tracking:
if args.no_strangeness_tracking:
AODtask['cmd'] += ' --disable-strangeness-tracker'

# Enable CTP readout replay for triggered detectors (EMCAL, HMPID, PHOS/CPV, TRD)
Expand Down

0 comments on commit 28dcf22

Please sign in to comment.