Skip to content

Commit f189fcb

Browse files
jackal1-66sawenzel
authored andcommitted
Adaptable QED events based on INTRATE
1 parent 63c1986 commit f189fcb

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
@@ -519,7 +519,10 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
519519

520520
# preproduce the collision context / timeframe structure for all timeframes at once
521521
precollneeds=[GRP_TASK['name']]
522-
NEventsQED=10000 # max number of QED events to simulate per timeframe
522+
# max number of QED events simulated per timeframe.
523+
# A large pool of QED events (0.6*INTRATE) is needed to avoid repetition of events in the same or
524+
# neighbouring ITS readout frames, which would fire already activated pixel, discarding the event.
525+
NEventsQED = 10000 if (INTRATE <= 16668) else int(INTRATE*0.6)
523526
# Hadronic cross section values are taken from Glauber MC
524527
XSecSys = {'PbPb': 8., 'OO': 1.273, 'NeNe': 1.736}
525528
# QED cross section values were calculated with TEPEMGEN
@@ -723,7 +726,6 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
723726

724727
QEDdigiargs = ""
725728
if includeQED:
726-
NEventsQED=10000 # 35K for a full timeframe?
727729
qedneeds=[GRP_TASK['name'], PreCollContextTask['name']]
728730
QED_task=createTask(name='qedsim_'+str(tf), needs=qedneeds, tf=tf, cwd=timeframeworkdir, cpu='1')
729731
########################################################################################################

0 commit comments

Comments
 (0)