CMS 3D CMS Logo

MEGeom.h
Go to the documentation of this file.
1 #ifndef CalibCalorimetry_EcalLaserAnalyzer_MEGeom_h
2 #define CalibCalorimetry_EcalLaserAnalyzer_MEGeom_h
3 
4 //
5 // Authors : Gautier Hamel de Monchenault and Julie Malcles, Saclay
6 //
7 #include <vector>
8 
9 #include "MEEBGeom.h"
10 #include "MEEEGeom.h"
11 
12 #include "TH2.h"
13 #include "TCanvas.h"
14 #include "TGraph.h"
15 
16 class MEChannel;
17 
18 class MEGeom {
19  // static functions
20 public:
21  // histograms and boundaries
22  static TH2* getHist(int ilmr, int unit);
23 
24  static TGraph* getBoundary(int ilmr, int unit);
25  static void drawHist(int ilmr, int unit, TCanvas* canv = nullptr);
26 
27  // global 2D histogram
28  static TH2* getGlobalHist(const char* name = nullptr);
29  static void setBinGlobalHist(TH2* h, int ix, int iy, int iz, float val);
30  static void drawGlobalBoundaries(int lineColor);
31 
32  virtual ~MEGeom() {}
33 
34 private:
35  static const int _nbuf;
36  static const int _nbinx;
37  static const int _nbiny;
38  static const float _xmin;
39  static const float _xmax;
40  static const float _ymin;
41  static const float _ymax;
42  static const TH2* _h;
43 
44  //GHM ClassDef(MEGeom,0) // MEGeom -- Main geometry class
45 };
46 
47 #endif
static void drawHist(int ilmr, int unit, TCanvas *canv=nullptr)
Definition: MEGeom.cc:199
virtual ~MEGeom()
Definition: MEGeom.h:32
static void drawGlobalBoundaries(int lineColor)
Definition: MEGeom.cc:287
static const float _ymax
Definition: MEGeom.h:41
static const float _xmax
Definition: MEGeom.h:39
static const float _ymin
Definition: MEGeom.h:40
static const int _nbuf
Definition: MEGeom.h:35
static TH2 * getHist(int ilmr, int unit)
Definition: MEGeom.cc:37
static TGraph * getBoundary(int ilmr, int unit)
Definition: MEGeom.cc:141
static void setBinGlobalHist(TH2 *h, int ix, int iy, int iz, float val)
Definition: MEGeom.cc:255
static const int _nbinx
Definition: MEGeom.h:36
Basic3DVector unit() const
static const int _nbiny
Definition: MEGeom.h:37
static TH2 * getGlobalHist(const char *name=nullptr)
Definition: MEGeom.cc:249
Definition: MEGeom.h:18
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static const TH2 * _h
Definition: MEGeom.h:42
static const float _xmin
Definition: MEGeom.h:38