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) {
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
EcalIndexingTools::maxEt_
double maxEt_
Definition: EcalIndexingTools.h:18
EcalIndexingTools::minEta_
double minEta_
Definition: EcalIndexingTools.h:18
EcalIndexingTools
Definition: EcalIndexingTools.h:9
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EcalIndexingTools::setBinRange
void setBinRange(int, double, double, int, double, double)
Definition: EcalIndexingTools.cc:8
EcalIndexingTools::EcalIndexingTools
EcalIndexingTools()
Definition: EcalIndexingTools.h:11
EcalIndexingTools::instance_
static EcalIndexingTools * instance_
Definition: EcalIndexingTools.h:12
EcalIndexingTools::getEtaMax
double getEtaMax()
Definition: EcalIndexingTools.h:34
EcalIndexingTools::getInstance
static EcalIndexingTools * getInstance()
Definition: EcalIndexingTools.h:23
EcalIndexingTools::minEt_
double minEt_
Definition: EcalIndexingTools.h:18
EcalIndexingTools::nBinsEt_
int nBinsEt_
Definition: EcalIndexingTools.h:16
EcalIndexingTools::nBinsEta_
int nBinsEta_
Definition: EcalIndexingTools.h:16
EcalIndexingTools::getProgressiveIndex
int getProgressiveIndex(double, double)
Definition: EcalIndexingTools.cc:27
EcalIndexingTools::maxEta_
double maxEta_
Definition: EcalIndexingTools.h:18
EcalIndexingTools::totNumberOfBins_
int totNumberOfBins_
Definition: EcalIndexingTools.h:16
EcalIndexingTools::getNumberOfChannels
int getNumberOfChannels()
Definition: EcalIndexingTools.h:32
EcalIndexingTools::~EcalIndexingTools
~EcalIndexingTools()
Definition: EcalIndexingTools.h:21