CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/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 namespace dtCalibration {
00023 
00024 class DTTTrigFillWithAverage: public DTTTrigBaseCorrection {
00025 public:
00026   // Constructor
00027   DTTTrigFillWithAverage(const edm::ParameterSet&);
00028 
00029   // Destructor
00030   virtual ~DTTTrigFillWithAverage();
00031 
00032   virtual void setES(const edm::EventSetup& setup);
00033   virtual DTTTrigData correction(const DTSuperLayerId&);
00034 
00035 private:
00036   void getAverage();
00037 
00038   const DTTtrig *tTrigMap_;
00039   edm::ESHandle<DTGeometry> muonGeom_;
00040 
00041   std::string dbLabel;
00042 
00043   struct {
00044     float aveMean;
00045     float rmsMean;
00046     float aveSigma;
00047     float rmsSigma;
00048     float aveKFactor;
00049   } initialTTrig_;
00050 
00051   bool foundAverage_; 
00052 };
00053 
00054 } // namespace
00055 #endif