CMS 3D CMS Logo

BeamSpotFromDB.cc
Go to the documentation of this file.
1 
13 // C++ standard
14 #include <string>
15 // CMS
18 
20 
23 
29 
30 
32 {
33 
34 }
35 
36 
38 {
39 
40 }
41 
42 
43 void
45 {
46 
48  iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
49  const BeamSpotObjects *mybeamspot = beamhandle.product();
50 
51  std::cout << " for runs: " << iEvent.id().run() << " - " << iEvent.id().run() << std::endl;
52  //std::cout << iEvent.getRun().beginTime().value() << std::endl;
53  //std::cout << iEvent.time().value() << std::endl;
54  std::cout << *mybeamspot << std::endl;
55 
56 }
57 
58 void
60 {
61 }
62 
63 void
65 }
66 
67 //define this as a plug-in
RunNumber_t run() const
Definition: EventID.h:39
void analyze(const edm::Event &, const edm::EventSetup &) override
BeamSpotFromDB(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
~BeamSpotFromDB() override
int iEvent
Definition: GenABIO.cc:230
void beginJob() override
const T & get() const
Definition: EventSetup.h:59
edm::EventID id() const
Definition: EventBase.h:60
void endJob() override
T const * product() const
Definition: ESHandle.h:86