33 alg = config.createAlgorithm(
'CP::ParticleLevelOverlapRemovalAlg',
34 'ParticleLevelOverlapRemoval',
36 alg.useDressedProperties = self.useDressedProperties
37 alg.useRapidityForDeltaR = self.useRapidityForDeltaR
38 alg.labelOR = self.label
40 alg.electrons, alg.electronSelection = config.readNameAndSelection (self.
electrons)
41 alg.doJetElectronOR =
True
43 config.addSelection (self.
electrons.
split(
".")[0], selection, alg.labelOR +
',as_char')
45 alg.muons, alg.muonSelection = config.readNameAndSelection (self.
muons)
46 alg.doJetMuonOR =
True
48 config.addSelection (self.
muons.
split(
".")[0], selection, alg.labelOR +
',as_char')
50 alg.photons, alg.photonSelection = config.readNameAndSelection (self.
photons)
51 alg.doJetPhotonOR =
True
53 config.addSelection (self.
photons.
split(
".")[0], selection, alg.labelOR +
',as_char')
55 alg.jets, alg.jetSelection = config.readNameAndSelection (self.
jets)
57 config.addSelection (self.
jets.
split(
".")[0], selection, alg.labelOR +
',as_char')
59 raise ValueError(
'Particle-level overlap removal needs the jet container to be run!')