src
Calibration
Tools
interface
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
class
EcalIndexingTools
{
10
private
:
11
EcalIndexingTools
()
12
:
totNumberOfBins_
(-1),
nBinsEt_
(-1),
nBinsEta_
(-1),
maxEta_
(-1.),
maxEt_
(-1.),
minEta_
(-1.),
minEt_
(-1.) {}
13
14
static
EcalIndexingTools
*
instance_
;
15
16
int
totNumberOfBins_
,
nBinsEt_
,
nBinsEta_
;
17
18
double
maxEta_
,
maxEt_
,
minEta_
,
minEt_
;
19
20
public
:
21
~EcalIndexingTools
() {}
22
23
static
EcalIndexingTools
*
getInstance
() {
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
32
int
getNumberOfChannels
() {
return
totNumberOfBins_
; };
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::totNumberOfBins_
int totNumberOfBins_
Definition:
EcalIndexingTools.h:16
EcalIndexingTools::~EcalIndexingTools
~EcalIndexingTools()
Definition:
EcalIndexingTools.h:21
EcalIndexingTools::maxEt_
double maxEt_
Definition:
EcalIndexingTools.h:18
EcalIndexingTools::setBinRange
void setBinRange(int, double, double, int, double, double)
Definition:
EcalIndexingTools.cc:8
EcalIndexingTools::EcalIndexingTools
EcalIndexingTools()
Definition:
EcalIndexingTools.h:11
EcalIndexingTools::minEta_
double minEta_
Definition:
EcalIndexingTools.h:18
EcalIndexingTools::getEtaMax
double getEtaMax()
Definition:
EcalIndexingTools.h:34
EcalIndexingTools::instance_
static EcalIndexingTools * instance_
Definition:
EcalIndexingTools.h:14
EcalIndexingTools::getInstance
static EcalIndexingTools * getInstance()
Definition:
EcalIndexingTools.h:23
EcalIndexingTools::minEt_
double minEt_
Definition:
EcalIndexingTools.h:18
EcalIndexingTools
Definition:
EcalIndexingTools.h:9
EcalIndexingTools::getProgressiveIndex
int getProgressiveIndex(double, double)
Definition:
EcalIndexingTools.cc:27
EcalIndexingTools::nBinsEt_
int nBinsEt_
Definition:
EcalIndexingTools.h:16
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
EcalIndexingTools::maxEta_
double maxEta_
Definition:
EcalIndexingTools.h:18
EcalIndexingTools::nBinsEta_
int nBinsEta_
Definition:
EcalIndexingTools.h:16
EcalIndexingTools::getNumberOfChannels
int getNumberOfChannels()
Definition:
EcalIndexingTools.h:32
Generated for CMSSW Reference Manual by
1.8.14