41 alg = config.createAlgorithm(
'CP::FakeBkgCalculatorAlg',
'FakeBkgCalculatorAlg')
43 alg.electrons, alg.electronSelection = config.readNameAndSelection(self.electrons)
44 alg.electronSelectionTarget = config.getFullSelection(self.electrons.
split(
".")[0], self.electronsTarget)
45 alg.muons, alg.muonSelection = config.readNameAndSelection(self.muons)
46 alg.muonSelectionTarget = config.getFullSelection(self.muons.
split(
".")[0], self.muonsTarget)
48 alg.eventPreselection = self.eventPreselection
49 alg.Process = self.process
50 alg.Definition = self.definition
52 config.addPrivateTool(
'FakeTool', self.
fakeTool)
53 alg.FakeTool.InputFiles = [self.config]
54 alg.FakeTool.Process = self.process
55 alg.FakeTool.Selection = self.definition
56 alg.FakeTool.EnergyUnit =
'GeV'
57 alg.FakeTool.ConvertWhenMissing =
True
58 alg.FakeTool.TightDecoration =
'TightForFakeBkgCalculation,as_char'
60 alg.FakeToolOutput =
'FakeToolOutput_' + self.
setupName +
'_%SYS%'
61 config.addOutputVar(
'EventInfo', alg.FakeToolOutput,
'weight_fake_' + self.
setupName, noSys=
True)