@@ -346,6 +346,7 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
346346
347347 simsoption = ' --sims ' + ('bkg,' + signalprefix if doembedding else signalprefix )
348348
349+ # This task creates the basic setup for all digitizers! all digitization configKeyValues need to be given here
349350 ContextTask = createTask (name = 'digicontext_' + str (tf ), needs = [SGNtask ['name' ], LinkGRPFileTask ['name' ]], tf = tf ,
350351 cwd = timeframeworkdir , lab = ["DIGI" ], cpu = '1' )
351352 ContextTask ['cmd' ] = 'o2-sim-digitizer-workflow --only-context --interactionRate ' + str (INTRATE ) + ' ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption
@@ -358,7 +359,7 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
358359 TPCDigitask = createTask (name = 'tpcdigi_' + str (tf ), needs = tpcdigineeds ,
359360 tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ], cpu = '8' , mem = '9000' )
360361 TPCDigitask ['cmd' ] = ('' ,'ln -nfs ../bkg_HitsTPC.root . ;' )[doembedding ]
361- TPCDigitask ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet TPC --interactionRate ' + str (INTRATE ) + ' --tpc-lanes ' + str (NWORKERS ) + ' --incontext ' + str (CONTEXTFILE ) + ' --tpc-chunked-writer'
362+ TPCDigitask ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet TPC --interactionRate ' + str (INTRATE ) + ' --tpc-lanes ' + str (NWORKERS ) + ' --incontext ' + str (CONTEXTFILE ) + ' --tpc-chunked-writer --disable-write-ini '
362363 workflow ['stages' ].append (TPCDigitask )
363364
364365 trddigineeds = [ContextTask ['name' ]]
@@ -367,7 +368,7 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
367368 TRDDigitask = createTask (name = 'trddigi_' + str (tf ), needs = trddigineeds ,
368369 tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ], cpu = '8' , mem = '8000' )
369370 TRDDigitask ['cmd' ] = ('' ,'ln -nfs ../bkg_HitsTRD.root . ;' )[doembedding ]
370- TRDDigitask ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet TRD --interactionRate ' + str (INTRATE ) + ' --configKeyValues \" TRDSimParams.digithreads=' + str (NWORKERS ) + '\" --incontext ' + str (CONTEXTFILE )
371+ TRDDigitask ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet TRD --interactionRate ' + str (INTRATE ) + ' --configKeyValues \" TRDSimParams.digithreads=' + str (NWORKERS ) + '\" --incontext ' + str (CONTEXTFILE ) + ' --disable-write-ini'
371372 workflow ['stages' ].append (TRDDigitask )
372373
373374 # these are digitizers which are single threaded
@@ -380,7 +381,7 @@ def createRestDigiTask(name, det='ALLSMALLER'):
380381 t = createTask (name = name , needs = tneeds ,
381382 tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ,"SMALLDIGI" ], cpu = '8' )
382383 t ['cmd' ] = ('' ,'ln -nfs ../bkg_Hits*.root . ;' )[doembedding ]
383- t ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options (nosmallrate = True ) + ' -n ' + str (args .ns ) + simsoption + ' --skipDet TPC,TRD --interactionRate ' + str (INTRATE ) + ' --incontext ' + str (CONTEXTFILE )
384+ t ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options (nosmallrate = True ) + ' -n ' + str (args .ns ) + simsoption + ' --skipDet TPC,TRD --interactionRate ' + str (INTRATE ) + ' --incontext ' + str (CONTEXTFILE ) + ' --disable-write-ini'
384385 workflow ['stages' ].append (t )
385386 return t
386387
@@ -390,7 +391,7 @@ def createRestDigiTask(name, det='ALLSMALLER'):
390391 t = createTask (name = name , needs = tneeds ,
391392 tf = tf , cwd = timeframeworkdir , lab = ["DIGI" ,"SMALLDIGI" ], cpu = '1' )
392393 t ['cmd' ] = ('' ,'ln -nfs ../bkg_Hits' + str (det ) + '.root . ;' )[doembedding ]
393- t ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet ' + str (det ) + ' --interactionRate ' + str (INTRATE ) + ' --incontext ' + str (CONTEXTFILE )
394+ t ['cmd' ] += 'o2-sim-digitizer-workflow ' + getDPL_global_options () + ' -n ' + str (args .ns ) + simsoption + ' --onlyDet ' + str (det ) + ' --interactionRate ' + str (INTRATE ) + ' --incontext ' + str (CONTEXTFILE ) + ' --disable-write-ini'
394395 workflow ['stages' ].append (t )
395396 return t
396397
0 commit comments