#include <RecoJets/DijetRatio/src/DijetRatio.cc>
Public Types | |
typedef std::vector< Jet > | JetCollection |
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
DijetRatio (const edm::ParameterSet &) | |
virtual void | endJob () |
~DijetRatio () | |
Public Attributes | |
std::string | fOutputFileName |
TH1F * | hCalo [hisotNumber] |
TH1F * | hCor [hisotNumber] |
TFile * | hOutputFile |
double | m_eta3 |
double | m_eta4 |
std::string | m_Mid5CaloJetsSrc |
std::string | m_Mid5CorRecJetsSrc |
Static Public Attributes | |
static const int | hisotNumber = 10 |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 132 of file DijetRatio.h.
typedef std::vector<Jet> DijetRatio< Jet >::JetCollection |
Definition at line 138 of file DijetRatio.h.
DijetRatio< Jet >::DijetRatio | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 24 of file DijetRatio.cc.
References edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
{ //get name of output file with histograms fOutputFileName = iConfig.getUntrackedParameter<std::string>("HistoFileName", "DijetRatio.root"); // get names of modules, producing object collections m_Mid5CorRecJetsSrc = iConfig.getParameter<std::string>("CorrectedJets"); m_Mid5CaloJetsSrc = iConfig.getParameter<std::string>("UnCorrectedJets"); // eta limit for numerator and denominator m_eta3 = iConfig.getUntrackedParameter<double>("etaInner", 0.7); m_eta4 = iConfig.getUntrackedParameter<double>("etaOuter", 1.3); }
DijetRatio< Jet >::~DijetRatio | ( | ) |
Definition at line 44 of file DijetRatio.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void DijetRatio< Jet >::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 60 of file DijetRatio.cc.
References edm::Event::getByLabel(), and histoFill().
{ using namespace edm; // get calo jet collection Handle<JetCollection> Mid5CorRecJets; iEvent.getByLabel(m_Mid5CorRecJetsSrc, Mid5CorRecJets); Handle<JetCollection> Mid5CaloJets; iEvent.getByLabel(m_Mid5CaloJetsSrc, Mid5CaloJets); histoFill(hCalo, Mid5CaloJets, m_eta3, m_eta4); histoFill(hCor, Mid5CorRecJets, m_eta3, m_eta4); }
void DijetRatio< Jet >::beginJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 79 of file DijetRatio.cc.
References hInit().
{ hOutputFile = new TFile( fOutputFileName.c_str(), "RECREATE" ) ; // Histo Initializations for Jets hInit(hCalo, "DijetRatio_UnCorrectedJets"); hInit(hCor, "DijetRatio_CorrectedJets"); return; }
void DijetRatio< Jet >::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 93 of file DijetRatio.cc.
{ hOutputFile->cd(); for(int i=0; i<histoSize; ++i) { hCalo[i]->Write() ; hCor[i]->Write() ; } hOutputFile->Close() ; return ; }
std::string DijetRatio< Jet >::fOutputFileName |
Definition at line 145 of file DijetRatio.h.
TH1F* DijetRatio< Jet >::hCalo[hisotNumber] |
Definition at line 158 of file DijetRatio.h.
TH1F* DijetRatio< Jet >::hCor[hisotNumber] |
Definition at line 159 of file DijetRatio.h.
const int DijetRatio< Jet >::hisotNumber = 10 [static] |
Definition at line 156 of file DijetRatio.h.
TFile* DijetRatio< Jet >::hOutputFile |
Definition at line 162 of file DijetRatio.h.
double DijetRatio< Jet >::m_eta3 |
Definition at line 152 of file DijetRatio.h.
double DijetRatio< Jet >::m_eta4 |
Definition at line 153 of file DijetRatio.h.
std::string DijetRatio< Jet >::m_Mid5CaloJetsSrc |
Definition at line 149 of file DijetRatio.h.
std::string DijetRatio< Jet >::m_Mid5CorRecJetsSrc |
Definition at line 148 of file DijetRatio.h.