Skip to content

Commit 0b3bf68

Browse files
noferinisawenzel
authored andcommitted
enable tof ccdb access in mc
1 parent 73befed commit 0b3bf68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@ def getDPL_global_options(bigshm=False):
530530
else: #pPb?
531531
INTRATE=200000 #Hz ???
532532

533-
simsoption=' --sims ' + ('bkg,'+signalprefix if doembedding else signalprefix)
533+
# TOF -> "--use-ccdb-tof" (alternatively with CCCDBManager "--ccdb-tof-sa")
534+
simsoption=' --sims ' + ('bkg,'+signalprefix if doembedding else signalprefix) + ' --use-ccdb-tof '
534535

535536
# each timeframe should be done for a different bunch crossing range, depending on the timeframe id
536537
orbitsPerTF = 256
@@ -631,7 +632,6 @@ def putConfigValuesNew(listOfMainKeys=[], localCF = {}):
631632
workflow['stages'].append(TRDDigitask)
632633

633634
# these are digitizers which are single threaded
634-
# TOF (TO BE DONE once ccdb fetcher ready) -> "--use-ccdb-tof" (alternatively with CCCDBManager "--ccdb-tof-sa")
635635
def createRestDigiTask(name, det='ALLSMALLER'):
636636
tneeds = needs=[ContextTask['name']]
637637
if det=='ALLSMALLER':
@@ -737,9 +737,8 @@ def createRestDigiTask(name, det='ALLSMALLER'):
737737
workflow['stages'].append(TRDTRACKINGtask)
738738

739739
TOFRECOtask = createTask(name='tofmatch_'+str(tf), needs=[ITSTPCMATCHtask['name'], det_to_digitask["TOF"]['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1500')
740-
TOFRECOtask['cmd'] = '${O2_ROOT}/bin/o2-tof-reco-workflow ' + getDPL_global_options() + putConfigValuesNew()
740+
TOFRECOtask['cmd'] = '${O2_ROOT}/bin/o2-tof-reco-workflow --use-ccdb ' + getDPL_global_options() + putConfigValuesNew()
741741
workflow['stages'].append(TOFRECOtask)
742-
# option to be added once ccdb fetcher ready "--use-ccdb" (TO BE DONE)
743742

744743
TOFTPCMATCHERtask = createTask(name='toftpcmatch_'+str(tf), needs=[TOFRECOtask['name'], TPCRECOtask['name'], TRDTRACKINGtask['name']], tf=tf, cwd=timeframeworkdir, lab=["RECO"], mem='1000')
745744
TOFTPCMATCHERtask['cmd'] = '${O2_ROOT}/bin/o2-tof-matcher-workflow ' + getDPL_global_options() \

0 commit comments

Comments
 (0)