Skip to content

Commit

Permalink
Take field for sim from CCDB
Browse files Browse the repository at this point in the history
The field CCDB object is created as first step before simulation and Geant
should just use this for better consistency.
  • Loading branch information
sawenzel authored and noferini committed Apr 12, 2024
1 parent ed8e1c6 commit 5f76044
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MC/bin/o2dpg_sim_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
BKGtask=createTask(name='bkgsim', lab=["GEANT"], needs=[BKG_CONFIG_task['name'], GRP_TASK['name']], cpu=NWORKERS )
BKGtask['cmd']='${O2_ROOT}/bin/o2-sim -e ' + SIMENGINE + ' -j ' + str(NWORKERS) + ' -n ' + str(NBKGEVENTS) \
+ ' -g ' + str(GENBKG) + ' ' + str(MODULES) + ' -o bkg ' + str(INIBKG) \
+ ' --field ' + str(BFIELD) + ' ' + str(CONFKEYBKG) \
+ ' --field ccdb ' + str(CONFKEYBKG) \
+ ('',' --timestamp ' + str(args.timestamp))[args.timestamp!=-1] + ' --run ' + str(args.run) \
+ ' --vertexMode kCCDB'

Expand Down Expand Up @@ -636,9 +636,8 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
# ATTENTION: CHANGING THE PARAMETERS/CUTS HERE MIGHT INVALIDATE THE QED INTERACTION RATES USED ELSEWHERE
#
########################################################################################################
QED_task['cmd'] = 'o2-sim -e TGeant3 --field ' + str(BFIELD) + ' \
-j ' + str('1') + ' -o qed_' + str(tf) + ' \
-n ' + str(NEventsQED) + ' -m PIPE ITS MFT FT0 FV0 FDD ' \
QED_task['cmd'] = 'o2-sim -e TGeant3 --field ccdb -j ' + str('1') + ' -o qed_' + str(tf) \
+ ' -n ' + str(NEventsQED) + ' -m PIPE ITS MFT FT0 FV0 FDD ' \
+ ('', ' --timestamp ' + str(args.timestamp))[args.timestamp!=-1] + ' --run ' + str(args.run) \
+ ' --seed ' + str(TFSEED) \
+ ' -g extgen --configKeyValues \"GeneratorExternal.fileName=$O2_ROOT/share/Generators/external/QEDLoader.C;QEDGenParam.yMin=-7;QEDGenParam.yMax=7;QEDGenParam.ptMin=0.001;QEDGenParam.ptMax=1.;Diamond.width[2]=6.\"' # + (' ',' --fromCollContext collisioncontext.root')[args.pregenCollContext]
Expand Down Expand Up @@ -707,7 +706,7 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
sgnmem = 6000 if COLTYPE == 'PbPb' else 4000
SGNtask=createTask(name='sgnsim_'+str(tf), needs=signalneeds, tf=tf, cwd='tf'+str(tf), lab=["GEANT"], relative_cpu=7/8, n_workers=NWORKERS, mem=str(sgnmem))
SGNtask['cmd']='${O2_ROOT}/bin/o2-sim -e ' + str(SIMENGINE) + ' ' + str(MODULES) + ' -n ' + str(NSIGEVENTS) + ' --seed ' + str(TFSEED) \
+ ' --field ' + str(BFIELD) + ' -j ' + str(NWORKERS) + ' -g ' + str(GENERATOR) \
+ ' --field ccdb -j ' + str(NWORKERS) + ' -g ' + str(GENERATOR) \
+ ' ' + str(TRIGGER) + ' ' + str(CONFKEY) + ' ' + str(INIFILE) \
+ ' -o ' + signalprefix + ' ' + embeddinto \
+ ('', ' --timestamp ' + str(args.timestamp))[args.timestamp!=-1] + ' --run ' + str(args.run) \
Expand Down

0 comments on commit 5f76044

Please sign in to comment.