CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/CalibMuon/DTCalibration/plugins/DTTTrigFillWithAverage.h

Go to the documentation of this file.
00001 #ifndef CalibMuon_DTTTrigFillWithAverage_H
00002 #define CalibMuon_DTTTrigFillWithAverage_H
00003 
00012 #include "CalibMuon/DTCalibration/interface/DTTTrigBaseCorrection.h"
00013 #include "FWCore/Framework/interface/ESHandle.h"
00014 
00015 namespace edm {
00016   class ParameterSet;
00017 }
00018 
00019 class DTTtrig;
00020 class DTGeometry;
00021 
00022 class DTTTrigFillWithAverage: public DTTTrigBaseCorrection {
00023 public:
00024   // Constructor
00025   DTTTrigFillWithAverage(const edm::ParameterSet&);
00026 
00027   // Destructor
00028   virtual ~DTTTrigFillWithAverage();
00029 
00030   virtual void setES(const edm::EventSetup& setup);
00031   virtual DTTTrigData correction(const DTSuperLayerId&);
00032 
00033 private:
00034   void getAverage();
00035 
00036   const DTTtrig *tTrigMap_;
00037   edm::ESHandle<DTGeometry> muonGeom_;
00038 
00039   std::string dbLabel;
00040 
00041   struct {
00042     float aveMean;
00043     float rmsMean;
00044     float aveSigma;
00045     float rmsSigma;
00046     float aveKFactor;
00047   } initialTTrig_;
00048 
00049   bool foundAverage_; 
00050 };
00051 #endif