Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:27

0001 #ifndef DTTTrigCorrectionFirst_H
0002 #define DTTTrigCorrectionFirst_H
0003 
0004 /** \class DTTTrigCorrection
0005  *  Class which read a ttrig DB and correct it with
0006  *  the near SL (or the global average)
0007  *
0008  *  \author S. Maselli - INFN Torino
0009  */
0010 
0011 #include "FWCore/Framework/interface/Frameworkfwd.h"
0012 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0013 #include "FWCore/Framework/interface/ESHandle.h"
0014 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0015 #include "CondFormats/DataRecord/interface/DTTtrigRcd.h"
0016 
0017 #include <string>
0018 
0019 class DTTtrig;
0020 class DTGeometry;
0021 
0022 class DTTTrigCorrectionFirst : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
0023 public:
0024   /// Constructor
0025   DTTTrigCorrectionFirst(const edm::ParameterSet& pset);
0026 
0027   /// Destructor
0028   ~DTTTrigCorrectionFirst() override;
0029 
0030   // Operations
0031 
0032   void beginJob() override {}
0033   void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
0034   void analyze(const edm::Event& event, const edm::EventSetup& setup) override {}
0035 
0036   void endRun(const edm::Run& run, const edm::EventSetup& setup) override{};
0037   void endJob() override;
0038 
0039 protected:
0040 private:
0041   edm::ESHandle<DTGeometry> muonGeom;
0042   const edm::ESGetToken<DTGeometry, MuonGeometryRecord> dtGeomToken_;
0043 
0044   const DTTtrig* tTrigMap;
0045   const edm::ESGetToken<DTTtrig, DTTtrigRcd> ttrigToken_;
0046 
0047   bool debug;
0048   double ttrigMin, ttrigMax, rmsLimit;
0049 };
0050 #endif