ATLAS Offline Software
eflowCaloRegions.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: eflowCaloRegions.cxx
8 PACKAGE: offline/Reconstruction/eflowRec
9 
10 AUTHOR: R Duxfield
11 CREATED: 03 May, 2006
12 
13 ********************************************************************/
14 
16 
17 
18 
19 
21 
22 
24 {
25  Unknown, EMB1, EMB2, EMB3,
26  Unknown, EME1, EME2, EME3,
27  HEC1, HEC2, HEC3, HEC4,
28  Tile1, Tile2, Tile3,
29  Tile2, Tile3, Unknown,
30  Tile1, Tile2, Tile3,
31  FCAL0, FCAL1, FCAL2
32 };
33 
34 
35 const std::string eflowCalo::m_layerNames[nRegions+1] =
36 {
37  "EMB1", "EMB2", "EMB3",
38  "EME1", "EME2", "EME3",
39  "HEC1", "HEC2", "HEC3", "HEC4",
40  "Tile1", "Tile2", "Tile3",
41  "FCAL0", "FCAL1", "FCAL2",
42  "N/A"
43 };
44 
46 {
47  if (CaloCell_ID::Unknown == sampl)
48  return Unknown;
49  else
50  return m_samplCaloMap[sampl];
51 }
52 
53 const std::string& eflowCalo::name(eflowCaloENUM layer)
54 {
55  if (Unknown == layer)
56  return m_layerNames[nRegions];
57  else
58  return m_layerNames[layer];
59 }
60 
61 
63 
64 
66 {
67  EMB1, EMB2, EMB3,
68  EME1, EME2, EME3,
69  HEC, HEC, HEC, HEC,
70  Tile, Tile, Tile,
71  FCAL, FCAL, FCAL
72 };
73 
74 const std::string eflowFirstIntRegions::m_layerNames[nRegions+1] =
75 {
76  "EMB1", "EMB2", "EMB3",
77  "EME1", "EME2", "EME3",
78  "HEC",
79  "Tile",
80  "FCAL",
81  "N/A"
82 };
83 
85 {
87  return Unknown;
88  else
89  return m_caloFirstIntMap[layer];
90 }
91 
93 {
94  if (Unknown == layer)
95  return m_layerNames[nRegions];
96  else
97  return m_layerNames[layer];
98 }
eflowCaloRegions.h
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
LArSamples::HEC
@ HEC
Definition: CaloId.h:26
eflowCalo::name
static const std::string & name(LAYER layer)
Definition: eflowCaloRegions.cxx:53
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
eflowCalo::Unknown
@ Unknown
Definition: eflowCaloRegions.h:50
eflowCalo::m_layerNames
static const std::string m_layerNames[]
Definition: eflowCaloRegions.h:52
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition: FastCaloSim_CaloCell_ID.h:41
eflowFirstIntRegions::m_caloFirstIntMap
static const J1STLAYER m_caloFirstIntMap[]
Definition: eflowCaloRegions.h:75
CaloCell_ID_FCS::HEC2
@ HEC2
Definition: FastCaloSim_CaloCell_ID.h:29
eflowFirstIntRegions::translateCalo
static J1STLAYER translateCalo(eflowCaloENUM layer)
Definition: eflowCaloRegions.cxx:84
CaloCell_ID_FCS::HEC1
@ HEC1
Definition: FastCaloSim_CaloCell_ID.h:28
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
eflowFirstIntRegions::m_layerNames
static const std::string m_layerNames[]
Definition: eflowCaloRegions.h:74
eflowCalo::FCAL2
@ FCAL2
Definition: eflowCaloRegions.h:49
CaloCell_ID_FCS::EME3
@ EME3
Definition: FastCaloSim_CaloCell_ID.h:26
eflowCalo::nRegions
static const int nRegions
Definition: eflowCaloRegions.h:45
LArSamples::FCAL
@ FCAL
Definition: CaloId.h:26
eflowFirstIntRegions::name
static const std::string & name(J1STLAYER layer)
Definition: eflowCaloRegions.cxx:92
eflowCalo::LAYER
LAYER
Definition: eflowCaloRegions.h:36
eflowCalo::m_samplCaloMap
static const LAYER m_samplCaloMap[]
Definition: eflowCaloRegions.h:53
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition: FastCaloSim_CaloCell_ID.h:42
eflowFirstIntRegions::Unknown
@ Unknown
Definition: eflowCaloRegions.h:64
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
eflowCalo::translateSampl
static LAYER translateSampl(CaloCell_ID::CaloSample sampl)
Definition: eflowCaloRegions.cxx:45
eflowFirstIntRegions::nRegions
static const int nRegions
Definition: eflowCaloRegions.h:67
HI::SubCalo::Lists::Tile
constexpr std::initializer_list< int > Tile
Definition: HIEventDefs.h:70
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
eflowFirstIntRegions::J1STLAYER
J1STLAYER
Definition: eflowCaloRegions.h:58