ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelResonancesConfig.ParticleLevelResonancesBlock Class Reference
Inheritance diagram for ParticleLevelResonancesConfig.ParticleLevelResonancesBlock:
Collaboration diagram for ParticleLevelResonancesConfig.ParticleLevelResonancesBlock:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Public Attributes

 containerName

Detailed Description

ConfigBlock for particle-level truth resonances, i.e. unstable objects that 
would NOT be used to build a detector-level final state. This includes 
TruthBoson, TruthBottom, TruthTop, TruthBSM. Provides only basic functionalities, 
like storing the four-vector information, applying pT/eta selections, and thinning.

Definition at line 6 of file ParticleLevelResonancesConfig.py.

Constructor & Destructor Documentation

◆ __init__()

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.__init__ ( self)

Definition at line 12 of file ParticleLevelResonancesConfig.py.

12 def __init__(self):
13 super(ParticleLevelResonancesBlock, self).__init__()
14 self.addOption('containerName', '', type=str,
15 info='the name of the input truth container. Supported options: `TruthBoson`, `TruthBottom`, `TruthTop`, `TruthBSM`.')
16 # Always skip on data
17 self.setOptionValue('skipOnData', True)
18

Member Function Documentation

◆ instanceName()

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.instanceName ( self)
Return the instance name for this block

Definition at line 19 of file ParticleLevelResonancesConfig.py.

19 def instanceName (self) :
20 """Return the instance name for this block"""
21 return self.containerName
22

◆ makeAlgs()

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.makeAlgs ( self,
config )

Definition at line 23 of file ParticleLevelResonancesConfig.py.

23 def makeAlgs(self, config):
24 config.setSourceName (self.containerName, self.containerName)
25
26 # decorate the missing elements of the 4-vector so we can save it later
27 alg = config.createAlgorithm('CP::ParticleLevelPtEtaPhiDecoratorAlg',
28 'ParticleLevelPtEtaPhiEDecoratorResonances',
29 reentrant=True)
30 alg.particles = self.containerName
31
32 outputVars = [
33 ['pt', 'pt', 'float'],
34 ['eta', 'eta', 'float'],
35 ['phi', 'phi', 'float'],
36 ['m', 'm', 'float'],
37 ['classifierParticleType', 'type', 'unsigned'],
38 ['classifierParticleOrigin', 'origin', 'unsigned'],
39 ['pdgId', 'pdgId', 'int'],
40 ['status', 'status', 'int'],
41 ]
42 for decoration, branch, auxType in outputVars:
43 config.addOutputVar (self.containerName, decoration, branch, noSys=True, auxType=auxType)

Member Data Documentation

◆ containerName

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.containerName

Definition at line 24 of file ParticleLevelResonancesConfig.py.


The documentation for this class was generated from the following file: