39 def makeAlgs (self, config) :
42 if config.isPhyslite()
and self.jetCollection ==
'AntiKt4EMPFlowJets' :
43 config.setSourceName (self.containerName,
"AnalysisJets", originalName = self.jetCollection)
44 elif config.isPhyslite()
and self.jetCollection ==
'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets' :
45 config.setSourceName (self.containerName,
"AnalysisLargeRJets", originalName = self.jetCollection)
47 config.setSourceName (self.containerName, self.jetCollection, originalName = self.jetCollection)
50 if self.runOriginalObjectLink :
51 alg = config.createAlgorithm(
'CP::AsgOriginalObjectLinkAlg',
52 'JetOriginalObjectLinkAlg'+self.containerName )
53 alg.baseContainerName = self.jetCollection
54 alg.particles = config.readName (self.containerName)
55 if config.wantCopy (self.containerName) :
56 alg.particlesOut = config.copyName (self.containerName)
57 alg.preselection = config.getPreselection (self.containerName,
'')
60 if (self.runGhostMuonAssociation
is None and not config.isPhyslite())
or \
61 (self.runGhostMuonAssociation
is True):
62 alg = config.createAlgorithm(
'CP::JetGhostMuonAssociationAlg',
63 'JetGhostMuonAssociationAlg'+self.containerName )
64 alg.jets = config.readName (self.containerName)
65 if config.isPhyslite():
66 alg.muons =
"AnalysisMuons"
67 if config.wantCopy (self.containerName) :
68 alg.jetsOut = config.copyName (self.containerName)
72 if self.runTruthJetTagging
or (
73 self.runTruthJetTagging
is None
74 and config.dataType()
is not DataType.Data
77 alg = config.createAlgorithm(
'CP::JetDecoratorAlg',
'JetPileupLabelAlg'+self.containerName )
78 config.addPrivateTool(
'decorator',
'JetPileupLabelingTool' )
79 alg.jets = config.readName (self.containerName)
80 alg.jetsOut = config.copyName (self.containerName)
81 alg.decorator.RecoJetContainer = alg.jetsOut.replace (
'%SYS%',
'NOSYS')
82 alg.decorator.SuppressOutputDependence=
True
85 if config.wantCopy (self.containerName) :
86 alg = config.createAlgorithm(
'CP::AsgShallowCopyAlg',
'JetShallowCopyAlg' + self.containerName )
87 alg.input = config.readName (self.containerName)
88 alg.output = config.copyName (self.containerName)
90 config.addOutputVar (self.containerName,
'pt',
'pt')
91 config.addOutputVar (self.containerName,
'eta',
'eta', noSys=
True)
92 config.addOutputVar (self.containerName,
'phi',
'phi', noSys=
True)
93 config.addOutputVar (self.containerName,
'charge',
'charge', noSys=
True, enabled=
False)