#include <Validation/RecoVertex/plugins/BeamSpotAnalyzer.cc>
Public Member Functions | |
AnotherBeamSpotAnalyzer (const edm::ParameterSet &) | |
~AnotherBeamSpotAnalyzer () | |
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 | |
edm::InputTag | _bscollection |
BeamSpotHistogramMaker | _bshm |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 49 of file BeamSpotAnalyzer.cc.
AnotherBeamSpotAnalyzer::AnotherBeamSpotAnalyzer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 81 of file BeamSpotAnalyzer.cc.
References _bshm, and BeamSpotHistogramMaker::book().
: _bshm(iConfig.getParameter<edm::ParameterSet>("bsHistogramMakerPSet")), _bscollection(iConfig.getParameter<edm::InputTag>("bsCollection")) { //now do what ever initialization is needed // _bshm.book(); }
AnotherBeamSpotAnalyzer::~AnotherBeamSpotAnalyzer | ( | ) |
Definition at line 94 of file BeamSpotAnalyzer.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void AnotherBeamSpotAnalyzer::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 109 of file BeamSpotAnalyzer.cc.
References _bscollection, _bshm, BeamSpotHistogramMaker::fill(), edm::Event::getByLabel(), and edm::EventBase::orbitNumber().
{ using namespace edm; // get BS Handle<reco::BeamSpot> bs; iEvent.getByLabel(_bscollection,bs); _bshm.fill(iEvent.orbitNumber(),*bs); }
void AnotherBeamSpotAnalyzer::beginJob | ( | void | ) | [private, virtual] |
void AnotherBeamSpotAnalyzer::beginRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 128 of file BeamSpotAnalyzer.cc.
References _bshm, BeamSpotHistogramMaker::beginRun(), and edm::RunBase::run().
void AnotherBeamSpotAnalyzer::endJob | ( | void | ) | [private, virtual] |
void AnotherBeamSpotAnalyzer::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Definition at line 65 of file BeamSpotAnalyzer.cc.
Referenced by analyze().
Definition at line 64 of file BeamSpotAnalyzer.cc.
Referenced by analyze(), AnotherBeamSpotAnalyzer(), and beginRun().