for job in info: if not job.name in namelist: continue ROOT.gROOT.ProcessLine("struct H {\ int HiggsFlag;\ float mass;\ float pt;\ float eta;\ float phi;\ float dR;\ float dPhi;\ float dEta;\ } ;") if anaTag == '7TeV': ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShape btagNom = BTagShape("../data/csvdiscr.root") btagNom.computeFunctions() btagUp = BTagShape("../data/csvdiscr.root") btagUp.computeFunctions(+1., 0.) btagDown = BTagShape("../data/csvdiscr.root") btagDown.computeFunctions(-1., 0.) btagFUp = BTagShape("../data/csvdiscr.root") btagFUp.computeFunctions(0., +1.) btagFDown = BTagShape("../data/csvdiscr.root") btagFDown.computeFunctions(0., -1.) else: ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShapeInterface btagNom = BTagShapeInterface("../data/csvdiscr.root", 0, 0) btagUp = BTagShapeInterface("../data/csvdiscr.root", +1, 0) btagDown = BTagShapeInterface("../data/csvdiscr.root", -1, 0)
ROOT.gROOT.ProcessLine( "struct H {\ int HiggsFlag;\ float mass;\ float pt;\ float eta;\ float phi;\ float dR;\ float dPhi;\ float dEta;\ } ;" ) if anaTag == '7TeV': ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShape btagNom = BTagShape("../data/csvdiscr.root") btagNom.computeFunctions() btagUp = BTagShape("../data/csvdiscr.root") btagUp.computeFunctions(+1.,0.) btagDown = BTagShape("../data/csvdiscr.root") btagDown.computeFunctions(-1.,0.) btagFUp = BTagShape("../data/csvdiscr.root") btagFUp.computeFunctions(0.,+1.) btagFDown = BTagShape("../data/csvdiscr.root") btagFDown.computeFunctions(0.,-1.) else: ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShapeInterface btagNom = BTagShapeInterface("../data/csvdiscr.root",0,0) btagUp = BTagShapeInterface("../data/csvdiscr.root",+1,0) btagDown = BTagShapeInterface("../data/csvdiscr.root",-1,0)
"struct H {\ int HiggsFlag;\ float mass;\ float pt;\ float eta;\ float phi;\ float dR;\ float dPhi;\ float dEta;\ } ;" ) if anaTag == "7TeV": ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShape btagNom = BTagShape("../data/csvdiscr.root") btagNom.computeFunctions() btagUp = BTagShape("../data/csvdiscr.root") btagUp.computeFunctions(+1.0, 0.0) btagDown = BTagShape("../data/csvdiscr.root") btagDown.computeFunctions(-1.0, 0.0) btagFUp = BTagShape("../data/csvdiscr.root") btagFUp.computeFunctions(0.0, +1.0) btagFDown = BTagShape("../data/csvdiscr.root") btagFDown.computeFunctions(0.0, -1.0) else: ROOT.gSystem.Load(btagLibrary) from ROOT import BTagShapeInterface btagNom = BTagShapeInterface("../data/csvdiscr.root", 0, 0) btagUp = BTagShapeInterface("../data/csvdiscr.root", +1, 0)