Skip to content

Commit 2f2f524

Browse files
committed
adjust Q2PTCUTOFF calc
we can now pass 'ccdb' as field option in which case Q2PTCUTOFF is not easy to calc but TPC will do this internally in the future
1 parent b196f00 commit 2f2f524

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ def addWhenActive(detID, needslist, appendstring):
188188
RNDSEED=args.seed # 0 means random seed ! Should we set different seed for Bkg and signal?
189189

190190
Q2PTCUTOFF=20 # nominal q/Pt cut-off for TPC
191-
if float(BFIELD)!=0:
191+
if BFIELD == 'ccdb':
192+
# a hack valid for pilot beam (but TPC will calc this internally in the future)
193+
Q2PTCUTOFF*=5/abs(float(2.));
194+
elif float(BFIELD)!=0:
192195
Q2PTCUTOFF*=5/abs(float(BFIELD));
193196

194-
# add here other possible types
195-
196197
workflow={}
197198
workflow['stages'] = []
198199

0 commit comments

Comments
 (0)