CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DQM/EcalCommon/interface/MESetTrend.h

Go to the documentation of this file.
00001 #ifndef MESetTrend_H
00002 #define MESetTrend_H
00003 
00004 #include "MESetEcal.h"
00005 
00006 // correct way is to have MESetDet which inherits from MESetEcal and implements fill functions
00007 // this way MESetEcal can focus only on generateNames etc. (object properties)
00008 
00009 namespace ecaldqm
00010 {
00011   class MESetTrend : public MESetEcal
00012   {
00013   public :
00014     MESetTrend(std::string const&, MEData const&, bool _readOnly = false);
00015     ~MESetTrend();
00016 
00017     void book();
00018 
00019     void fill(DetId const&, double, double _wy = 1., double _w = 1.);
00020     void fill(unsigned, double, double _wy = 1., double _w = 1.);
00021     void fill(double, double _wy = 1., double _w = 1.);
00022 
00023     void setBinContent(DetId const&, double, double _err = 0.) {}
00024     void setBinContent(unsigned, double, double _err = 0.) {}
00025 
00026     void setBinEntries(DetId const&, double) {}
00027     void setBinEntries(unsigned, double) {}
00028 
00029     double getBinContent(DetId const&, int _bin = 0) const { return 0.; }
00030     double getBinContent(unsigned, int _bin = 0) const { return 0.; }
00031 
00032     double getBinError(DetId const&, int _bin = 0) const { return 0.; }
00033     double getBinError(unsigned, int _bin = 0) const { return 0.; }
00034 
00035     double getBinEntries(DetId const&, int _bin = 0) const { return 0.; }
00036     double getBinEntries(unsigned, int _bin = 0) const { return 0.; }
00037 
00038     void setTimeZero(time_t _t0) { t0_ = _t0; }
00039     time_t getTimeZero() const { return t0_; }
00040     void setMinutely(bool _minutely) { minutely_ = _minutely; }
00041     bool getMinutely() const { return minutely_; }
00042 
00043   private:
00044     bool shift_(time_t);
00045 
00046     time_t t0_;
00047     bool minutely_;
00048 
00049     time_t tLow_;
00050   };
00051 }
00052 
00053 #endif