![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include "GaudiKernel/MsgStream.h"
38 else std::cout <<
" INFO Initialize from dictionary" << std::endl;
42 if (
m_msgSvc)
log << MSG::INFO <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
43 else std::cout <<
" INFO Request to reinitialize not satisfied - tags have not changed" << std::endl;
47 else std::cout <<
" DEBUG (Re)initialize" << std::endl;
58 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PLR_ID::initialize_from_dict - cannot access InnerDetector dictionary "
60 else std::cout <<
" FATAL PLR_ID::initialize_from_dict - cannot access InnerDetector dictionary "
75 else std::cout <<
" FATAL PLR_ID::initialize_from_dict - cannot get plr id dictionary "
87 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
90 else std::cout <<
" FATAL Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
98 <<
"Set barrel field values: "
101 else std::cout <<
" DEBUG PLR_ID::initialize_from_dict "
102 <<
"Set barrel field values: "
119 "Could not get value for label 'negative_dbm' of field 'barrel_endcap' in dictionary "
122 else std::cout <<
" WARNING Could not get value for label 'negative_dbm' of field 'barrel_endcap' in dictionary "
134 "Could not get value for label 'positive_dbm' of field 'barrel_endcap' in dictionary "
137 else std::cout <<
" WARNING Could not get value for label 'positive_dbm' of field 'barrel_endcap' in dictionary "
147 <<
"Set dbm field values: "
150 else std::cout <<
" DEBUG PLR_ID::initialize_from_dict "
151 <<
"Set dbm field values: "
164 if (atlasDict->get_label_value(
"subdet",
"InnerDetector", inDetField)) {
165 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
168 else std::cout <<
" FATAL Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
177 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'LuminosityDetectors' of field 'part' in dictionary "
180 else std::cout <<
" FATAL Could not get value for label 'LuminosityDetectors' of field 'part' in dictionary "
189 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'PLR' of field 'PLR_or_BCM' in dictionary "
192 else std::cout <<
" FATAL Could not get value for label 'PLR' of field 'PLR_or_BCM' in dictionary "
199 <<
"Found field values: InDet/LuminosityDetectors/PLR "
204 else std::cout <<
" DEBUG PLR_ID::initialize_from_dict "
205 <<
"Found field values: InDet/LuminosityDetectors/PLR "
245 std::cout <<
" DEBUG PLR_ID::initialize_from_dict "
262 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - dictionary NOT initialized " << std::endl;
283 if (
m_msgSvc)
log <<
MSG::FATAL <<
"PLR_ID::initLevelsFromDict - unable to find pixel region index: id, reg "
286 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find pixel region index: id, reg "
299 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'subdet' field "
309 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'part' field " << std::endl;
318 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'PLR_or_BCM' field " << std::endl;
328 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'barrel_endcap' field " << std::endl;
338 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'layer' field " << std::endl;
348 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'phi_module' field " << std::endl;
357 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'eta_module' field " << std::endl;
366 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'phi_index' field " << std::endl;
375 else std::cout <<
" FATAL PLR_ID::initLevelsFromDict - unable to find 'eta_index' field " << std::endl;
411 std::cout <<
" DEBUG decode index and bit fields for each level: " << std::endl;
530 std::cout <<
"PLR_ID::initLevelsFromDict - found levels " << std::endl;
IdDictRegion * find_region(const std::string ®ion_name) const
IDENTIFIER_TYPE value_type
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
IdDictFieldImplementation m_bec_impl
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Identifier lumi(void) const
std::string show_to_string(void) const
IdDictFieldImplementation m_eta_mod_shift_impl
IdDictFieldImplementation m_bec_shift_impl
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
IdDictFieldImplementation m_indet_impl
This is an Identifier helper class for the PLR subdetector. This class inherits from PicelID.
size_type m_BARREL_EC_INDEX
IdDictFieldImplementation m_phi_index_impl
IdDictFieldImplementation m_plr_impl
size_type m_ETA_INDEX_INDEX
IdDictFieldImplementation m_phi_mod_shift_impl
MultiRange m_full_pixel_range
IdDictFieldImplementation m_eta_mod_impl
void pack(int value, Identifier &id) const
int plr_field_value() const
IMessageSvc * m_msgSvc
pointer to the message service
bool decode_index() const
size_type m_ETA_MODULE_INDEX
ExpandedIdentifier m_baseExpandedIdentifier
IdDictField * find_field(const std::string &name) const
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
IdDictFieldImplementation m_bec_eta_mod_impl
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Identifier m_baseIdentifier
size_type bits_offset() const
MultiRange m_full_wafer_range
std::vector< IdDictRegion * > m_regions
const Range::field & ored_field() const
int lumi_field_value() const
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
IdDictFieldImplementation m_lumi_impl
int get_label_value(const std::string &field, const std::string &label, int &value) const
void add_value(element_type value)
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name) override
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
size_type m_pixel_region_index
bool is_lumi(Identifier id) const
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
value_type zeroing_mask() const
IdDictFieldImplementation m_eta_index_impl
IdDictFieldImplementation m_phi_mod_impl
Range::field m_barrel_field
IdDictFieldImplementation m_lay_disk_shift_impl
size_type m_LAYER_DISK_INDEX
size_type m_PHI_MODULE_INDEX
IdDictFieldImplementation m_lay_disk_impl
const IdDictDictionary * m_dict
std::vector< IdDictFieldImplementation > m_implementation
size_type m_PHI_INDEX_INDEX