Skip to content

Commit 53d2a21

Browse files
committed
some adjustments for anchoring MC
for AOD, we will still need much more dynamic source building ....
1 parent e06a938 commit 53d2a21

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ def getDPL_global_options(bigshm=False):
254254
orbitsPerTF=256
255255
GRP_TASK = createTask(name='grpcreate', cpu='0')
256256
GRP_TASK['cmd'] = 'o2-grp-simgrp-tool createGRPs --run ' + str(args.run) + ' --publishto ${ALICEO2_CCDB_LOCALCACHE:-.ccdb} -o grp --hbfpertf ' + str(orbitsPerTF) + ' --field ' + args.field
257-
GRP_TASK['cmd'] += ' --readoutDets ' + " ".join(activeDetectors) + ' --print '
258-
if len(args.bcPatternFile) > 0:
257+
GRP_TASK['cmd'] += ' --readoutDets ' + " ".join(activeDetectors) + ' --print ' + ('','--lhcif-CCDB')[args.run_anchored]
258+
if (not args.run_anchored == True) and len(args.bcPatternFile) > 0:
259259
GRP_TASK['cmd'] += ' --bcPatternFile ' + str(args.bcPatternFile)
260260
workflow['stages'].append(GRP_TASK)
261261

@@ -1069,8 +1069,10 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10691069
# produce AOD
10701070
# -----------
10711071
# TODO This needs further refinement, sources and dependencies should be constructed dynamically
1072-
aodinfosources = 'ITS,MFT,MCH,TPC,ITS-TPC,MFT-MCH,ITS-TPC-TOF,TPC-TOF,FT0,FDD,CTP,TPC-TRD,ITS-TPC-TRD,ITS-TPC-TRD-TOF,EMC'
1072+
aodinfosources = 'ITS,MFT,MCH,TPC,ITS-TPC,MFT-MCH,ITS-TPC-TOF,TPC-TOF,FT0,FDD,TPC-TRD,ITS-TPC-TRD,ITS-TPC-TRD-TOF'
10731073
aodneeds = [PVFINDERtask['name'], SVFINDERtask['name']]
1074+
if isActive('CTP'):
1075+
aodinfosources += ',CTP'
10741076
if isActive('FV0'):
10751077
aodneeds += [ FV0RECOtask['name'] ]
10761078
aodinfosources += ',FV0'
@@ -1080,6 +1082,7 @@ def addQCPerTF(taskName, needs, readerCommand, configFilePath, objectsFile=''):
10801082
aodneeds += [ TRDTRACKINGtask2['name'] ]
10811083
if isActive('EMC'):
10821084
aodneeds += [ EMCRECOtask['name'] ]
1085+
aodinfosources += ',EMC'
10831086
if isActive('CPV'):
10841087
aodneeds += [ CPVRECOtask['name'] ]
10851088
if isActive('PHS'):

MC/bin/o2dpg_sim_workflow_anchored.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,19 @@ def main():
238238
# make a CCDB accessor object
239239
ccdbreader = CCDBAccessor(args.ccdb_url)
240240
# fetch the EOR/SOR
241-
# retrieve_sor_eor(ccdbreader, args.run_number) # <-- from RCT/Info
241+
rct_sor_eor = retrieve_sor_eor(ccdbreader, args.run_number) # <-- from RCT/Info
242242
sor_eor = retrieve_sor_eor_fromGRPECS(ccdbreader, args.run_number)
243243
if not sor_eor:
244244
print ("No time info found")
245245
sys.exit(1)
246246

247+
# verify that the variaous sor_eor information are the same
248+
if sor_eor["SOR"] != rct_sor_eor["SOR"]:
249+
print ("Inconsistent SOR information on CCDB")
250+
251+
if sor_eor["EOR"] != rct_sor_eor["EOR"]:
252+
print ("Inconsistent EOR information on CCDB")
253+
247254
# determine timestamp, and production offset for the final
248255
# MC job to run
249256
timestamp, prod_offset = determine_timestamp(sor_eor["SOR"], sor_eor["EOR"], [args.split_id, args.prod_split], args.cycle, args.tf)

0 commit comments

Comments
 (0)