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)
◆ makeAlgs()
def ParticleLevelMissingETConfig.ParticleLevelMissingETBlock.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 18 of file ParticleLevelMissingETConfig.py.
18 def makeAlgs(self, config):
20 alg = config.createAlgorithm(
'CP::ParticleLevelMissingETAlg',
21 'ParticleLevelMissingET' + self.containerName,
23 alg.met = self.containerName
25 config.setSourceName (self.outputContainerName, self.containerName, isMet=
True)
26 if config.wantCopy (self.outputContainerName):
27 alg = config.createAlgorithm(
'CP::AsgShallowCopyAlg',
'TruthMissingETShallowCopyAlg' )
28 alg.input = config.readName (self.outputContainerName)
29 alg.output = config.copyName (self.outputContainerName)
31 config.addOutputVar (self.outputContainerName,
'met',
'met', noSys=
True)
32 config.addOutputVar (self.outputContainerName,
'phi',
'phi', noSys=
True)
The documentation for this class was generated from the following file: