Created
April 25, 2017 09:37
-
-
Save mazurov/2c178fc566f26efdb8bcb6b96233f913 to your computer and use it in GitHub Desktop.
Dump events from GRID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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