ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelMissingETConfig.ParticleLevelMissingETBlock Class Reference
Inheritance diagram for ParticleLevelMissingETConfig.ParticleLevelMissingETBlock:
Collaboration diagram for ParticleLevelMissingETConfig.ParticleLevelMissingETBlock:

Public Member Functions

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

Public Attributes

 outputContainerName
 containerName

Detailed Description

ConfigBlock for particle-level truth missing transverse energy

Definition at line 6 of file ParticleLevelMissingETConfig.py.

Constructor & Destructor Documentation

◆ __init__()

ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.__init__ ( self)

Definition at line 9 of file ParticleLevelMissingETConfig.py.

9 def __init__(self):
10 super(ParticleLevelMissingETBlock, self).__init__()
11 self.addOption('containerName', 'MET_Truth', type=str,
12 info='the name of the input truth MET container.')
13 self.addOption('outputContainerName', 'TruthMET', type=str,
14 info='the name of the output MET container.',
15 meta={'role':'container'})
16 # Always skip on data
17 self.setOptionValue('skipOnData', True)
18

Member Function Documentation

◆ instanceName()

ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.instanceName ( self)
Return the instance name for this block

Definition at line 19 of file ParticleLevelMissingETConfig.py.

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

◆ makeAlgs()

ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.makeAlgs ( self,
config )

Definition at line 23 of file ParticleLevelMissingETConfig.py.

23 def makeAlgs(self, config):
24 # decorate the energy and phi so we can save them later
25 alg = config.createAlgorithm( 'CP::ParticleLevelMissingETAlg',
26 'ParticleLevelMissingET',
27 reentrant=True )
28 alg.met = self.containerName
29
30 config.setSourceName (self.outputContainerName, self.containerName, isMet=True)
31 if config.wantCopy (self.outputContainerName):
32 alg = config.createAlgorithm( 'CP::AsgShallowCopyAlg', 'TruthMissingETShallowCopyAlg' )
33 alg.input = config.readName (self.outputContainerName)
34 alg.output = config.copyName (self.outputContainerName)
35
36 config.addOutputVar (self.outputContainerName, 'met', 'met', noSys=True, auxType='float')
37 config.addOutputVar (self.outputContainerName, 'phi', 'phi', noSys=True, auxType='float')

Member Data Documentation

◆ containerName

ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.containerName

Definition at line 30 of file ParticleLevelMissingETConfig.py.

◆ outputContainerName

ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.outputContainerName

Definition at line 30 of file ParticleLevelMissingETConfig.py.


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