Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Calibration
Tools
interface
EcalRingCalibrationTools.h
Go to the documentation of this file.
1
#ifndef EcalRingCalibrationTools_h
2
#define EcalRingCalibrationTools_h
3
4
/****************************************
5
*
6
* 25/09/2007 P. Meridiani (CERN)
7
* Description:
8
* Tools to ease the hanling of indices
9
* for ECAL ring intercalibration
10
*
11
***************************************/
12
13
#include <vector>
14
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
15
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
16
17
class
DetId
;
18
class
CaloGeometry
;
19
20
class
EcalRingCalibrationTools
21
{
22
public
:
23
EcalRingCalibrationTools
() {};
24
~EcalRingCalibrationTools
() {};
25
27
static
short
getRingIndex
(
DetId
aDetId);
28
29
static
short
getModuleIndex
(
DetId
aDetId);
30
32
static
std::vector<DetId>
getDetIdsInRing
(
short
aRingIndex);
33
static
std::vector<DetId>
getDetIdsInModule
(
short
int
);
34
static
std::vector<DetId>
getDetIdsInECAL
();
35
36
static
const
short
N_RING_TOTAL
= 248;
37
static
const
short
N_RING_BARREL
= 170 ;
38
static
const
short
N_RING_ENDCAP
= 78;
39
40
static
const
short
N_MODULES_BARREL
= 144;
41
42
static
void
setCaloGeometry
(
const
CaloGeometry
*
geometry
) {
caloGeometry_
=
geometry
; };
43
44
private
:
45
46
static
void
initializeFromGeometry
();
//needed only for the endcap
47
48
static
bool
isInitializedFromGeometry_
;
49
static
short
endcapRingIndex_
[
EEDetId::IX_MAX
][
EEDetId::IY_MAX
];
//array needed only for the endcaps
50
static
const
CaloGeometry
*
caloGeometry_
;
51
52
};
53
#endif
EcalRingCalibrationTools::endcapRingIndex_
static short endcapRingIndex_[EEDetId::IX_MAX][EEDetId::IY_MAX]
Definition:
EcalRingCalibrationTools.h:49
EcalRingCalibrationTools::getModuleIndex
static short getModuleIndex(DetId aDetId)
Definition:
EcalRingCalibrationTools.cc:46
EcalRingCalibrationTools::caloGeometry_
static const CaloGeometry * caloGeometry_
Definition:
EcalRingCalibrationTools.h:50
EcalRingCalibrationTools
Definition:
EcalRingCalibrationTools.h:20
EcalRingCalibrationTools::initializeFromGeometry
static void initializeFromGeometry()
Definition:
EcalRingCalibrationTools.cc:203
EcalRingCalibrationTools::N_RING_ENDCAP
static const short N_RING_ENDCAP
Definition:
EcalRingCalibrationTools.h:38
EcalRingCalibrationTools::N_RING_TOTAL
static const short N_RING_TOTAL
Definition:
EcalRingCalibrationTools.h:36
EcalRingCalibrationTools::getRingIndex
static short getRingIndex(DetId aDetId)
Retrieve the phi-ring index corresponding to a DetId.
Definition:
EcalRingCalibrationTools.cc:20
EcalRingCalibrationTools::getDetIdsInRing
static std::vector< DetId > getDetIdsInRing(short aRingIndex)
Retrieve the DetIds in a phi-ring.
Definition:
EcalRingCalibrationTools.cc:71
EcalRingCalibrationTools::N_MODULES_BARREL
static const short N_MODULES_BARREL
Definition:
EcalRingCalibrationTools.h:40
CaloGeometry
Definition:
CaloGeometry.h:22
EcalRingCalibrationTools::N_RING_BARREL
static const short N_RING_BARREL
Definition:
EcalRingCalibrationTools.h:37
EcalRingCalibrationTools::getDetIdsInModule
static std::vector< DetId > getDetIdsInModule(short int)
Definition:
EcalRingCalibrationTools.cc:139
EcalRingCalibrationTools::isInitializedFromGeometry_
static bool isInitializedFromGeometry_
Definition:
EcalRingCalibrationTools.h:48
EEDetId::IX_MAX
static const int IX_MAX
Definition:
EEDetId.h:302
DetId
Definition:
DetId.h:18
EcalRingCalibrationTools::~EcalRingCalibrationTools
~EcalRingCalibrationTools()
Definition:
EcalRingCalibrationTools.h:24
EcalRingCalibrationTools::setCaloGeometry
static void setCaloGeometry(const CaloGeometry *geometry)
Definition:
EcalRingCalibrationTools.h:42
EcalRingCalibrationTools::getDetIdsInECAL
static std::vector< DetId > getDetIdsInECAL()
Definition:
EcalRingCalibrationTools.cc:113
geometry
ESHandle< TrackerGeometry > geometry
Definition:
TkLasBeamFitter.cc:176
EBDetId.h
EEDetId.h
EEDetId::IY_MAX
static const int IY_MAX
Definition:
EEDetId.h:306
EcalRingCalibrationTools::EcalRingCalibrationTools
EcalRingCalibrationTools()
Definition:
EcalRingCalibrationTools.h:23
Generated for CMSSW Reference Manual by
1.8.5