#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 | _digiinvesthmevent |
DigiVertexCorrHistogramMaker | _digivtxcorrhmevent |
edm::InputTag | _multiplicityMap |
edm::InputTag | _vertexCollection |
const bool | _wantVtxCorrHist |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 49 of file MultiplicityInvestigator.cc.
MultiplicityInvestigator::MultiplicityInvestigator | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 84 of file MultiplicityInvestigator.cc.
References _digiinvesthmevent, _digivtxcorrhmevent, _wantVtxCorrHist, DigiVertexCorrHistogramMaker::book(), and DigiInvestigatorHistogramMaker::book().
: // _digiinvesthmevent(iConfig.getParameter<edm::ParameterSet>("digiInvestConfig")), _wantVtxCorrHist(iConfig.getParameter<bool>("wantVtxCorrHist")), _digiinvesthmevent(iConfig), _digivtxcorrhmevent(iConfig.getParameter<edm::ParameterSet>("digiVtxCorrConfig")), _multiplicityMap(iConfig.getParameter<edm::InputTag>("multiplicityMap")), _vertexCollection(iConfig.getParameter<edm::InputTag>("vertexCollection")) { //now do what ever initialization is needed _digiinvesthmevent.book("EventProcs"); if(_wantVtxCorrHist) _digivtxcorrhmevent.book("VtxCorr"); }
MultiplicityInvestigator::~MultiplicityInvestigator | ( | ) |
Definition at line 101 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 116 of file MultiplicityInvestigator.cc.
References _digiinvesthmevent, _digivtxcorrhmevent, _multiplicityMap, _vertexCollection, _wantVtxCorrHist, DigiVertexCorrHistogramMaker::fill(), DigiInvestigatorHistogramMaker::fill(), edm::Event::getByLabel(), and edm::EventBase::orbitNumber().
{ using namespace edm; Handle<std::map<unsigned int, int> > mults; iEvent.getByLabel(_multiplicityMap,mults); _digiinvesthmevent.fill(iEvent.orbitNumber(),*mults); if(_wantVtxCorrHist) { Handle<reco::VertexCollection> vertices; iEvent.getByLabel(_vertexCollection,vertices); _digivtxcorrhmevent.fill(vertices->size(),*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 143 of file MultiplicityInvestigator.cc.
References _digiinvesthmevent, DigiInvestigatorHistogramMaker::beginRun(), and edm::RunBase::run().
{ _digiinvesthmevent.beginRun(iRun.run()); }
void MultiplicityInvestigator::endJob | ( | void | ) | [private, virtual] |
void MultiplicityInvestigator::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Definition at line 65 of file MultiplicityInvestigator.cc.
Referenced by analyze(), beginRun(), and MultiplicityInvestigator().
Definition at line 66 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().
Definition at line 68 of file MultiplicityInvestigator.cc.
Referenced by analyze().
Definition at line 69 of file MultiplicityInvestigator.cc.
Referenced by analyze().
const bool MultiplicityInvestigator::_wantVtxCorrHist [private] |
Definition at line 64 of file MultiplicityInvestigator.cc.
Referenced by analyze(), and MultiplicityInvestigator().