ConfigBlock for particle-level truth taus
Definition at line 6 of file ParticleLevelTausConfig.py.
◆ __init__()
def ParticleLevelTausConfig.ParticleLevelTausBlock.__init__ |
( |
|
self | ) |
|
Definition at line 9 of file ParticleLevelTausConfig.py.
10 super(ParticleLevelTausBlock, self).
__init__()
11 self.addOption(
'containerName',
'TruthTaus', type=str,
12 info=
'the name of the input truth taus container')
13 self.addOption(
'selectionName',
'', type=str,
14 info=
'the name of the selection to create. The default is "",'
15 ' which applies the selection to all truth taus.')
16 self.addOption(
'isolated',
True, type=bool,
17 info=
'select only truth taus that are isolated.')
19 self.setOptionValue(
'skipOnData',
True)
◆ makeAlgs()
def ParticleLevelTausConfig.ParticleLevelTausBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 21 of file ParticleLevelTausConfig.py.
21 def makeAlgs(self, config):
22 config.setSourceName (self.containerName, self.containerName)
25 alg = config.createAlgorithm(
'CP::ParticleLevelPtEtaPhiDecoratorAlg',
'ParticleLevelPtEtaPhiDecoratorTaus' + self.selectionName)
26 alg.particles = self.containerName
29 alg = config.createAlgorithm(
'CP::ParticleLevelChargeDecoratorAlg',
'ParticleLevelChargeDecoratorTaus' + self.selectionName)
30 alg.particles = self.containerName
33 alg = config.createAlgorithm(
'CP::ParticleLevelIsolationAlg',
'ParticleLevelIsolationTaus' + self.selectionName)
34 alg.particles = self.containerName
35 alg.isolation =
'isIsolated' + self.selectionName
if self.isolated
else 'isIsolatedButNotRequired' + self.selectionName
36 alg.notTauOrigin =
'notFromTauButNotRequired' + self.selectionName
37 alg.checkType =
'IsoTau'
40 config.addSelection (self.containerName, self.selectionName, alg.isolation+
',as_char')
43 if ParticleLevelTausBlock.get_instance_count() == 1:
50 [
'IsHadronicTau',
'IsHadronicTau'],
51 [
'classifierParticleType',
'type'],
52 [
'classifierParticleOrigin',
'origin'],
54 for decoration, branch
in outputVars:
55 config.addOutputVar (self.containerName, decoration, branch, noSys=
True)
The documentation for this class was generated from the following file: