3 from AnalysisAlgorithmsConfig.ConfigBlock
import ConfigBlock
7 """ConfigBlock for particle-level truth missing transverse energy"""
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)
20 alg = config.createAlgorithm(
'CP::ParticleLevelMissingETAlg',
'ParticleLevelMissingET' + self.containerName )
21 alg.met = self.containerName
23 config.setSourceName (self.outputContainerName, self.containerName, isMet=
True)
24 if config.wantCopy (self.outputContainerName):
25 alg = config.createAlgorithm(
'CP::AsgShallowCopyAlg',
'TruthMissingETShallowCopyAlg' )
26 alg.input = config.readName (self.outputContainerName)
27 alg.output = config.copyName (self.outputContainerName)
29 config.addOutputVar (self.outputContainerName,
'met',
'met', noSys=
True)
30 config.addOutputVar (self.outputContainerName,
'phi',
'phi', noSys=
True)