File indexing completed on 2023-03-17 10:54:20
0001
0002 #if 0
0003
0004 #ifndef MESetChannel_H
0005 #define MESetChannel_H
0006
0007 #include <map>
0008
0009 #include "MESet.h"
0010
0011 namespace ecaldqm
0012 {
0013
0014
0015
0016
0017
0018
0019 class MESetChannel : public MESet
0020 {
0021 public :
0022 MESetChannel(std::string const&, binning::ObjectType, binning::BinningType, MonitorElement::Kind);
0023 MESetChannel(MESetChannel const&);
0024 ~MESetChannel();
0025
0026 MESet& operator=(MESet const& _rhs) override;
0027
0028 MESet* clone(std::string const& = "") const override;
0029
0030 void book(DQMStore::IBooker&) override;
0031 bool retrieve(DQMStore::IGetter&, std::string* = 0) const override;
0032 void clear() const override;
0033
0034 void fill(DetId const&, double = 1., double = 0., double = 0.) override;
0035 void fill(EcalElectronicsId const&, double = 1., double = 0., double = 0.) override;
0036
0037 void setBinContent(DetId const&, double) override;
0038 void setBinContent(EcalElectronicsId const&, double) override;
0039
0040 void setBinError(DetId const&, double) override;
0041 void setBinError(EcalElectronicsId const&, double) override;
0042
0043 void setBinEntries(DetId const&, double) override;
0044 void setBinEntries(EcalElectronicsId const&, double) override;
0045
0046 double getBinContent(DetId const&, int = 0) const override;
0047 double getBinContent(EcalElectronicsId const&, int = 0) const override;
0048
0049 double getBinError(DetId const&, int = 0) const override;
0050 double getBinError(EcalElectronicsId const&, int = 0) const override;
0051
0052 double getBinEntries(DetId const&, int = 0) const override;
0053 double getBinEntries(EcalElectronicsId const&, int = 0) const override;
0054
0055 void reset(double = 0., double = 0., double = 0.) override;
0056
0057 void checkDirectory() const;
0058
0059 private :
0060 unsigned preparePlot_(uint32_t) const;
0061 unsigned findPlot_(uint32_t) const;
0062 uint32_t getIndex_(DetId const&) const;
0063 uint32_t getIndex_(EcalElectronicsId const&) const;
0064
0065 mutable std::map<uint32_t, unsigned> meTable_;
0066 };
0067 }
0068
0069 #endif
0070
0071 #endif