Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:33

0001 #ifndef TkAlCaRecoProducers_AlcaBeamSpotFromDB_h
0002 #define TkAlCaRecoProducers_AlcaBeamSpotFromDB_h
0003 
0004 /**_________________________________________________________________
0005    class:   AlcaBeamSpotFromDB.h
0006    package: RecoVertex/TkAlCaRecoProducers
0007 
0008 
0009 
0010  author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)
0011 
0012 
0013 ________________________________________________________________**/
0014 
0015 // C++ standard
0016 #include <string>
0017 // CMS
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "FWCore/Framework/interface/Frameworkfwd.h"
0020 #include "FWCore/Framework/interface/one/EDProducer.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0022 #include "CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h"
0023 #include "CondFormats/DataRecord/interface/BeamSpotObjectsRcd.h"
0024 
0025 class AlcaBeamSpotFromDB : public edm::one::EDProducer<edm::EndLuminosityBlockProducer> {
0026 public:
0027   explicit AlcaBeamSpotFromDB(const edm::ParameterSet &);
0028   ~AlcaBeamSpotFromDB() override;
0029 
0030 private:
0031   const edm::ESGetToken<BeamSpotObjects, BeamSpotObjectsRcd> beamSpotToken_;
0032   void beginJob() final;
0033   void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) final;
0034   void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) final;
0035   void endJob() final;
0036 };
0037 
0038 #endif