|
def | __init__ (self, containerName='', muonContainerName='') |
|
def | makeAlgs (self, config) |
|
the ConfigBlock for the b-jet calibration sequence
Definition at line 8 of file BJetCalibAnalysisConfig.py.
◆ __init__()
def python.BJetCalibAnalysisConfig.BJetCalibAnalysisConfig.__init__ |
( |
|
self, |
|
|
|
containerName = '' , |
|
|
|
muonContainerName = '' |
|
) |
| |
Definition at line 11 of file BJetCalibAnalysisConfig.py.
11 def __init__ (self, containerName='', muonContainerName='') :
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.addOption (
'containerName', containerName, type=str,
19 info=
"the name of the input jet container.")
20 self.addOption (
'muonContainerName', muonContainerName, type=str,
22 info=
"the name of the input muon container.")
23 self.addOption (
'jetPreselection',
"", type=str,
24 info=
"the jet preselection")
25 self.addOption (
'muonPreselection',
"", type=str,
26 info=
"the muon preselection")
27 self.addOption (
'doPtCorr',
True, type=bool,
28 info=
"whether to run the b-jet pT correction on top of the muon-in-jet one")
◆ makeAlgs()
def python.BJetCalibAnalysisConfig.BJetCalibAnalysisConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 30 of file BJetCalibAnalysisConfig.py.
30 def makeAlgs(self, config):
33 jetPreselection = config.getFullSelection(self.containerName, self.jetPreselection)
35 alg = config.createAlgorithm(
'CP::AsgSelectionAlg',
36 'FtagPTEtaCutAlg' + self.containerName)
37 alg.selectionDecoration =
'selectPtEtaFtag'
38 config.addPrivateTool(
'selectionTool',
'CP::AsgPtEtaSelectionTool')
39 alg.selectionTool.maxEta = 2.5
40 alg.selectionTool.minPt = 20. * Units.GeV
41 alg.particles = config.readName(self.containerName)
42 alg.preselection = config.getPreselection(self.containerName,
'')
43 jetPreselection =
"selectPtEtaFtag&&"+jetPreselection
45 alg = config.createAlgorithm(
'CP::BJetCalibrationAlg',
46 'BJetCalibAlg_' + self.containerName)
47 alg.muons = config.readName(self.muonContainerName)
48 alg.muonPreselection = config.getPreselection(self.muonContainerName,
49 self.muonPreselection)
50 alg.jets = config.readName(self.containerName)
51 alg.jetPreselection = jetPreselection
52 alg.jetsOut = config.copyName(self.containerName)
54 config.addPrivateTool(
'muonInJetTool',
'MuonInJetCorrectionTool')
56 if "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets" in alg.jets:
57 alg.muonInJetTool.doLargeR =
True
60 config.addPrivateTool(
'bJetTool',
'BJetCorrectionTool')
63 alg = config.createAlgorithm(
'CP::AsgEnergyDecoratorAlg',
'EnergyDecoratorBJetCalib' + self.containerName )
64 alg.particles = config.readName (self.containerName)
The documentation for this class was generated from the following file: