16 from ROOT
import TFile
35 afile = TFile(self.Filename)
36 afilename = self.Filename
37 stripfilename = afilename
41 stripfilename = self.tag
43 stripfilename = afilename.split(
'/')[len(afilename.split(
'/')) -1]
44 stripfilename = stripfilename[0:(len(stripfilename)-5)]
46 alist = self.dir.GetListOfKeys()
50 if aobj.IsA().InheritsFrom(
"TDirectory"):
52 print ' found directory: '+i.GetName()
55 print ' <!-- '+i.GetName()+
' -->'
58 afile.GetObject(i.GetName(),bdir)
59 blist = bdir.GetListOfKeys()
62 if bobj.IsA().InheritsFrom(ROOT.TH1.Class()):
64 print ' --> found TH1: name = '+j.GetName() +
' title = '+j.GetTitle()
66 print ' <TH1 name=\"'+stripfilename+
'_'+j.GetName()+
'\" source=\"'+
'/'+i.GetName()+
'/'+j.GetName()+
'\"/>'
70 afile = TFile(self.Filename)
73 print " error trying to open file: " + self.Filename
81 print ' <validation type=\"'+afile.GetName()+
'\" file=\"'+self.Filename+
'\" release=\"x.y.z\">'
83 self.dir = ROOT.gDirectory