ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/PhysicsTools/PythonAnalysis/scripts/edmDumpEventContent
(Generate patch)

Comparing CMSSW/PhysicsTools/PythonAnalysis/scripts/edmDumpEventContent (file contents):
Revision 1.1 by lsexton, Sun Jul 15 21:39:05 2007 UTC vs.
Revision 1.3 by hegner, Fri Apr 3 21:00:47 2009 UTC

# Line 23 | Line 23 | def dumpBranches(filename):
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]
# Line 30 | Line 31 | def dumpBranches(filename):
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__":
# Line 39 | Line 40 | 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()
# Line 47 | Line 49 | if __name__ == "__main__":
49          except:
50              "Could not read %s" %filename
51      else:
52 <        print "Usage: EdmDumpEventContent filename.root"
52 >        print "Usage: edmDumpEventContent filename.root"
53  
54                                                      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines