@@ -120,11 +120,11 @@ def SaveGenJetConstituents(process, addGenJetConst, addGenJetAK8Const, genJetCon
120120
121121 process .selectedGenJetAK8Constituents = cms .EDFilter ("PATPackedGenParticlePtrSelector" ,
122122 src = cms .InputTag ("genJetAK8Constituents" , "constituents" ),
123- cut = cms .string (genJetConstCut )
123+ cut = cms .string (genJetAK8ConstCut )
124124 )
125125 process .genjetConstituentsTask .add (process .selectedGenJetAK8Constituents )
126126
127- if addGenJetConst or addGenJetConst :
127+ if addGenJetConst or addGenJetAK8Const :
128128 process .finalGenPartCandidates = cms .EDProducer ("PackedGenParticlePtrMerger" ,
129129 src = cms .VInputTag (),
130130 skipNulls = cms .bool (True ),
@@ -155,7 +155,7 @@ def SaveGenJetConstituents(process, addGenJetConst, addGenJetAK8Const, genJetCon
155155 name = cms .string (process .genJetTable .name .value ()+ "GenPartCand" ),
156156 candIdxName = cms .string ("genPartCandIdx" ),
157157 candIdxDoc = cms .string ("Index in the GenPartCand table" ),
158- candidates = pfCandidatesTable .src ,
158+ candidates = process . genPartCandidatesTable .src ,
159159 jets = process .genJetTable .src ,
160160 jetCut = process .genJetTable .cut ,
161161 jetConstCut = process .selectedGenJetConstituents .cut
@@ -170,10 +170,10 @@ def SaveGenJetConstituents(process, addGenJetConst, addGenJetAK8Const, genJetCon
170170 name = cms .string (process .genJetAK8Table .name .value ()+ "GenPartCand" ),
171171 candIdxName = cms .string ("genPartCandIdx" ),
172172 candIdxDoc = cms .string ("Index in the GenPartCand table" ),
173- candidates = pfCandidatesTable .src ,
173+ candidates = process . genPartCandidatesTable .src ,
174174 jets = process .genJetAK8Table .src ,
175175 jetCut = process .genJetAK8Table .cut ,
176- jetConstCut = process .selectedGenJetConstituents .cut
176+ jetConstCut = process .selectedGenJetAK8Constituents .cut
177177 )
178178 process .genjetConstituentsTableTask .add (process .genJetAK8ConstituentsTable )
179179
@@ -183,12 +183,12 @@ def SaveGenJetConstituents(process, addGenJetConst, addGenJetAK8Const, genJetCon
183183 return process
184184
185185def SaveGenJetAK4Constituents (process ):
186- process = SaveGenJetConstituents (process ,True ,False )
186+ process = SaveGenJetConstituents (process ,addGenJetConst = True ,addGenJetAK8Const = False )
187187 return process
188188def SaveGenJetAK8Constituents (process ):
189- process = SaveGenJetConstituents (process ,True , False )
189+ process = SaveGenJetConstituents (process ,addGenJetConst = False , addGenJetAK8Const = True )
190190 return process
191191def SaveGenJetAK4AK8Constituents (process ):
192- process = SaveGenJetConstituents (process ,True ,True )
192+ process = SaveGenJetConstituents (process ,addGenJetConst = True ,addGenJetAK8Const = True )
193193 return process
194194
0 commit comments