CMS 3D CMS Logo

BeamSpotFromDB.cc

Go to the documentation of this file.
00001 
00014 // C++ standard
00015 #include <string>
00016 // CMS
00017 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
00018 #include "RecoVertex/BeamSpotProducer/interface/BeamSpotFromDB.h"
00019 
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 
00022 #include "FWCore/Framework/interface/MakerMacros.h"
00023 #include "FWCore/ServiceRegistry/interface/Service.h"
00024 
00025 #include "FWCore/Framework/interface/ESHandle.h"
00026 #include "FWCore/Framework/interface/EventSetup.h"
00027 #include "FWCore/Framework/interface/IOVSyncValue.h"
00028 #include "CondFormats/DataRecord/interface/BeamSpotObjectsRcd.h"
00029 #include "CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h"
00030 
00031 BeamSpotFromDB::BeamSpotFromDB(const edm::ParameterSet& iConfig)
00032 {
00033   
00034 }
00035 
00036 
00037 BeamSpotFromDB::~BeamSpotFromDB()
00038 {
00039         
00040 }
00041 
00042 
00043 void
00044 BeamSpotFromDB::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
00045 {
00046         
00047         edm::ESHandle< BeamSpotObjects > beamhandle;
00048         iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
00049         const BeamSpotObjects *mybeamspot = beamhandle.product();
00050         
00051         std::cout << *mybeamspot << std::endl;
00052 
00053 }
00054 
00055 void
00056 BeamSpotFromDB::beginJob(const edm::EventSetup&)
00057 {
00058 }
00059 
00060 void
00061 BeamSpotFromDB::endJob() {
00062 }
00063 
00064 //define this as a plug-in
00065 DEFINE_ANOTHER_FWK_MODULE(BeamSpotFromDB);

Generated on Tue Jun 9 17:46:02 2009 for CMSSW by  doxygen 1.5.4