Skip to content

Instantly share code, notes, and snippets.

@mazurov
Created April 25, 2017 09:37
Show Gist options
  • Save mazurov/2c178fc566f26efdb8bcb6b96233f913 to your computer and use it in GitHub Desktop.
Save mazurov/2c178fc566f26efdb8bcb6b96233f913 to your computer and use it in GitHub Desktop.
Dump events from GRID
import sys,os
files = sys.argv[1].replace(',',' ')
events = ''
for line in open('event.txt'):
events += '%s,' % line.split()[-1]
events = events[:-1]
com = "AtlCopyBSEvent -e %s -o event.dat %s" % (events,files)
print com
sta = os.system(com)
sys.exit(sta % 255)
prun --exec "python evthelper.py %IN" --outDS user.amazurov.l1calo5 --inDS data16_13TeV:data16_13TeV.00300279.physics_Main.daq.RAW --outputs event.dat --allowNoOutput=event.dat --athenaTag=21.0.20,Athena
# data17_cos.00320872.physics_CosmicCalo.merge.RAW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment