CMS 3D CMS Logo

MEGeom.h
Go to the documentation of this file.
1 #ifndef MEGeom_hh
2 #define MEGeom_hh
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 int _nbuf; //
36  static int _nbinx;
37  static int _nbiny;
38  static float _xmin;
39  static float _xmax;
40  static float _ymin;
41  static float _ymax;
42  static 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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static void drawGlobalBoundaries(int lineColor)
Definition: MEGeom.cc:287
static float _ymax
Definition: MEGeom.h:41
static float _xmax
Definition: MEGeom.h:39
static float _ymin
Definition: MEGeom.h:40
static TH2 * getHist(int ilmr, int unit)
Definition: MEGeom.cc:37
static TH2 * _h
Definition: MEGeom.h:42
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 int _nbiny
Definition: MEGeom.h:37
static int _nbuf
Definition: MEGeom.h:35
static TH2 * getGlobalHist(const char *name=nullptr)
Definition: MEGeom.cc:249
static float _xmin
Definition: MEGeom.h:38
Definition: MEGeom.h:18
static int _nbinx
Definition: MEGeom.h:36
Basic3DVector unit() const