diff --git a/PhysicsTools/Heppy/python/analyzers/objects/JetAnalyzer.py b/PhysicsTools/Heppy/python/analyzers/objects/JetAnalyzer.py index 7934703209ffd..38d38c36b2f1a 100644 --- a/PhysicsTools/Heppy/python/analyzers/objects/JetAnalyzer.py +++ b/PhysicsTools/Heppy/python/analyzers/objects/JetAnalyzer.py @@ -167,10 +167,10 @@ def process(self, event): for igj, gj in enumerate(self.genJets): gj.index = igj # self.matchJets(event, allJets) - if self.matchJetsWithThreshold and not getattr(self.cfg_ana, 'smearJets', False): - self.matchJets(event, [ j for j in allJets if j.pt()>self.cfg_ana.jetPt ]) # To match only jets above chosen threshold - else: - self.matchJets(event, allJets) + if self.matchJetsWithThreshold and not getattr(self.cfg_ana, 'smearJets', False): + self.matchJets(event, [ j for j in allJets if j.pt()>self.cfg_ana.jetPt ]) # To match only jets above chosen threshold + else: + self.matchJets(event, allJets) if getattr(self.cfg_ana, 'smearJets', False): self.smearJets(event, allJets)