ATLAS Offline Software
AtlasDetectorIDHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SRC_ATLASDETECTORIDHELPER_H
6 #define SRC_ATLASDETECTORIDHELPER_H
7 
9 #include "Identifier/Identifier.h"
10 #include "Identifier/IdContext.h"
11 #include "Identifier/IdHelper.h"
12 #include <string>
13 #include <vector>
14 
15 class IdDictField;
16 
18 public:
19 
20  enum ERRORS { UNDEFINED = 999 };
21 
22 
23  AtlasDetectorIDHelper(IMessageSvc* msgSvc);
24 
26 
27  // Access to singleton
28 // static AtlasDetectorIDHelper* instance();
29 
31  int initialize_from_dictionary(const IdDictMgr& dict_mgr, bool quiet);
32 
34 
50 
52 
57 
58  const IdDictField* station_field();
59 
60 
61 private:
62 
63  // undefinded semantics
64 // AtlasDetectorIDHelper (const AtlasDetectorIDHelper &);
65 // AtlasDetectorIDHelper &operator= (const AtlasDetectorIDHelper &);
66 
88  bool m_initialized{};
90 
91 };
92 
93 
94 
95 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
96 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
97 
99 {return (m_pixel_region_index);}
100 
102 {return (m_sct_region_index);}
103 
105 {return (m_trt_region_index);}
106 
108 {return (m_lar_em_region_index);}
109 
111 {return (m_lar_hec_region_index);}
112 
114 {return (m_lar_fcal_region_index);}
115 
117 {return (m_lvl1_region_index);}
118 
120 {return (m_dm_region_index);}
121 
123 {return (m_tile_region_index);}
124 
126 {return (m_mdt_region_index);}
127 
129 {return (m_csc_region_index);}
130 
132 {return (m_rpc_region_index);}
133 
135 {return (m_tgc_region_index);}
136 
138 {return (m_mm_region_index);}
139 
141 {return (m_stgc_region_index);}
142 
144 {return (m_muon_station_index);}
145 
147 {return (m_station_field);}
148 
150 {return(m_alfa_region_index);}
151 
153 {return(m_bcm_region_index);}
154 
156 {return(m_lucid_region_index);}
157 
159 {return(m_zdc_region_index);}
160 
161 #endif // SRC_ATLASDETECTORIDHELPER_H
AtlasDetectorIDHelper::m_muon_station_index
size_type m_muon_station_index
Definition: AtlasDetectorIDHelper.h:83
AtlasDetectorIDHelper::m_dm_region_index
size_type m_dm_region_index
Definition: AtlasDetectorIDHelper.h:75
AtlasDetectorIDHelper::lar_hec_region_index
size_type lar_hec_region_index()
Definition: AtlasDetectorIDHelper.h:110
AtlasDetectorIDHelper::m_trt_region_index
size_type m_trt_region_index
Definition: AtlasDetectorIDHelper.h:70
AtlasDetectorIDHelper::m_bcm_region_index
size_type m_bcm_region_index
Definition: AtlasDetectorIDHelper.h:85
AtlasDetectorIDHelper::ERRORS
ERRORS
Definition: AtlasDetectorIDHelper.h:20
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
AtlasDetectorIDHelper::bcm_region_index
size_type bcm_region_index()
Definition: AtlasDetectorIDHelper.h:152
AtlasDetectorIDHelper::stgc_region_index
size_type stgc_region_index()
Definition: AtlasDetectorIDHelper.h:140
AtlasDetectorIDHelper::m_pixel_region_index
size_type m_pixel_region_index
Definition: AtlasDetectorIDHelper.h:68
AtlasDetectorIDHelper::size_type
Identifier::size_type size_type
Definition: AtlasDetectorIDHelper.h:25
AtlasDetectorIDHelper::trt_region_index
size_type trt_region_index()
Definition: AtlasDetectorIDHelper.h:104
AtlasDetectorIDHelper::m_mm_region_index
size_type m_mm_region_index
Definition: AtlasDetectorIDHelper.h:81
IdHelper.h
AtlasDetectorIDHelper::m_zdc_region_index
size_type m_zdc_region_index
Definition: AtlasDetectorIDHelper.h:87
AtlasDetectorIDHelper::m_isHighLuminosityLHC
bool m_isHighLuminosityLHC
Definition: AtlasDetectorIDHelper.h:67
AtlasDetectorIDHelper::mdt_region_index
size_type mdt_region_index()
Definition: AtlasDetectorIDHelper.h:125
AtlasDetectorIDHelper::UNDEFINED
@ UNDEFINED
Definition: AtlasDetectorIDHelper.h:20
AtlasDetectorIDHelper::tile_region_index
size_type tile_region_index()
Definition: AtlasDetectorIDHelper.h:122
AtlasDetectorIDHelper::m_lar_em_region_index
size_type m_lar_em_region_index
Definition: AtlasDetectorIDHelper.h:71
AtlasDetectorIDHelper::m_csc_region_index
size_type m_csc_region_index
Definition: AtlasDetectorIDHelper.h:78
AtlasDetectorIDHelper::rpc_region_index
size_type rpc_region_index()
Definition: AtlasDetectorIDHelper.h:131
AtlasDetectorIDHelper::lvl1_region_index
size_type lvl1_region_index()
Definition: AtlasDetectorIDHelper.h:116
AtlasDetectorIDHelper::zdc_region_index
size_type zdc_region_index()
Definition: AtlasDetectorIDHelper.h:158
AtlasDetectorIDHelper::sct_region_index
size_type sct_region_index()
Definition: AtlasDetectorIDHelper.h:101
AtlasDetectorIDHelper::alfa_region_index
size_type alfa_region_index()
Definition: AtlasDetectorIDHelper.h:149
IdDictMgr
Definition: IdDictDefs.h:32
AtlasDetectorIDHelper::AtlasDetectorIDHelper
AtlasDetectorIDHelper(IMessageSvc *msgSvc)
Definition: AtlasDetectorIDHelper.cxx:10
IdContext.h
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
AtlasDetectorIDHelper::station_field
const IdDictField * station_field()
Definition: AtlasDetectorIDHelper.h:146
AtlasDetectorIDHelper::m_lvl1_region_index
size_type m_lvl1_region_index
Definition: AtlasDetectorIDHelper.h:74
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
AtlasDetectorIDHelper::m_stgc_region_index
size_type m_stgc_region_index
Definition: AtlasDetectorIDHelper.h:82
AtlasDetectorIDHelper::m_rpc_region_index
size_type m_rpc_region_index
Definition: AtlasDetectorIDHelper.h:79
AtlasDetectorIDHelper::dm_region_index
size_type dm_region_index()
Definition: AtlasDetectorIDHelper.h:119
AtlasDetectorIDHelper::initialize_from_dictionary
int initialize_from_dictionary(const IdDictMgr &dict_mgr, bool quiet)
Initialization from the identifier dictionary.
Definition: AtlasDetectorIDHelper.cxx:15
AtlasDetectorIDHelper
Definition: AtlasDetectorIDHelper.h:17
AtlasDetectorIDHelper::pixel_region_index
size_type pixel_region_index()
Definition: AtlasDetectorIDHelper.h:98
AtlasDetectorIDHelper::muon_station_index
size_type muon_station_index()
Definition: AtlasDetectorIDHelper.h:143
AtlasDetectorIDHelper::m_lucid_region_index
size_type m_lucid_region_index
Definition: AtlasDetectorIDHelper.h:86
AtlasDetectorIDHelper::m_initialized
bool m_initialized
Definition: AtlasDetectorIDHelper.h:88
AtlasDetectorIDHelper::lar_em_region_index
size_type lar_em_region_index()
Definition: AtlasDetectorIDHelper.h:107
AtlasDetectorIDHelper::m_alfa_region_index
size_type m_alfa_region_index
Definition: AtlasDetectorIDHelper.h:84
AtlasDetectorIDHelper::lar_fcal_region_index
size_type lar_fcal_region_index()
Definition: AtlasDetectorIDHelper.h:113
AtlasDetectorIDHelper::m_mdt_region_index
size_type m_mdt_region_index
Definition: AtlasDetectorIDHelper.h:77
AtlasDetectorIDHelper::tgc_region_index
size_type tgc_region_index()
Definition: AtlasDetectorIDHelper.h:134
AthMessaging.h
AtlasDetectorIDHelper::m_sct_region_index
size_type m_sct_region_index
Definition: AtlasDetectorIDHelper.h:69
AtlasDetectorIDHelper::csc_region_index
size_type csc_region_index()
Definition: AtlasDetectorIDHelper.h:128
AtlasDetectorIDHelper::~AtlasDetectorIDHelper
~AtlasDetectorIDHelper()=default
IdDictField
Definition: IdDictDefs.h:316
Identifier::size_type
unsigned long long size_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:29
AtlasDetectorIDHelper::m_lar_fcal_region_index
size_type m_lar_fcal_region_index
Definition: AtlasDetectorIDHelper.h:73
AtlasDetectorIDHelper::m_tile_region_index
size_type m_tile_region_index
Definition: AtlasDetectorIDHelper.h:76
AtlasDetectorIDHelper::m_lar_hec_region_index
size_type m_lar_hec_region_index
Definition: AtlasDetectorIDHelper.h:72
AtlasDetectorIDHelper::m_tgc_region_index
size_type m_tgc_region_index
Definition: AtlasDetectorIDHelper.h:80
AtlasDetectorIDHelper::mm_region_index
size_type mm_region_index()
Definition: AtlasDetectorIDHelper.h:137
AtlasDetectorIDHelper::m_station_field
IdDictField * m_station_field
Definition: AtlasDetectorIDHelper.h:89
AtlasDetectorIDHelper::lucid_region_index
size_type lucid_region_index()
Definition: AtlasDetectorIDHelper.h:155