11 def __init__(self):
12 super(LeptonSFCalculatorBlock, self).__init__()
13 self.addDependency("ElectronWorkingPointEfficiency", required=False)
14 self.addDependency("PhotonWorkingPointEfficiency", required=False)
15 self.addDependency("MuonWorkingPointEfficiency", required=False)
16 self.addDependency("TauWorkingPointEfficiency", required=False)
17 self.addOption('electrons', None, type=str,
18 info='the input electron container, with a possible selection, in the format `container` or `container.selection`.')
19 self.addOption('electronSFs', None, type=list,
20 info='list of decorated electron SFs to use in the computation. If not set, will use reconstruction x ID x isolation, also ECIDS (charge ID) if available.')
21 self.addOption('muons', None, type=str,
22 info='the input muon container, with a possible selection, in the format `container` or `container.selection`.')
23 self.addOption('muonSFs', None, type=list,
24 info='list of decorated muon SFs to use in the computation. If not set, will use reconstruction x isolation x TTVA.')
25 self.addOption('photons', None, type=str,
26 info='the input photon container, with a possible selection, in the format `container` or `container.selection`.')
27 self.addOption('photonSFs', None, type=list,
28 info='list of decorated photon SFs to use in the computation. If not set, will use ID x isolation.')
29 self.addOption('taus', None, type=str,
30 info='the input tau-jet container, with a possible selection, in the format `container` or `container.selection`.')
31 self.addOption('tauSFs', None, type=list,
32 info='list of decorated tau-jet SFs to use in the computation. If not set, will use reconstruction x ID x eVeto.')
33 self.addOption('lepton_postfix', None, type=str,
34 info='the name of the common lepton SF, e.g. `tight`.')
35 self.addOption('includeElectronChargeMisID', False, type=str,
36 info='whether to include the electron charge mis-ID SFs in the computation. The user is responsible for determining whether these are available.')
37 self.addOption('includeMuonBadVeto', False, type=str,
38 info='whether to include the muon bad veto SFs in the computation. The user is responsible for determining whether these are available.')
39