ConfigBlock for particle-level truth taus
Definition at line 6 of file ParticleLevelOverlapRemovalConfig.py.
◆ __init__()
def ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock.__init__ |
( |
|
self | ) |
|
Definition at line 9 of file ParticleLevelOverlapRemovalConfig.py.
10 super(ParticleLevelOverlapRemovalBlock, self).
__init__()
11 self.addOption(
'jets',
'', type=str,
12 info =
'the name of the input truth jets container, in the format "container" or "container.selection".')
13 self.addOption(
'electrons',
'', type=str,
14 info=
'the name of the input truth electrons container, in the format "container" or "container.selection".')
15 self.addOption(
'muons',
'', type=str,
16 info=
'the name of the input truth muons container, in the format "container" or "container.selection".')
17 self.addOption(
'photons',
'', type=str,
18 info=
'the name of the input truth photons container, in the format "container" or "container.selection".')
19 self.addOption(
'label',
'passesOR', type=str,
20 info=
'the name of the decoration to apply to all particles passing OR')
21 self.addOption(
'useDressedProperties',
True, type=bool,
22 info=
'whether to use dressed electron and muon kinematics rather than simple P4 kinematics')
23 self.addOption(
'useRapidityForDeltaR',
True, type=bool,
24 info=
'whether to use rapidity instead of pseudo-rapidity for the calculation of DeltaR')
26 self.setOptionValue(
'skipOnData',
True)
◆ makeAlgs()
def ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 28 of file ParticleLevelOverlapRemovalConfig.py.
28 def makeAlgs(self, config):
29 alg = config.createAlgorithm(
'CP::ParticleLevelOverlapRemovalAlg',
'ParticleLevelOverlapRemoval')
30 alg.useDressedProperties = self.useDressedProperties
31 alg.useRapidityForDeltaR = self.useRapidityForDeltaR
32 alg.labelOR = self.label
34 alg.electrons, alg.electronSelection = config.readNameAndSelection (self.electrons)
35 alg.doJetElectronOR =
True
36 config.addSelection (self.electrons,
'', alg.labelOR +
',as_char')
38 alg.muons, alg.muonSelection = config.readNameAndSelection (self.muons)
39 alg.doJetMuonOR =
True
40 config.addSelection (self.muons,
'', alg.labelOR +
',as_char')
42 alg.photons, alg.photonSelection = config.readNameAndSelection (self.photons)
43 alg.doJetPhotonOR =
True
44 config.addSelection (self.photons,
'', alg.labelOR +
',as_char')
46 alg.jets, alg.jetSelection = config.readNameAndSelection (self.jets)
47 config.addSelection (self.jets,
'', alg.labelOR +
',as_char')
49 raise ValueError(
'Particle-level overlap removal needs the jet container to be run!')
The documentation for this class was generated from the following file: