CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MESetChannel.h
Go to the documentation of this file.
1 // Class removed until concurrency issue is finalized
2 #if 0
3 
4 #ifndef MESetChannel_H
5 #define MESetChannel_H
6 
7 #include <map>
8 
9 #include "MESet.h"
10 
11 namespace ecaldqm
12 {
13 
14  /* class MESetChannel
15  MonitorElement wrapper for single-bin plots (TH1F, TProfile)
16  One-to-one correspondence between id <-> histogram
17  */
18 
19  class MESetChannel : public MESet
20  {
21  public :
23  MESetChannel(MESetChannel const&);
24  ~MESetChannel();
25 
26  MESet& operator=(MESet const& _rhs) override;
27 
28  MESet* clone(std::string const& = "") const override;
29 
30  void book(DQMStore&) override;
31  void book(DQMStore::IBooker&) override;
32  bool retrieve(DQMStore const&, std::string* = 0) const override;
33  void clear() const override;
34 
35  void fill(DetId const&, double = 1., double = 0., double = 0.) override;
36  void fill(EcalElectronicsId const&, double = 1., double = 0., double = 0.) override;
37 
38  void setBinContent(DetId const&, double) override;
39  void setBinContent(EcalElectronicsId const&, double) override;
40 
41  void setBinError(DetId const&, double) override;
42  void setBinError(EcalElectronicsId const&, double) override;
43 
44  void setBinEntries(DetId const&, double) override;
45  void setBinEntries(EcalElectronicsId const&, double) override;
46 
47  double getBinContent(DetId const&, int = 0) const override;
48  double getBinContent(EcalElectronicsId const&, int = 0) const override;
49 
50  double getBinError(DetId const&, int = 0) const override;
51  double getBinError(EcalElectronicsId const&, int = 0) const override;
52 
53  double getBinEntries(DetId const&, int = 0) const override;
54  double getBinEntries(EcalElectronicsId const&, int = 0) const override;
55 
56  void reset(double = 0., double = 0., double = 0.) override;
57 
58  void checkDirectory() const;
59 
60  private :
61  unsigned preparePlot_(uint32_t) const;
62  unsigned findPlot_(uint32_t) const;
63  uint32_t getIndex_(DetId const&) const;
64  uint32_t getIndex_(EcalElectronicsId const&) const;
65 
66  mutable std::map<uint32_t, unsigned> meTable_;
67  };
68 }
69 
70 #endif
71 
72 #endif
string fill
Definition: lumiContext.py:319
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
Definition: DetId.h:18
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
void reset(double vett[256])
Definition: TPedValues.cc:11