Skip to content

Commit cd07a5c

Browse files
committed
prototypic addition of TPC time series O2-4612
https://its.cern.ch/jira/browse/O2-4612
1 parent ead8c0b commit cd07a5c

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,9 +1421,23 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
14211421
# Enable CTP readout replay for triggered detectors (EMCAL, HMPID, PHOS/CPV, TRD)
14221422
# Needed untill triggers are supported in CTP simulation
14231423
AODtask['cmd'] += ' --ctpreadout-create 1'
1424-
14251424
workflow['stages'].append(AODtask)
14261425

1426+
# TPC - time-series objects
1427+
# initial implementation taken from comments in https://its.cern.ch/jira/browse/O2-4612
1428+
# TODO: this needs to be made configurable (as a function of which detectors are actually present)
1429+
tpctsneeds = [ TPCRECOtask['name'],
1430+
ITSTPCMATCHtask['name'],
1431+
TOFTPCMATCHERtask['name'],
1432+
PVFINDERtask['name']
1433+
]
1434+
TPCTStask = createTask(name='tpctimeseries_'+str(tf), needs=tpctsneeds, tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='2000', cpu='1')
1435+
TPCTStask['cmd'] = 'o2-global-track-cluster-reader --disable-mc --cluster-types "TOF" --track-types "ITS,TPC,ITS-TPC,ITS-TPC-TOF,ITS-TPC-TRD-TOF"'
1436+
TPCTStask['cmd'] += ' --primary-vertices '
1437+
TPCTStask['cmd'] += ' | o2-tpc-time-series-workflow --enable-unbinned-root-output --sample-unbinned-tsallis --sampling-factor 0.1 '
1438+
TPCTStask['cmd'] += putConfigValuesNew() + ' ' + getDPL_global_options(bigshm=True)
1439+
workflow['stages'].append(TPCTStask)
1440+
14271441
# AOD merging / combination step (as individual stages) --> for the moment deactivated in favor or more stable global merging
14281442
"""
14291443
aodmergerneeds = [ AODtask['name'] ]

0 commit comments

Comments
 (0)