#include <BeamSpotFromDB.h>
Public Member Functions | |
BeamSpotFromDB (const edm::ParameterSet &) | |
~BeamSpotFromDB () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
_________________________________________________________________ class: BeamSpotFromDB.h package: RecoVertex/BeamSpotProducer
author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)
version
________________________________________________________________
Definition at line 26 of file BeamSpotFromDB.h.
BeamSpotFromDB::BeamSpotFromDB | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
_________________________________________________________________ class: BeamSpotFromDB.cc package: RecoVertex/BeamSpotProducer
author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)
version
________________________________________________________________
Definition at line 32 of file BeamSpotFromDB.cc.
{ }
BeamSpotFromDB::~BeamSpotFromDB | ( | ) |
Definition at line 38 of file BeamSpotFromDB.cc.
{ }
void BeamSpotFromDB::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 45 of file BeamSpotFromDB.cc.
References gather_cfg::cout, edm::EventSetup::get(), edm::EventBase::id(), edm::ESHandle< T >::product(), and edm::EventID::run().
{ edm::ESHandle< BeamSpotObjects > beamhandle; iSetup.get<BeamSpotObjectsRcd>().get(beamhandle); const BeamSpotObjects *mybeamspot = beamhandle.product(); std::cout << " for runs: " << iEvent.id().run() << " - " << iEvent.id().run() << std::endl; //std::cout << iEvent.getRun().beginTime().value() << std::endl; //std::cout << iEvent.time().value() << std::endl; std::cout << *mybeamspot << std::endl; }
void BeamSpotFromDB::beginJob | ( | void | ) | [private, virtual] |
void BeamSpotFromDB::endJob | ( | void | ) | [private, virtual] |