Skip to content

Commit fe7021f

Browse files
committed
TPC-timer-series: dynamic track-types
1 parent 40a2866 commit fe7021f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,11 +1948,13 @@ def remove_json_prefix(path):
19481948
# TODO: this needs to be made configurable (as a function of which detectors are actually present)
19491949
tpctsneeds = [ TPCRECOtask['name'],
19501950
ITSTPCMATCHtask['name'],
1951-
TOFTPCMATCHERtask['name'],
1951+
TOFTPCMATCHERtask['name'] if isActive("TOF") else None,
19521952
PVFINDERtask['name']
19531953
]
1954+
timeseries_tracktypes=cleanDetectorInputList("ITS,TPC,ITS-TPC,ITS-TPC-TOF,ITS-TPC-TRD-TOF")
1955+
timeseries_clustertypes=cleanDetectorInputList("FT0,TOF,TPC")
19541956
TPCTStask = createTask(name='tpctimeseries_'+str(tf), needs=tpctsneeds, tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='2000', cpu='1')
1955-
TPCTStask['cmd'] = 'o2-global-track-cluster-reader --disable-mc --cluster-types "FT0,TOF,TPC" --track-types "ITS,TPC,ITS-TPC,ITS-TPC-TOF,ITS-TPC-TRD-TOF"'
1957+
TPCTStask['cmd'] = f'o2-global-track-cluster-reader --disable-mc --cluster-types {timeseries_clustertypes} --track-types {timeseries_tracktypes}'
19561958
TPCTStask['cmd'] += ' --primary-vertices '
19571959
TPCTStask['cmd'] += ' | o2-tpc-time-series-workflow --enable-unbinned-root-output --sample-unbinned-tsallis --sampling-factor 0.01 '
19581960
TPCTStask['cmd'] += putConfigValues() + ' ' + getDPL_global_options(bigshm=True)

0 commit comments

Comments
 (0)