ATLAS Offline Software
PhysicsAnalysis
HeavyIonPhys
HIEventUtils
Root
HICaloRange.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
HIEventUtils/HICaloRange.h
"
6
#include "CaloGeoHelpers/CaloSampling.h"
7
8
HICaloRange::HICaloRange
()
9
{
10
initializeRange
();
11
}
12
13
const
HICaloRange
&
HICaloRange::getRange
()
14
{
15
static
const
HICaloRange
range
=
HICaloRange
();
16
return
range
;
17
}
18
19
bool
HICaloRange::LayerInRange
(
float
eta
,
int
layer
)
20
{
21
const
float
eta_abs=std::abs(
eta
);
22
return
( (eta_abs >
m_range
.at(
layer
).first) && (eta_abs <
m_range
.at(
layer
).second) );
23
}
24
25
void
HICaloRange::initializeRange
()
26
{
27
m_range
= {
28
{
CaloSampling::PreSamplerB
,
range_t
(0,1.6)},
//0
29
{
CaloSampling::EMB1
,
range_t
(0,1.5)},
//1
30
{
CaloSampling::EMB2
,
range_t
(0,1.5)},
//2
31
{
CaloSampling::EMB3
,
range_t
(0,1.4)},
//3
32
33
{
CaloSampling::PreSamplerE
,
range_t
(1.5,1.8)},
//4
34
{
CaloSampling::EME1
,
range_t
(1.3,2.5)},
//5
35
{
CaloSampling::EME2
,
range_t
(1.3,3.2)},
//6
36
{
CaloSampling::EME3
,
range_t
(1.5,3.2)},
//7
37
38
{
CaloSampling::HEC0
,
range_t
(1.5,3.3)},
//8
39
{
CaloSampling::HEC1
,
range_t
(1.5,3.1)},
//9
40
{
CaloSampling::HEC2
,
range_t
(1.6,3.1)},
//10
41
{
CaloSampling::HEC3
,
range_t
(1.7,3.3)},
//11
42
43
{
CaloSampling::TileBar0
,
range_t
(0,1)},
//12
44
{
CaloSampling::TileBar1
,
range_t
(0,0.9)},
//13
45
{
CaloSampling::TileBar2
,
range_t
(0,0.7)},
//14
46
47
{
CaloSampling::TileGap1
,
range_t
(0.9,1)},
//15
48
{
CaloSampling::TileGap2
,
range_t
(0.8,0.9)},
//16
49
{
CaloSampling::TileGap3
,
range_t
(1,1.6)},
//17
50
51
{
CaloSampling::TileExt0
,
range_t
(1.1,1.6)},
//18
52
{
CaloSampling::TileExt1
,
range_t
(1,1.5)},
//19
53
{
CaloSampling::TileExt2
,
range_t
(0.9,1.3)},
//20
54
55
{
CaloSampling::FCAL0
,
range_t
(3,5)},
//21
56
{
CaloSampling::FCAL1
,
range_t
(3.1,5)},
//22
57
{
CaloSampling::FCAL2
,
range_t
(3.2,5)},
//23
58
};
59
}
CaloCell_ID_FCS::TileExt2
@ TileExt2
Definition:
FastCaloSim_CaloCell_ID.h:39
constants.EMB1
int EMB1
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:53
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
CaloCell_ID_FCS::TileExt0
@ TileExt0
Definition:
FastCaloSim_CaloCell_ID.h:37
CaloCell_ID_FCS::TileBar1
@ TileBar1
Definition:
FastCaloSim_CaloCell_ID.h:32
HICaloRange::m_range
std::unordered_map< int, range_t > m_range
Definition:
HICaloRange.h:29
HICaloRange::getRange
static const HICaloRange & getRange()
Definition:
HICaloRange.cxx:13
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition:
FastCaloSim_CaloCell_ID.h:41
CaloCell_ID_FCS::HEC2
@ HEC2
Definition:
FastCaloSim_CaloCell_ID.h:29
CaloCell_ID_FCS::TileGap3
@ TileGap3
Definition:
FastCaloSim_CaloCell_ID.h:36
HICaloRange.h
HICaloRange::initializeRange
void initializeRange()
Definition:
HICaloRange.cxx:25
HICaloRange::HICaloRange
HICaloRange()
Definition:
HICaloRange.cxx:8
CaloCell_ID_FCS::HEC1
@ HEC1
Definition:
FastCaloSim_CaloCell_ID.h:28
constants.EMB2
int EMB2
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:54
CaloCell_ID_FCS::TileBar0
@ TileBar0
Definition:
FastCaloSim_CaloCell_ID.h:31
CaloCell_ID_FCS::TileGap2
@ TileGap2
Definition:
FastCaloSim_CaloCell_ID.h:35
TRT::Hit::layer
@ layer
Definition:
HitInfo.h:79
HICaloRange
Definition:
HICaloRange.h:12
HICaloRange::LayerInRange
bool LayerInRange(float eta, int layer)
Definition:
HICaloRange.cxx:19
plotBeamSpotVxVal.range
range
Definition:
plotBeamSpotVxVal.py:195
constants.EME1
int EME1
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:55
CaloCell_ID_FCS::TileGap1
@ TileGap1
Definition:
FastCaloSim_CaloCell_ID.h:34
CaloCell_ID_FCS::TileExt1
@ TileExt1
Definition:
FastCaloSim_CaloCell_ID.h:38
CaloCell_ID_FCS::EME3
@ EME3
Definition:
FastCaloSim_CaloCell_ID.h:26
CaloCell_ID_FCS::HEC0
@ HEC0
Definition:
FastCaloSim_CaloCell_ID.h:27
CaloCell_ID_FCS::PreSamplerE
@ PreSamplerE
Definition:
FastCaloSim_CaloCell_ID.h:23
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition:
FastCaloSim_CaloCell_ID.h:19
HICaloRange::range_t
std::pair< float, float > range_t
Definition:
HICaloRange.h:28
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition:
FastCaloSim_CaloCell_ID.h:42
CaloCell_ID_FCS::HEC3
@ HEC3
Definition:
FastCaloSim_CaloCell_ID.h:30
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition:
FastCaloSim_CaloCell_ID.h:40
CaloCell_ID_FCS::EMB3
@ EMB3
Definition:
FastCaloSim_CaloCell_ID.h:22
CaloCell_ID_FCS::TileBar2
@ TileBar2
Definition:
FastCaloSim_CaloCell_ID.h:33
constants.EME2
int EME2
Definition:
Calorimeter/CaloClusterCorrection/python/constants.py:56
Generated on Thu Nov 7 2024 21:16:14 for ATLAS Offline Software by
1.8.18