1 from __future__
import print_function
17 from ROOT
import TFile
38 stripfilename = afilename
42 stripfilename = self.
tag 44 stripfilename = afilename.split(
'/')[len(afilename.split(
'/')) -1]
45 stripfilename = stripfilename[0:(len(stripfilename)-5)]
47 alist = self.dir.GetListOfKeys()
51 if aobj.IsA().InheritsFrom(
"TDirectory"):
53 print(
' found directory: '+i.GetName())
56 print(
' <!-- '+i.GetName()+
' -->')
59 afile.GetObject(i.GetName(),bdir)
60 blist = bdir.GetListOfKeys()
63 if bobj.IsA().InheritsFrom(ROOT.TH1.Class()):
65 print(
' --> found TH1: name = '+j.GetName() +
' title = '+j.GetTitle())
67 print(
' <TH1 name=\"'+stripfilename+
'_'+j.GetName()+
'\" source=\"'+
'/'+i.GetName()+
'/'+j.GetName()+
'\"/>')
82 print(
' <validation type=\"'+afile.GetName()+
'\" file=\"'+self.
Filename+
'\" release=\"x.y.z\">')
84 self.
dir = ROOT.gDirectory
S & print(S &os, JobReport::InputFile const &f)
def SetFilename(self, value)
def createXML(self, value)