test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
20  // static functions
21 public:
22 
23  // histograms and boundaries
24  static TH2* getHist( int ilmr, int unit );
25 
26  static TGraph* getBoundary( int ilmr, int unit );
27  static void drawHist( int ilmr, int unit, TCanvas* canv=0 );
28 
29  // global 2D histogram
30  static TH2* getGlobalHist( const char* name=0 );
31  static void setBinGlobalHist( TH2* h,
32  int ix, int iy, int iz, float val );
33  static void drawGlobalBoundaries( int lineColor );
34 
35  virtual ~MEGeom() {}
36 
37 private:
38 
39  static int _nbuf; //
40  static int _nbinx;
41  static int _nbiny;
42  static float _xmin;
43  static float _xmax;
44  static float _ymin;
45  static float _ymax;
46  static TH2* _h;
47 
48  //GHM ClassDef(MEGeom,0) // MEGeom -- Main geometry class
49 };
50 
51 #endif
52 
virtual ~MEGeom()
Definition: MEGeom.h:35
static void drawGlobalBoundaries(int lineColor)
Definition: MEGeom.cc:254
static float _ymax
Definition: MEGeom.h:45
static float _xmax
Definition: MEGeom.h:43
static TH2 * getGlobalHist(const char *name=0)
Definition: MEGeom.cc:207
static float _ymin
Definition: MEGeom.h:44
static void drawHist(int ilmr, int unit, TCanvas *canv=0)
Definition: MEGeom.cc:167
static TH2 * getHist(int ilmr, int unit)
Definition: MEGeom.cc:34
static TH2 * _h
Definition: MEGeom.h:46
string unit
Definition: csvLumiCalc.py:46
static TGraph * getBoundary(int ilmr, int unit)
Definition: MEGeom.cc:115
static void setBinGlobalHist(TH2 *h, int ix, int iy, int iz, float val)
Definition: MEGeom.cc:215
static int _nbiny
Definition: MEGeom.h:41
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static int _nbuf
Definition: MEGeom.h:39
static float _xmin
Definition: MEGeom.h:42
Definition: MEGeom.h:18
static int _nbinx
Definition: MEGeom.h:40