Skip to content

Commit e72eb1e

Browse files
sawenzelalcaliva
authored andcommitted
EvtPool: Make stat file non-empty to enable MonaLisa upload
(cherry picked from commit 1cb9267)
1 parent 2718f54 commit e72eb1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
15931593
POOL_merge_task = createTask(name='poolmerge', needs=wfneeds, lab=["POOL"], mem='2000', cpu='1')
15941594
POOL_merge_task['cmd'] = '${O2DPG_ROOT}/UTILS/root_merger.py -o evtpool.root -i ' + ','.join(tfpool)
15951595
# also create the stat file with the event count
1596-
POOL_merge_task['cmd'] += '; RC=$?; root -l -q -b -e "auto f=TFile::Open(\\\"evtpool.root\\\"); auto t=(TTree*)f->Get(\\\"o2sim\\\"); int n=t->GetEntries(); std::ofstream((\\\"0_0_0_\\\"+std::to_string(n)+\\\".stat\\\").c_str()).close();" ; [[ ${RC} == 0 ]]'
1596+
POOL_merge_task['cmd'] += '; RC=$?; root -l -q -b -e "auto f=TFile::Open(\\\"evtpool.root\\\"); auto t=(TTree*)f->Get(\\\"o2sim\\\"); int n=t->GetEntries(); std::ofstream((\\\"0_0_0_\\\"+std::to_string(n)+\\\".stat\\\").c_str()) << \\\"# MonaLisa stat file for event pools\\\";" ; [[ ${RC} == 0 ]]'
15971597
workflow['stages'].append(POOL_merge_task)
15981598

15991599
# adjust for alternate (RECO) software environments

0 commit comments

Comments
 (0)