CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:42
virtual void beginJob()
BeamSpotFromDB(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void endJob()
int iEvent
Definition: GenABIO.cc:243
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EventID id() const
Definition: EventBase.h:56
tuple cout
Definition: gather_cfg.py:121