Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:03

0001 #ifndef BeamSpotProducer_BeamSpotProducer_h
0002 #define BeamSpotProducer_BeamSpotProducer_h
0003 
0004 /**_________________________________________________________________
0005    class:   BeamSpotProducer.h
0006    package: RecoVertex/BeamSpotProducer
0007 
0008 
0009 
0010  author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)
0011 
0012 
0013 ________________________________________________________________**/
0014 
0015 #include "FWCore/Framework/interface/stream/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "DataFormats/Common/interface/Handle.h"
0018 #include "FWCore/Framework/interface/ESHandle.h"
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 #include "FWCore/Utilities/interface/ESGetToken.h"
0021 
0022 #include "CondFormats/DataRecord/interface/BeamSpotObjectsRcd.h"
0023 #include "CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h"
0024 
0025 class BeamSpotProducer : public edm::stream::EDProducer<> {
0026 public:
0027   typedef std::vector<edm::ParameterSet> Parameters;
0028 
0029   /// constructor
0030   explicit BeamSpotProducer(const edm::ParameterSet& iConf);
0031   /// destructor
0032   ~BeamSpotProducer() override;
0033 
0034   /// produce a beam spot class
0035   void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
0036 
0037 private:
0038   edm::ESGetToken<BeamSpotObjects, BeamSpotObjectsRcd> m_beamToken;
0039 };
0040 
0041 #endif