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
MEGeom::_nbuf
static int _nbuf
Definition: MEGeom.h:35
MEGeom::_ymax
static float _ymax
Definition: MEGeom.h:41
MEGeom::_xmax
static float _xmax
Definition: MEGeom.h:39
MEEBGeom.h
MEGeom::_nbinx
static int _nbinx
Definition: MEGeom.h:36
MEGeom::_ymin
static float _ymin
Definition: MEGeom.h:40
MEGeom::_nbiny
static int _nbiny
Definition: MEGeom.h:37
MEGeom::_xmin
static float _xmin
Definition: MEGeom.h:38
h
MEGeom::drawGlobalBoundaries
static void drawGlobalBoundaries(int lineColor)
Definition: MEGeom.cc:287
MEGeom
Definition: MEGeom.h:18
MEGeom::getGlobalHist
static TH2 * getGlobalHist(const char *name=nullptr)
Definition: MEGeom.cc:249
MEEEGeom.h
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
heppy_batch.val
val
Definition: heppy_batch.py:351
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MEGeom::_h
static TH2 * _h
Definition: MEGeom.h:42
RecoTauValidation_cfi.lineColor
lineColor
Definition: RecoTauValidation_cfi.py:303
MEGeom::drawHist
static void drawHist(int ilmr, int unit, TCanvas *canv=nullptr)
Definition: MEGeom.cc:199
MEGeom::setBinGlobalHist
static void setBinGlobalHist(TH2 *h, int ix, int iy, int iz, float val)
Definition: MEGeom.cc:255
MEGeom::~MEGeom
virtual ~MEGeom()
Definition: MEGeom.h:32
MEGeom::getHist
static TH2 * getHist(int ilmr, int unit)
Definition: MEGeom.cc:37
MEChannel
Definition: MEChannel.h:12
MEGeom::getBoundary
static TGraph * getBoundary(int ilmr, int unit)
Definition: MEGeom.cc:141