23 |
|
tmpBranch = Branch() |
24 |
|
tmpBranch.name = branch.GetName() |
25 |
|
if not "EventAux" in tmpBranch.name: |
26 |
+ |
tmpBranch.process = tmpBranch.name.split("_")[3] |
27 |
|
tmpBranch.label = tmpBranch.name.split("_")[2] |
28 |
|
tmpBranch.type = branchType(branch) |
29 |
|
tmpBranch.module = tmpBranch.name.split("_")[1] |
31 |
|
branches.append(copy.copy(tmpBranch)) |
32 |
|
|
33 |
|
for branch in branches: |
34 |
< |
print '%s "%s" "%s"' %(branch.type, branch.module, branch.label) |
34 |
> |
print '%s "%s" "%s" "%s"' %(branch.type, branch.module, branch.label, branch.process) |
35 |
|
|
36 |
|
|
37 |
|
if __name__ == "__main__": |
40 |
|
if 2 == len(args): |
41 |
|
try: |
42 |
|
import PhysicsTools.PythonAnalysis as cmstools |
43 |
+ |
sys.argv.append( '-b-' ) #to let ROOT understand we are in batch mode |
44 |
|
import ROOT |
45 |
|
ROOT.gSystem.Load("libFWCoreFWLite.so") |
46 |
|
ROOT.AutoLibraryLoader.enable() |
49 |
|
except: |
50 |
|
"Could not read %s" %filename |
51 |
|
else: |
52 |
< |
print "Usage: EdmDumpEventContent filename.root" |
52 |
> |
print "Usage: edmDumpEventContent filename.root" |
53 |
|
|
54 |
|
|