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 
10 private:
12  : totNumberOfBins_(-1), nBinsEt_(-1), nBinsEta_(-1), maxEta_(-1.), maxEt_(-1.), minEta_(-1.), minEt_(-1.){};
13 
15 
17 
19 
20 public:
22 
24  if (instance_ == nullptr) {
25  instance_ = new EcalIndexingTools();
26 
27  std::cout << "[EcalIndexingTools* getInstance ()] new EcalIndexingTools created " << std::endl;
28  }
29  return instance_;
30  }
31 
33 
34  double getEtaMax() { return maxEta_; };
35 
36  int getProgressiveIndex(double, double);
37 
38  void setBinRange(int, double, double, int, double, double);
39 };
40 
41 #endif
void setBinRange(int, double, double, int, double, double)
static EcalIndexingTools * instance_
static EcalIndexingTools * getInstance()
int getProgressiveIndex(double, double)