ConfigBlock for particle-level truth missing transverse energy
Definition at line 6 of file ParticleLevelMissingETConfig.py.
◆ __init__()
def ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.__init__ |
( |
|
self | ) |
|
Definition at line 9 of file ParticleLevelMissingETConfig.py.
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')
16 self.setOptionValue(
'skipOnData',
True)
◆ instanceName()
def ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 18 of file ParticleLevelMissingETConfig.py.
18 def instanceName (self) :
19 """Return the instance name for this block"""
20 return self.containerName
◆ makeAlgs()
def ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 22 of file ParticleLevelMissingETConfig.py.
22 def makeAlgs(self, config):
24 alg = config.createAlgorithm(
'CP::ParticleLevelMissingETAlg',
25 'ParticleLevelMissingET',
27 alg.met = self.containerName
29 config.setSourceName (self.outputContainerName, self.containerName, isMet=
True)
30 if config.wantCopy (self.outputContainerName):
31 alg = config.createAlgorithm(
'CP::AsgShallowCopyAlg',
'TruthMissingETShallowCopyAlg' )
32 alg.input = config.readName (self.outputContainerName)
33 alg.output = config.copyName (self.outputContainerName)
35 config.addOutputVar (self.outputContainerName,
'met',
'met', noSys=
True)
36 config.addOutputVar (self.outputContainerName,
'phi',
'phi', noSys=
True)
The documentation for this class was generated from the following file: