34 def makeAlgs(self, config):
35
36
37 jetPreselection = config.getFullSelection(self.containerName, self.jetPreselection)
38 if jetPreselection:
39 alg = config.createAlgorithm('CP::AsgSelectionAlg',
40 'FtagPTEtaCutAlg')
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
48
49 alg = config.createAlgorithm('CP::BJetCalibrationAlg',
50 'BJetCalibAlg')
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)
57
58 config.addPrivateTool('muonInJetTool', 'MuonInJetCorrectionTool')
59
60 if "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets" in alg.jets:
61 alg.muonInJetTool.doLargeR = True
62
63 if self.doPtCorr:
64 config.addPrivateTool('bJetTool', 'BJetCorrectionTool')
65
66
67 alg = config.createAlgorithm( 'CP::AsgEnergyDecoratorAlg', 'EnergyDecoratorBJetCalib' )
68 alg.particles = config.readName (self.containerName)