ATLAS Offline Software
Loading...
Searching...
No Matches
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
7NAME: eflowCaloRegions.cxx
8PACKAGE: offline/Reconstruction/eflowRec
9
10AUTHOR: R Duxfield
11CREATED: 03 May, 2006
12
13********************************************************************/
14
16
17
18
19
21
22
23const eflowCaloENUM eflowCalo::m_samplCaloMap[CaloCell_ID::FCAL2+1] =
24{
27 HEC1, HEC2, HEC3, HEC4,
28 Tile1, Tile2, Tile3,
29 Tile2, Tile3, Unknown,
30 Tile1, Tile2, Tile3,
32};
33
34
35const 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
53const 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
74const 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{
86 if (eflowCalo::Unknown == layer)
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}
@ Unknown
Definition TruthClasses.h:9
CaloSampling::CaloSample CaloSample
Definition CaloCell_ID.h:53
static LAYER translateSampl(CaloCell_ID::CaloSample sampl)
static const std::string m_layerNames[]
static const std::string & name(LAYER layer)
static const LAYER m_samplCaloMap[]
static const int nRegions
static const std::string & name(J1STLAYER layer)
static J1STLAYER translateCalo(eflowCaloENUM layer)
static const int nRegions
static const std::string m_layerNames[]
static const J1STLAYER m_caloFirstIntMap[]
eflowCalo::LAYER eflowCaloENUM
eflowFirstIntRegions::J1STLAYER eflowFirstIntENUM