3 from AnalysisAlgorithmsConfig.ConfigBlock
import ConfigBlock
7 """ConfigBlock for particle-level truth jets"""
10 super(ParticleLevelJetsBlock, self).
__init__()
11 self.addOption(
'containerName',
'AntiKt4TruthDressedWZJets', type=str,
12 info=
'the name of the input truth jets container')
14 self.setOptionValue(
'skipOnData',
True)
17 config.setSourceName (self.containerName, self.containerName)
20 if "AntiKt4" in self.containerName:
21 alg = config.createAlgorithm(
'CP::ParticleLevelJetsAlg',
'ParticleLevelJetsAlg' + self.containerName)
22 alg.jets = self.containerName
25 alg = config.createAlgorithm(
'CP::AsgEnergyDecoratorAlg',
'ParticleLevelEnergyDecorator' + self.containerName )
26 alg.particles = self.containerName
33 [
'GhostBHadronsFinalCount',
'nGhosts_bHadron'],
34 [
'GhostCHadronsFinalCount',
'nGhosts_cHadron'],
36 for decoration, branch
in outputVars:
37 config.addOutputVar (self.containerName, decoration, branch, noSys=
True)
39 if "AntiKt4" in self.containerName:
40 config.addOutputVar(
'EventInfo',
'num_truth_bjets_nocuts',
'num_truth_bjets_nocuts', noSys=
True)
41 config.addOutputVar(
'EventInfo',
'num_truth_cjets_nocuts',
'num_truth_cjets_nocuts', noSys=
True)