3 ROOT.gSystem.Load(
"libEgammaAnalysisElectronTools")
6 def __init__(self, data, gbrForest, isMC, isSync=False):
8 self.epCombinationTool.init(os.path.expandvars(gbrForest[0]), gbrForest[1])
10 self.random.SetSeed(0)
12 self.electronEnergyCalibratorRun2.initPrivateRng(self.
random)
15 if not electron.validCandidateP4Kind():
return False 16 electron.uncalibratedP4 = electron.p4()
17 electron.uncalibratedP4Error = electron.p4Error(electron.candidateP4Kind())
18 self.electronEnergyCalibratorRun2.calibrate(electron.physObj,
int(run))
electronEnergyCalibratorRun2
def correct(self, electron, run)
def __init__(self, data, gbrForest, isMC, isSync=False)