File indexing completed on 2024-04-06 11:59:26
0001 #ifndef AlcaBeamSpotHarvester_H
0002 #define AlcaBeamSpotHarvester_H
0003
0004
0005
0006
0007
0008
0009 #include "Calibration/TkAlCaRecoProducers/interface/AlcaBeamSpotManager.h"
0010 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0011 #include "FWCore/Framework/interface/Frameworkfwd.h"
0012 #include "RecoVertex/BeamSpotProducer/interface/BeamSpotWrite2Txt.h"
0013
0014
0015
0016 class AlcaBeamSpotHarvester : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
0017 public:
0018
0019 AlcaBeamSpotHarvester(const edm::ParameterSet &);
0020
0021
0022 ~AlcaBeamSpotHarvester() override = default;
0023
0024
0025 void analyze(const edm::Event &, const edm::EventSetup &) override;
0026 void beginRun(const edm::Run &, const edm::EventSetup &) override;
0027 void endRun(const edm::Run &, const edm::EventSetup &) override;
0028 void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override;
0029 void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override;
0030
0031 protected:
0032 private:
0033
0034 std::string beamSpotOutputBase_;
0035 std::string outputrecordName_;
0036 double sigmaZValue_;
0037 double sigmaZCut_;
0038 bool dumpTxt_;
0039 std::string outTxtFileName_;
0040
0041 AlcaBeamSpotManager theAlcaBeamSpotManager_;
0042
0043
0044 };
0045 #endif