forked from cms-sw/cmssw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#285 from mmarionncern/MM-CMG022515-v2
Addition of Jet variables/gen event histograms to the susy multilepton analysis/heppy updates (jet-tau, LHE analyzer and PDF weights)
- Loading branch information
Showing
15 changed files
with
207 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
CMGTools/TTHAnalysis/python/analyzers/ttHJetTauAnalyzer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from PhysicsTools.Heppy.analyzers.core.Analyzer import Analyzer | ||
#from CMGTools.RootTools.fwlite.AutoHandle import AutoHandle | ||
|
||
|
||
class ttHJetTauAnalyzer( Analyzer ): | ||
def __init__(self, cfg_ana, cfg_comp, looperName ): | ||
super(ttHJetTauAnalyzer,self).__init__(cfg_ana,cfg_comp,looperName) | ||
|
||
def declareHandles(self): | ||
super(ttHJetTauAnalyzer, self).declareHandles() | ||
|
||
def beginLoop(self, setup): | ||
super(ttHJetTauAnalyzer,self).beginLoop(setup) | ||
|
||
def findNonTauJets(self, jets): | ||
iJetNoTau = [] | ||
for ij in xrange(len(jets)): | ||
if not jets[ij].taus: | ||
iJetNoTau.append(ij) | ||
|
||
return iJetNoTau | ||
|
||
def process(self, event): | ||
self.readCollections(event.input) | ||
|
||
event.jetsNonTauIdx = self.findNonTauJets(event.cleanJets) | ||
|
||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.