37 jetPreselection = config.getFullSelection(self.containerName, self.jetPreselection)
39 alg = config.createAlgorithm(
'CP::AsgSelectionAlg',
41 alg.selectionDecoration =
'selectPtEtaFtag'
42 config.addPrivateTool(
'selectionTool',
'CP::AsgPtEtaSelectionTool')
43 alg.selectionTool.maxEta = 2.5
44 alg.selectionTool.minPt = 20. * Units.GeV
45 alg.particles = config.readName(self.containerName)
46 alg.preselection = config.getPreselection(self.containerName,
'')
47 jetPreselection =
"selectPtEtaFtag&&"+jetPreselection
49 alg = config.createAlgorithm(
'CP::BJetCalibrationAlg',
51 alg.muons = config.readName(self.muonContainerName)
52 alg.muonPreselection = config.getPreselection(self.muonContainerName,
53 self.muonPreselection)
54 alg.jets = config.readName(self.containerName)
55 alg.jetPreselection = jetPreselection
56 alg.jetsOut = config.copyName(self.containerName)
58 config.addPrivateTool(
'muonInJetTool',
'MuonInJetCorrectionTool')
60 if "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets" in alg.jets:
61 alg.muonInJetTool.doLargeR =
True
64 config.addPrivateTool(
'bJetTool',
'BJetCorrectionTool')
67 alg = config.createAlgorithm(
'CP::AsgEnergyDecoratorAlg',
'EnergyDecoratorBJetCalib' )
68 alg.particles = config.readName (self.containerName)