11 def __init__ (self) :
12 super (BJetCalibAnalysisConfig, self).__init__ ()
13 self.setBlockName('BJetCalib')
14 self.addDependency('FTag', required=False)
15 self.addDependency('Muons', required=True)
16 self.addDependency('MuonsWorkingPoint', required=False)
17 self.addDependency('FTagJetSF', required=False)
18 self.addDependency('JvtWorkingPointEfficiencyConfig', required=False)
19 self.addOption ('containerName', '', type=str,
20 noneAction='error',
21 info="the name of the input jet container.")
22 self.addOption ('muonContainerName', '', type=str,
23 noneAction='error',
24 info="the name of the input muon container.")
25 self.addOption ('jetPreselection', "", type=str,
26 info="the jet preselection.")
27 self.addOption ('muonPreselection', "", type=str,
28 info="the muon preselection.")
29 self.addOption ('doPtCorr', True, type=bool,
30 info=r"whether to run the b-jet $p_\mathrm{T}$ correction on top of the muon-in-jet one.")
31 self.addOption ('onlyDecorate', False, type=bool,
32 info="whether to only decorate jets with the updated 4-vector.")
33 self.addOption ('changeAngularComponents', False, type=bool,
34 info="whether to change the angular components of the jet 4-vector when applying the muon-in-jet correction."
35 " This is not recommended, as it can cause unexpected downstream issues as eta/phi is usually not systematically varied.",
36 expertMode=True)
37