Public Member Functions | |
def | __init__ (self, cfg_ana, cfg_comp, looperName) |
def | beginLoop (self, setup) |
def | declareHandles (self) |
def | jerCorrection (self, jet) |
def | jesCorrection (self, jet, scale=0.) |
def | process (self, event) |
def | testBJet (self, jet) |
def | testJet (self, jet) |
def | testJetID (self, jet) |
Public Attributes | |
btagSF | |
is2012 | |
Analyze jets ;-) This analyzer filters the jets that do not correspond to the leptons stored in event.selectedLeptons, and puts in the event: - jets: all jets passing the pt and eta cuts - cleanJets: the collection of jets away from the leptons - cleanBJets: the jets passing testBJet, and away from the leptons Example configuration: jetAna = cfg.Analyzer( 'JetAnalyzer', jetCol = 'slimmedJets' # cmg jet input collection # pt threshold jetPt = 30, # eta range definition jetEta = 5.0, # seed for the btag scale factor btagSFseed = 0xdeadbeef, # if True, the PF and PU jet ID are not applied, and the jets get flagged relaxJetId = False, )
Definition at line 16 of file JetAnalyzer.py.
def JetAnalyzer.JetAnalyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 42 of file JetAnalyzer.py.
def JetAnalyzer.JetAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 59 of file JetAnalyzer.py.
References CSCSPEvent.counters(), cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, and cscdqm::ChamberCounterKeyType.counters.
def JetAnalyzer.JetAnalyzer.declareHandles | ( | self | ) |
Definition at line 47 of file JetAnalyzer.py.
References analyzer.Analyzer.cfg_ana, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.mchandles.
def JetAnalyzer.JetAnalyzer.jerCorrection | ( | self, | |
jet | |||
) |
Adds JER correction according to first method at https://twiki.cern.ch/twiki/bin/view/CMS/JetResolution Requires some attention when genJet matching fails.
Definition at line 162 of file JetAnalyzer.py.
References funct.abs().
Referenced by JetAnalyzer.JetAnalyzer.process().
def JetAnalyzer.JetAnalyzer.jesCorrection | ( | self, | |
jet, | |||
scale = 0. |
|||
) |
Adds JES correction in number of sigmas (scale)
Definition at line 185 of file JetAnalyzer.py.
Referenced by JetAnalyzer.JetAnalyzer.process().
def JetAnalyzer.JetAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 69 of file JetAnalyzer.py.
References funct.abs(), analyzer.Analyzer.cfg_ana, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, deltar.cleanObjectCollection(), CSCSPEvent.counters(), cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, HLTMuonOfflineAnalyzer_cfi.deltaR2, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, JetAnalyzer.JetAnalyzer.jerCorrection(), JetAnalyzer.JetAnalyzer.jesCorrection(), genParticles_cff.map, deltar.matchObjectCollection(), core.Analyzer.Analyzer.mchandles, EgammaValidation_cff.pdgId, core.Analyzer.Analyzer.readCollections(), JetAnalyzer.JetAnalyzer.testBJet(), and JetAnalyzer.JetAnalyzer.testJet().
def JetAnalyzer.JetAnalyzer.testBJet | ( | self, | |
jet | |||
) |
Definition at line 211 of file JetAnalyzer.py.
References funct.abs(), JetAnalyzer.JetAnalyzer.btagSF, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, JetAnalyzer.JetAnalyzer.is2012, and JetAnalyzer.JetAnalyzer.testJetID().
Referenced by JetAnalyzer.JetAnalyzer.process().
def JetAnalyzer.JetAnalyzer.testJet | ( | self, | |
jet | |||
) |
Definition at line 206 of file JetAnalyzer.py.
References funct.abs(), analyzer.Analyzer.cfg_ana, and JetAnalyzer.JetAnalyzer.testJetID().
Referenced by JetAnalyzer.JetAnalyzer.process().
def JetAnalyzer.JetAnalyzer.testJetID | ( | self, | |
jet | |||
) |
Definition at line 197 of file JetAnalyzer.py.
References analyzer.Analyzer.cfg_ana.
Referenced by JetAnalyzer.JetAnalyzer.testBJet(), and JetAnalyzer.JetAnalyzer.testJet().
JetAnalyzer.JetAnalyzer.btagSF |
Definition at line 44 of file JetAnalyzer.py.
Referenced by JetAnalyzer.JetAnalyzer.testBJet().
JetAnalyzer.JetAnalyzer.is2012 |
Definition at line 45 of file JetAnalyzer.py.
Referenced by JetAnalyzer.JetAnalyzer.testBJet().