#include <AlphaTVarAnalyzer.h>
Public Member Functions | |
AlphaTVarAnalyzer (const edm::ParameterSet &) | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | bookMEs () |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) |
virtual | ~AlphaTVarAnalyzer () |
Private Attributes | |
edm::InputTag | m_alphaTVarCollectionTag |
MonitorElement * | m_HTAlphaT |
MonitorElement * | m_HTAlphaTg0p55 |
MonitorElement * | m_HTAlphaTg0p60 |
edm::InputTag | m_jetCollectionTag |
Definition at line 7 of file AlphaTVarAnalyzer.h.
AlphaTVarAnalyzer::AlphaTVarAnalyzer | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 16 of file AlphaTVarAnalyzer.cc.
: ScoutingAnalyzerBase(conf), m_jetCollectionTag(conf.getUntrackedParameter<edm::InputTag>("jetCollectionName",edm::InputTag("hltCaloJetIDPassed"))), m_alphaTVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName")){ }
AlphaTVarAnalyzer::~AlphaTVarAnalyzer | ( | ) | [virtual] |
Definition at line 24 of file AlphaTVarAnalyzer.cc.
{}
void AlphaTVarAnalyzer::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | c | ||
) | [virtual] |
Reimplemented from ScoutingAnalyzerBase.
Definition at line 28 of file AlphaTVarAnalyzer.cc.
References MonitorElement::Fill(), edm::Event::getByLabel(), m_alphaTVarCollectionTag, m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.
{ edm::Handle<std::vector<double> > alphaTvar_handle; iEvent.getByLabel(m_alphaTVarCollectionTag,alphaTvar_handle); if(alphaTvar_handle->size() > 1){ const double AlphaT = alphaTvar_handle->at(0); const double HT = alphaTvar_handle->at(1); m_HTAlphaT->Fill(HT,AlphaT); if(AlphaT > 0.55) m_HTAlphaTg0p55->Fill(HT); if(AlphaT > 0.60) m_HTAlphaTg0p60->Fill(HT); } }
void AlphaTVarAnalyzer::bookMEs | ( | ) | [virtual] |
Reimplemented from ScoutingAnalyzerBase.
Definition at line 49 of file AlphaTVarAnalyzer.cc.
References ScoutingAnalyzerBase::bookH1withSumw2(), ScoutingAnalyzerBase::bookH2withSumw2(), m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.
{ //the full inclusive histograms m_HTAlphaT = bookH2withSumw2("HTvsAlphaT", "H_{T} vs #alpha_{T} (All Events)", 400,0.,4000., 50,0.,1., "H_{T} [GeV]", "#alpha_{T}"); m_HTAlphaTg0p55 = bookH1withSumw2("HTvsAlphaTg0p55", "H_{T} (#alpha_{T} > 0.55)", 400,0.,4000., "H_{T} [GeV]"); m_HTAlphaTg0p60 = bookH1withSumw2("HTvsAlphaTg0p60", "H_{T} (#alpha_{T} > 0.60)", 400,0.,4000., "H_{T} [GeV]"); }
void AlphaTVarAnalyzer::endRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) | [virtual] |
Definition at line 24 of file AlphaTVarAnalyzer.h.
Referenced by analyze().
MonitorElement* AlphaTVarAnalyzer::m_HTAlphaT [private] |
Definition at line 27 of file AlphaTVarAnalyzer.h.
MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p55 [private] |
Definition at line 28 of file AlphaTVarAnalyzer.h.
MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p60 [private] |
Definition at line 29 of file AlphaTVarAnalyzer.h.
Definition at line 23 of file AlphaTVarAnalyzer.h.