CMS 3D CMS Logo

EcalIndexingTools.h
Go to the documentation of this file.
1 #ifndef EcalIndexingTools_h
2 #define EcalIndexingTools_h
3 
4 #include <iostream>
5 /* ******************************************
6  * Alessandro Palma 19/03/2008
7  ********************************************/
8 
9 
11 {
12 
13  private:
14 
15  EcalIndexingTools():totNumberOfBins_(-1), nBinsEt_(-1), nBinsEta_(-1), maxEta_(-1.), maxEt_(-1.), minEta_(-1.), minEt_(-1.){};
16 
18 
20 
22 
23  public:
24 
26 
28  if (instance_ == 0 ){
29  instance_ = new EcalIndexingTools();
30 
31  std::cout<< "[EcalIndexingTools* getInstance ()] new EcalIndexingTools created "<< std::endl;
32 
33  }
34  return instance_;
35  }
36 
37 
39 
40  double getEtaMax(){return maxEta_;};
41 
42  int getProgressiveIndex( double , double );
43 
44  void setBinRange( int, double, double, int, double, double);
45 
46 
47 
48 };
49 
50 
51 #endif
void setBinRange(int, double, double, int, double, double)
static EcalIndexingTools * instance_
static EcalIndexingTools * getInstance()
int getProgressiveIndex(double, double)