00001 #ifndef TkAlCaRecoProducer_AlcaBeamSpotProducer_h 00002 #define TkAlCaRecoProducer_AlcaBeamSpotProducer_h 00003 00017 // C++ standard 00018 #include <string> 00019 // CMS 00020 #include "FWCore/Framework/interface/Frameworkfwd.h" 00021 #include "FWCore/Framework/interface/one/EDProducer.h" 00022 #include "FWCore/Framework/interface/Event.h" 00023 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00024 #include "RecoVertex/BeamSpotProducer/interface/BeamFitter.h" 00025 00026 00027 class AlcaBeamSpotProducer : public edm::one::EDProducer<edm::EndLuminosityBlockProducer, 00028 edm::one::WatchLuminosityBlocks> { 00029 public: 00030 explicit AlcaBeamSpotProducer(const edm::ParameterSet&); 00031 ~AlcaBeamSpotProducer(); 00032 00033 private: 00034 virtual void beginLuminosityBlock (edm::LuminosityBlock const& lumiSeg, const edm::EventSetup& iSetup) override final; 00035 virtual void endLuminosityBlock (edm::LuminosityBlock const& lumiSeg, const edm::EventSetup& iSetup) override final; 00036 virtual void endLuminosityBlockProduce(edm::LuminosityBlock& lumiSeg, const edm::EventSetup& iSetup) override final; 00037 virtual void produce (edm::Event& iEvent, const edm::EventSetup& iSetup) override final; 00038 00039 int ftotalevents; 00040 int fitNLumi_; 00041 int resetFitNLumi_; 00042 int countEvt_; //counter 00043 int countLumi_; //counter 00044 int ftmprun0, ftmprun; 00045 int beginLumiOfBSFit_; 00046 int endLumiOfBSFit_; 00047 std::time_t refBStime[2]; 00048 00049 bool write2DB_; 00050 bool runbeamwidthfit_; 00051 bool runallfitters_; 00052 double inputBeamWidth_; 00053 00054 BeamFitter * theBeamFitter; 00055 }; 00056 00057 #endif