Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-17 23:26:15

0001 #ifndef MESetDet0D_H
0002 #define MESetDet0D_H
0003 
0004 #include "MESetEcal.h"
0005 
0006 namespace ecaldqm {
0007   /* class MESetDet0D
0008    subdetector-based MonitorElement wrapper
0009    represents single float MEs (DQM_KIND_REAL)
0010    fill = setBinContent
0011 */
0012 
0013   class MESetDet0D : public MESetEcal {
0014   public:
0015     MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind);
0016     MESetDet0D(MESetDet0D const &);
0017     ~MESetDet0D() override;
0018 
0019     MESet *clone(std::string const & = "") const override;
0020 
0021     void fill(EcalDQMSetupObjects const, DetId const &, double, double = 0., double = 0.) override;
0022     void fill(EcalDQMSetupObjects const, EcalElectronicsId const &, double, double = 0., double = 0.) override;
0023     void fill(EcalDQMSetupObjects const, int, double, double = 0., double = 0.) override;
0024 
0025     void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int, double _value) override {
0026       fill(edso, _id, _value);
0027     }
0028     void setBinContent(EcalDQMSetupObjects const edso, EcalElectronicsId const &_id, int, double _value) override {
0029       fill(edso, _id, _value);
0030     }
0031     void setBinContent(EcalDQMSetupObjects const edso, int _dcctccid, int, double _value) override {
0032       fill(edso, _dcctccid, _value);
0033     }
0034 
0035     double getBinContent(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
0036     double getBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
0037     double getBinContent(EcalDQMSetupObjects const, int, int = 0) const override;
0038 
0039     void reset(EcalElectronicsMapping const *, double = 0., double = 0., double = 0.) override;
0040   };
0041 }  // namespace ecaldqm
0042 
0043 #endif