Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CalibMuon_DTTTrigT0SegCorrection_H
0002 #define CalibMuon_DTTTrigT0SegCorrection_H
0003 
0004 /** \class DTTTrigT0SegCorrection
0005  *  Concrete implementation of a DTTTrigBaseCorrection.
0006  *  Computes t0-seg correction for tTrig
0007  *
0008  *  \author A. Vilela Pereira
0009  */
0010 
0011 #include "CalibMuon/DTCalibration/interface/DTTTrigBaseCorrection.h"
0012 #include "CondFormats/DataRecord/interface/DTTtrigRcd.h"
0013 #include "FWCore/Framework/interface/ConsumesCollector.h"
0014 
0015 #include <string>
0016 
0017 namespace edm {
0018   class ParameterSet;
0019   class ConsumesCollector;
0020 }  // namespace edm
0021 
0022 class DTTtrig;
0023 
0024 class TH1F;
0025 class TFile;
0026 
0027 namespace dtCalibration {
0028 
0029   class DTTTrigT0SegCorrection : public DTTTrigBaseCorrection {
0030   public:
0031     // Constructor
0032     DTTTrigT0SegCorrection(const edm::ParameterSet&, edm::ConsumesCollector);
0033 
0034     // Destructor
0035     ~DTTTrigT0SegCorrection() override;
0036 
0037     void setES(const edm::EventSetup& setup) override;
0038     DTTTrigData correction(const DTSuperLayerId&) override;
0039 
0040   private:
0041     const TH1F* getHisto(const DTSuperLayerId&);
0042     std::string getHistoName(const DTSuperLayerId& slID);
0043 
0044     TFile* rootFile_;
0045 
0046     const DTTtrig* tTrigMap_;
0047     edm::ESGetToken<DTTtrig, DTTtrigRcd> ttrigToken_;
0048   };
0049 
0050 }  // namespace dtCalibration
0051 #endif