CMS 3D CMS Logo

BeamSpotFromDB.cc
Go to the documentation of this file.
1 
12 // C++ standard
13 #include <string>
14 // CMS
17 
19 
22 
28 
30 
32 
35  iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
36  const BeamSpotObjects* mybeamspot = beamhandle.product();
37 
38  std::cout << " for runs: " << iEvent.id().run() << " - " << iEvent.id().run() << std::endl;
39  //std::cout << iEvent.getRun().beginTime().value() << std::endl;
40  //std::cout << iEvent.time().value() << std::endl;
41  std::cout << *mybeamspot << std::endl;
42 }
43 
45 
47 
48 //define this as a plug-in
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
MessageLogger.h
ESHandle.h
BeamSpotFromDB.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
BeamSpotFromDB
Definition: BeamSpotFromDB.h:23
BeamSpotFromDB::BeamSpotFromDB
BeamSpotFromDB(const edm::ParameterSet &)
Definition: BeamSpotFromDB.cc:29
MakerMacros.h
BeamSpotObjects.h
BeamSpotObjectsRcd.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
BeamSpot.h
BeamSpotFromDB::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: BeamSpotFromDB.cc:33
Service.h
edm::ESHandle
Definition: DTSurvey.h:22
edm::ParameterSet
Definition: ParameterSet.h:36
BeamSpotFromDB::endJob
void endJob() override
Definition: BeamSpotFromDB.cc:46
iEvent
int iEvent
Definition: GenABIO.cc:224
BeamSpotObjectsRcd
Definition: BeamSpotObjectsRcd.h:24
BeamSpotObjects
Definition: BeamSpotObjects.h:20
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
BeamSpotFromDB::beginJob
void beginJob() override
Definition: BeamSpotFromDB.cc:44
BeamSpotFromDB::~BeamSpotFromDB
~BeamSpotFromDB() override
Definition: BeamSpotFromDB.cc:31
EventSetup.h
edm::Event
Definition: Event.h:73
IOVSyncValue.h