Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:26

0001 #ifndef AlcaBeamSpotHarvester_H
0002 #define AlcaBeamSpotHarvester_H
0003 
0004 /** \class AlcaBeamSpotHarvester
0005  *  No description available.
0006  *
0007  *  \author L. Uplegger F. Yumiceva - Fermilab
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 // #include "FWCore/ParameterSet/interface/ParameterSet.h"
0015 
0016 class AlcaBeamSpotHarvester : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
0017 public:
0018   /// Constructor
0019   AlcaBeamSpotHarvester(const edm::ParameterSet &);
0020 
0021   /// Destructor
0022   ~AlcaBeamSpotHarvester() override = default;
0023 
0024   // Operations
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   // Parameters
0034   std::string beamSpotOutputBase_;
0035   std::string outputrecordName_;
0036   double sigmaZValue_;
0037   double sigmaZCut_;
0038   bool dumpTxt_;
0039   std::string outTxtFileName_;
0040   // Member Variables
0041   AlcaBeamSpotManager theAlcaBeamSpotManager_;
0042 
0043   //   edm::ParameterSet metadataForOfflineDropBox_;
0044 };
0045 #endif