ATLAS Offline Software
Loading...
Searching...
No Matches
CaloSubdetNames.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/***************************************************************************
6 Calorimeter Detector Description package
7
8 ***************************************************************************/
9
10//<<<<<< INCLUDES >>>>>>
12
13
15= default;
16
21
22void
24{
25 int alignsize = (int) CaloSubdetNames::UNKNOWN;
26 m_reconame.resize( alignsize, "unknown" );
27 m_alvol.resize( alignsize, CaloSubdetNames::UNKNOWN);
28
30 m_reconame [ (int)CaloSubdetNames::LARCRYO_B ] = "LARCRYO_B";
32 m_reconame [ (int)CaloSubdetNames::LARCRYO_EC_POS ] = "LARCRYO_EC_POS";
34 m_reconame [ (int)CaloSubdetNames::LARCRYO_EC_NEG ] = "LARCRYO_EC_NEG";
35
37 m_reconame [ (int)CaloSubdetNames::PRESAMPLER_B_POS ] = "PRESAMPLER_B_POS";
39 m_reconame [ (int)CaloSubdetNames::PRESAMPLER_B_NEG ] = "PRESAMPLER_B_NEG";
41 m_reconame [ (int)CaloSubdetNames::EMB_POS ] = "EMB_POS";
43 m_reconame [ (int)CaloSubdetNames::EMB_NEG ] = "EMB_NEG";
44
46 m_reconame [ (int)CaloSubdetNames::PRESAMPLER_EC_POS ] = "PRESAMPLER_EC_POS";
48 m_reconame [ (int)CaloSubdetNames::PRESAMPLER_EC_NEG ] = "PRESAMPLER_EC_NEG";
50 m_reconame [ (int)CaloSubdetNames::EMEC_POS ] = "EMEC_POS";
52 m_reconame [ (int)CaloSubdetNames::EMEC_NEG ] = "EMEC_NEG";
53
55 m_reconame [ (int)CaloSubdetNames::HEC1_POS ] = "HEC1_POS";
57 m_reconame [ (int)CaloSubdetNames::HEC1_NEG ] = "HEC1_NEG";
59 m_reconame [ (int)CaloSubdetNames::HEC2_POS ] = "HEC2_POS";
61 m_reconame [ (int)CaloSubdetNames::HEC2_NEG ] = "HEC2_NEG";
62
64 m_reconame [ (int)CaloSubdetNames::FCAL1_POS ] = "FCAL1_POS";
66 m_reconame [ (int)CaloSubdetNames::FCAL1_NEG ] = "FCAL1_NEG";
68 m_reconame [ (int)CaloSubdetNames::FCAL2_POS ] = "FCAL2_POS";
70 m_reconame [ (int)CaloSubdetNames::FCAL2_NEG ] = "FCAL2_NEG";
72 m_reconame [ (int)CaloSubdetNames::FCAL3_POS ] = "FCAL3_POS";
74 m_reconame [ (int)CaloSubdetNames::FCAL3_NEG ] = "FCAL3_NEG";
75
77 m_reconame [ (int)CaloSubdetNames::SOLENOID ] = "SOLENOID";
78
79}
80
81std::string
83{
84
85 return m_reconame[ (unsigned int) alvol];
86}
87
89CaloSubdetNames::alignVolEnum(const std::string& reconame)
90{
91 for ( unsigned int i = 0; i < (unsigned int) CaloSubdetNames::UNKNOWN; i++)
92 {
93 if ( reconame == m_reconame[i] ) return m_alvol[i];
94 }
96}
97
CaloSubdetNames declaration.
virtual ~CaloSubdetNames()
destructor
void match_names()
match names and enum
ALIGNVOL
LAr Alignable volumes.
CaloSubdetNames()
standard constructor
CaloSubdetNames::ALIGNVOL alignVolEnum(const std::string &reconame)
Matching between names and enum.
std::vector< CaloSubdetNames::ALIGNVOL > m_alvol
vector of ALIGNVOL enum values
std::string alignVolName(CaloSubdetNames::ALIGNVOL alvol)
Matching between names and enum.
std::vector< std::string > m_reconame
vector of names