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 
14 // C++ standard
15 #include <string>
16 // CMS
19 
21 
24 
30 
31 
33 {
34 
35 }
36 
37 
39 {
40 
41 }
42 
43 
44 void
46 {
47 
49  iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
50  const BeamSpotObjects *mybeamspot = beamhandle.product();
51 
52  std::cout << " for runs: " << iEvent.id().run() << " - " << iEvent.id().run() << std::endl;
53  //std::cout << iEvent.getRun().beginTime().value() << std::endl;
54  //std::cout << iEvent.time().value() << std::endl;
55  std::cout << *mybeamspot << std::endl;
56 
57 }
58 
59 void
61 {
62 }
63 
64 void
66 }
67 
68 //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