#include <myTKAnalyses/DigiInvestigator/src/MultiplicityInvestigator.cc>
Public Member Functions | |
MultiplicityInvestigator (const edm::ParameterSet &) | |
~MultiplicityInvestigator () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | beginRun (const edm::Run &, const edm::EventSetup &) |
virtual void | endJob () |
virtual void | endRun (const edm::Run &, const edm::EventSetup &) |
Private Attributes | |
DigiInvestigatorHistogramMaker | m_digiinvesthmevent |
DigiLumiCorrHistogramMaker | m_digilumicorrhmevent |
DigiPileupCorrHistogramMaker | m_digipileupcorrhmevent |
DigiVertexCorrHistogramMaker | m_digivtxcorrhmevent |
edm::InputTag | m_multiplicityMap |
edm::InputTag | m_vertexCollection |
const bool | m_wantInvestHist |
const bool | m_wantLumiCorrHist |
const bool | m_wantPileupCorrHist |
const bool | m_wantVtxCorrHist |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 51 of file MultiplicityInvestigator.cc.
MultiplicityInvestigator::MultiplicityInvestigator | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 91 of file MultiplicityInvestigator.cc.
References DigiVertexCorrHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), DigiInvestigatorHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), m_digiinvesthmevent, m_digilumicorrhmevent, m_digipileupcorrhmevent, m_digivtxcorrhmevent, m_wantInvestHist, m_wantLumiCorrHist, m_wantPileupCorrHist, and m_wantVtxCorrHist.
: // m_digiinvesthmevent(iConfig.getParameter<edm::ParameterSet>("digiInvestConfig")), m_wantInvestHist(iConfig.getParameter<bool>("wantInvestHist")), m_wantVtxCorrHist(iConfig.getParameter<bool>("wantVtxCorrHist")), m_wantLumiCorrHist(iConfig.getParameter<bool>("wantLumiCorrHist")), m_wantPileupCorrHist(iConfig.getParameter<bool>("wantPileupCorrHist")), m_digiinvesthmevent(iConfig), m_digivtxcorrhmevent(iConfig.getParameter<edm::ParameterSet>("digiVtxCorrConfig")), m_digilumicorrhmevent(iConfig.getParameter<edm::ParameterSet>("digiLumiCorrConfig")), m_digipileupcorrhmevent(iConfig.getParameter<edm::ParameterSet>("digiPileupCorrConfig")), m_multiplicityMap(iConfig.getParameter<edm::InputTag>("multiplicityMap")), m_vertexCollection(iConfig.getParameter<edm::InputTag>("vertexCollection")) { //now do what ever initialization is needed if(m_wantInvestHist) m_digiinvesthmevent.book("EventProcs"); if(m_wantVtxCorrHist) m_digivtxcorrhmevent.book("VtxCorr"); if(m_wantLumiCorrHist) m_digilumicorrhmevent.book("LumiCorr"); if(m_wantPileupCorrHist) m_digipileupcorrhmevent.book("PileupCorr"); }
MultiplicityInvestigator::~MultiplicityInvestigator | ( | ) |
Definition at line 115 of file MultiplicityInvestigator.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void MultiplicityInvestigator::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 130 of file MultiplicityInvestigator.cc.
References DigiPileupCorrHistogramMaker::fill(), DigiVertexCorrHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), DigiInvestigatorHistogramMaker::fill(), edm::Event::getByLabel(), m_digiinvesthmevent, m_digilumicorrhmevent, m_digipileupcorrhmevent, m_digivtxcorrhmevent, m_multiplicityMap, m_vertexCollection, m_wantInvestHist, m_wantLumiCorrHist, m_wantPileupCorrHist, m_wantVtxCorrHist, and edm::EventBase::orbitNumber().
{ using namespace edm; Handle<std::map<unsigned int, int> > mults; iEvent.getByLabel(m_multiplicityMap,mults); if(m_wantInvestHist) m_digiinvesthmevent.fill(iEvent.orbitNumber(),*mults); if(m_wantVtxCorrHist) { Handle<reco::VertexCollection> vertices; iEvent.getByLabel(m_vertexCollection,vertices); m_digivtxcorrhmevent.fill(iEvent,vertices->size(),*mults); } if(m_wantLumiCorrHist) m_digilumicorrhmevent.fill(iEvent,*mults); if(m_wantPileupCorrHist) m_digipileupcorrhmevent.fill(iEvent,*mults); }
void MultiplicityInvestigator::beginJob | ( | void | ) | [private, virtual] |
void MultiplicityInvestigator::beginRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 160 of file MultiplicityInvestigator.cc.
References DigiLumiCorrHistogramMaker::beginRun(), DigiVertexCorrHistogramMaker::beginRun(), DigiInvestigatorHistogramMaker::beginRun(), m_digiinvesthmevent, m_digilumicorrhmevent, m_digivtxcorrhmevent, and edm::RunBase::run().
{ m_digiinvesthmevent.beginRun(iRun.run()); m_digivtxcorrhmevent.beginRun(iRun); m_digilumicorrhmevent.beginRun(iRun); }
void MultiplicityInvestigator::endJob | ( | void | ) | [private, virtual] |
void MultiplicityInvestigator::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Definition at line 70 of file MultiplicityInvestigator.cc.
Referenced by analyze(), beginRun(), and MultiplicityInvestigator().
Definition at line 72 of file MultiplicityInvestigator.cc.
Referenced by analyze(), beginRun(), and MultiplicityInvestigator().
Definition at line 73 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().
Definition at line 71 of file MultiplicityInvestigator.cc.
Referenced by analyze(), beginRun(), and MultiplicityInvestigator().
Definition at line 75 of file MultiplicityInvestigator.cc.
Referenced by analyze().
Definition at line 76 of file MultiplicityInvestigator.cc.
Referenced by analyze().
const bool MultiplicityInvestigator::m_wantInvestHist [private] |
Definition at line 66 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().
const bool MultiplicityInvestigator::m_wantLumiCorrHist [private] |
Definition at line 68 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().
const bool MultiplicityInvestigator::m_wantPileupCorrHist [private] |
Definition at line 69 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().
const bool MultiplicityInvestigator::m_wantVtxCorrHist [private] |
Definition at line 67 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().