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 meta={'role':'container','choices':(['TruthBoson','TruthBottom','TruthTop','TruthBSM'],1)})
17 # Always skip on data
18 self.setOptionValue('skipOnData', True)
19

Member Function Documentation

◆ instanceName()

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

Definition at line 20 of file ParticleLevelResonancesConfig.py.

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

◆ makeAlgs()

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.makeAlgs ( self,
config )

Definition at line 24 of file ParticleLevelResonancesConfig.py.

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

Member Data Documentation

◆ containerName

ParticleLevelResonancesConfig.ParticleLevelResonancesBlock.containerName

Definition at line 25 of file ParticleLevelResonancesConfig.py.


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