def __init__(self, is_up, np='TOTAL', matched_state=None, **kwargs): super(TES, self).__init__(is_up, **kwargs) self.np = getattr(TauCorrUncert.TESUncertainty, np) self.matched_state = matched_state if self.year == 2011: input = TCU.get_resource('TES/mc11.root') elif self.year == 2012: # TODO use medium and tight? input = TCU.get_resource('TES/mc12_p1344_medium.root') else: raise ValueError('No TES defined for year %d' % self.year) self.tes_tool = TauCorrUncert.TESUncertainty(input)
def __init__(self, *args, **kwargs): from externaltools import TauCorrUncert as TCU from ROOT import TauCorrUncert self.tool = TauCorrUncert.TESUncertainty( TCU.get_resource('TES/mc12_p1344_medium.root')) super(TauEnergyShift, self).__init__(*args, **kwargs)