|
ATLAS Offline Software
|
#include <PixelID.h>
|
enum | HelperType {
HelperType::Unimplemented = -1,
HelperType::Silicon = 0,
HelperType::Pixel,
HelperType::PLR,
HelperType::SCT,
HelperType::TRT,
HelperType::LArEM,
HelperType::LArFCal,
HelperType::LArFCalSuperCell,
HelperType::LArHEC,
HelperType::LArHEC_SuperCell,
HelperType::LARMiniFCal,
HelperType::Tile,
HelperType::TileSuperCell,
HelperType::LArOnline,
HelperType::LArOnlineSuperCell,
HelperType::LArElectrode,
HelperType::LArHVLine,
HelperType::TileHardware,
HelperType::TileTestbeam,
HelperType::CaloCell,
HelperType::CaloSuperCell,
HelperType::CaloDM,
HelperType::CaloLvl1,
HelperType::GTower,
HelperType::JTower,
HelperType::Muon,
HelperType::LUCID,
HelperType::LUCID_Hardware,
HelperType::Zdc,
HelperType::ZdcHardware,
HelperType::TT
} |
| enum class for eventual final derived types of this class More...
|
|
|
std::string | m_nm |
| Message source name. More...
|
|
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More...
|
|
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More...
|
|
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More...
|
|
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More...
|
|
|
enum | { NOT_VALID_HASH = 64000,
MAX_BIT = Identifier::MAX_BIT,
BITS32 = Identifier::ALL_BITS
} |
|
typedef std::vector< Identifier > | id_vec |
|
typedef id_vec::const_iterator | id_vec_it |
|
typedef std::vector< unsigned short > | hash_vec |
|
typedef hash_vec::const_iterator | hash_vec_it |
|
Identifier | m_baseIdentifier {} |
|
ExpandedIdentifier | m_baseExpandedIdentifier {} |
|
size_type | m_pixel_region_index {0} |
|
size_type | m_INDET_INDEX {0} |
|
size_type | m_PIXEL_INDEX {1} |
|
size_type | m_BARREL_EC_INDEX {2} |
|
size_type | m_LAYER_DISK_INDEX {3} |
|
size_type | m_PHI_MODULE_INDEX {4} |
|
size_type | m_ETA_MODULE_INDEX {5} |
|
size_type | m_PHI_INDEX_INDEX {6} |
|
size_type | m_ETA_INDEX_INDEX {7} |
|
int | m_ETA_MODULE_OFFSET {999} |
|
Identifier | m_pixel_id {} |
|
const IdDictDictionary * | m_dict {} |
|
MultiRange | m_full_wafer_range |
|
MultiRange | m_full_pixel_range |
|
size_type | m_wafer_hash_max {} |
|
size_type | m_pixel_hash_max {} |
|
Range::field | m_barrel_field |
|
id_vec | m_wafer_vec |
|
hash_vec | m_prev_phi_wafer_vec |
|
hash_vec | m_next_phi_wafer_vec |
|
hash_vec | m_prev_eta_wafer_vec |
|
hash_vec | m_next_eta_wafer_vec |
|
IdDictFieldImplementation | m_indet_impl |
|
IdDictFieldImplementation | m_pixel_impl |
|
IdDictFieldImplementation | m_bec_impl |
|
IdDictFieldImplementation | m_lay_disk_impl |
|
IdDictFieldImplementation | m_phi_mod_impl |
|
IdDictFieldImplementation | m_eta_mod_impl |
|
IdDictFieldImplementation | m_bec_shift_impl |
|
IdDictFieldImplementation | m_lay_disk_shift_impl |
|
IdDictFieldImplementation | m_phi_mod_shift_impl |
|
IdDictFieldImplementation | m_eta_mod_shift_impl |
|
IdDictFieldImplementation | m_phi_index_impl |
|
IdDictFieldImplementation | m_eta_index_impl |
|
IdDictFieldImplementation | m_bec_eta_mod_impl |
|
Range::field | m_dbm_field |
|
Identifier | pixel_id (const ExpandedIdentifier &pixel_id) const |
| Create pixel Identifier from expanded id, which is returned by the id_iterators. More...
|
|
Identifier | pixel_id (const ExpandedIdentifier &pixel_id, bool checks) const |
| Create pixel Identifier from expanded id, which is returned by the id_iterators. More...
|
|
void | get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context=0) const |
| Create expanded id from compact id (return == 0 for OK) More...
|
|
virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) override |
| Initialization from the identifier dictionary. More...
|
|
void | test_wafer_packing (void) const |
| Tests of packing. More...
|
|
void | wafer_id_checks (int barrel_ec, int layer_disk, int phi_module, int eta_module) const |
|
void | pixel_id_checks (int barrel_ec, int layer_disk, int phi_module, int eta_module, int phi_index, int eta_index) const |
|
int | initLevelsFromDict (void) |
|
int | init_hashes (void) |
|
int | init_neighbors (void) |
|
@class PixelID
@brief This is an Identifier helper class for the Pixel
subdetector. This class is a factory for creating compact
Identifier objects and IdentifierHash or hash ids. And it also
allows decoding of these ids.
Definition and the range of values for the levels of the
identifier are:
** element range bits meaning
** ------- ----- ---- -------
**
** barrel_ec 0 2 barrel
** -4 / 4 neg ec / pos ec (-4 and +4 for DBM)
** layer_disk 0 to 2 2 for barrel
** 0 to 2 2 for ec
** phi_module 0 to <29 5 for barrel (depends upon layer)
** 0 to <72 7 for ec (depends upon disk)
** eta_module 0 to 12 4 for barrel, along z
** 0 to 1 1 for ec, along r
** phi_index 0 to 327 9 for barrel, pixel coordinate along r/phi
** 0 to 192 8 for ec, "
** eta_index 0 to 205 8 for barrel, pixel coordinate along z
** 0 to 164 8 for ec, " " " r
**
Definition at line 66 of file PixelID.h.
◆ const_expanded_id_iterator
◆ const_id_iterator
◆ hash_vec
◆ hash_vec_it
◆ id_vec
◆ id_vec_it
◆ size_type
◆ anonymous enum
Enumerator |
---|
NOT_VALID_HASH | |
MAX_BIT | |
BITS32 | |
Definition at line 258 of file PixelID.h.
◆ HelperType
enum class for eventual final derived types of this class
Enumerator |
---|
Unimplemented | |
Silicon | |
Pixel | |
PLR | |
SCT | |
TRT | |
LArEM | |
LArFCal | |
LArFCalSuperCell | |
LArHEC | |
LArHEC_SuperCell | |
LARMiniFCal | |
Tile | |
TileSuperCell | |
LArOnline | |
LArOnlineSuperCell | |
LArElectrode | |
LArHVLine | |
TileHardware | |
TileTestbeam | |
CaloCell | |
CaloSuperCell | |
CaloDM | |
CaloLvl1 | |
GTower | |
JTower | |
Muon | |
LUCID | |
LUCID_Hardware | |
Zdc | |
ZdcHardware | |
TT | |
Definition at line 60 of file AtlasDetectorID.h.
65 LArEM, LArFCal, LArFCalSuperCell,
66 LArHEC, LArHEC_SuperCell, LARMiniFCal,
70 LArOnline, LArOnlineSuperCell,
72 LArElectrode, LArHVLine,
73 TileHardware, TileTestbeam,
80 LUCID, LUCID_Hardware,
◆ ID
◆ PixelID()
◆ alfa_exp()
◆ alfa_field_value()
int AtlasDetectorID::alfa_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ barrel_ec()
Values of different levels (failure returns 0)
Definition at line 619 of file PixelID.h.
◆ base_bit()
int PixelID::base_bit |
( |
void |
| ) |
const |
|
inline |
Return the lowest bit position used in the channel id.
Definition at line 580 of file PixelID.h.
◆ bcm_exp()
◆ bcm_field_value()
int AtlasDetectorID::bcm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ calc_offset()
Calculate a channel offset between the two identifiers.
Definition at line 564 of file PixelID.h.
◆ calo()
◆ calo_exp()
◆ calo_field_value()
int AtlasDetectorID::calo_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ csc()
◆ csc_field_value()
int AtlasDetectorID::csc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ detsystem_context()
IdContext AtlasDetectorID::detsystem_context |
( |
void |
| ) |
const |
|
inherited |
◆ dict_names()
const std::vector< std::string > & AtlasDetectorID::dict_names |
( |
void |
| ) |
const |
|
inherited |
◆ dict_tags()
const std::vector< std::string > & AtlasDetectorID::dict_tags |
( |
void |
| ) |
const |
|
inherited |
Version tags for subdet dictionaries.
Version tag for subdet dictionary.
Definition at line 723 of file AtlasDetectorID.cxx.
◆ dictionaryVersion()
std::string AtlasDetectorID::dictionaryVersion |
( |
void |
| ) |
const |
|
overridevirtualinherited |
◆ do_checks()
bool AtlasDetectorID::do_checks |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Checks are performed by default in debug compilation and NOT in optimized compilation.
One can switch or query this mode for any idHelper with the following methods:
Implements IdHelper.
Definition at line 728 of file AtlasDetectorID.cxx.
◆ do_neighbours()
bool AtlasDetectorID::do_neighbours |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Neighbour initialization is performed by default One can switch or query this mode for any idHelper with the following method:
Implements IdHelper.
Definition at line 738 of file AtlasDetectorID.cxx.
◆ eta_index()
◆ eta_index_max()
◆ eta_module()
◆ eta_module_max()
◆ eta_module_min()
◆ file_names()
const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ fix_barrel_ec()
std::string AtlasDetectorID::fix_barrel_ec |
( |
const std::string & |
barrel_ec | ) |
const |
|
protectedinherited |
◆ forward_field_value()
int AtlasDetectorID::forward_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ fwd_exp()
◆ get_expanded_id()
Create expanded id from compact id (return == 0 for OK)
Definition at line 933 of file PixelID.cxx.
◆ get_hash()
◆ get_id()
Create compact id from hash id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 950 of file PixelID.cxx.
968 std::cout <<
"Do not know how to calculate pixel id from hash yet!!" << std::endl;
◆ get_next_in_eta()
Next wafer hash in eta (return == 0 for neighbor found)
Definition at line 496 of file PixelID.cxx.
◆ get_next_in_phi()
Next wafer hash in phi (return == 0 for neighbor found)
Definition at line 470 of file PixelID.cxx.
◆ get_prev_in_eta()
Previous wafer hash in eta (return == 0 for neighbor found)
Definition at line 483 of file PixelID.cxx.
◆ get_prev_in_phi()
Previous wafer hash in phi (return == 0 for neighbor found)
Definition at line 457 of file PixelID.cxx.
◆ helper()
◆ hgtd()
◆ hgtd_exp()
◆ hgtd_field_value()
int AtlasDetectorID::hgtd_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ indet()
◆ indet_exp()
◆ indet_field_value()
int AtlasDetectorID::indet_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
Provide efficient access to individual field values, for subclass idhelpers.
Definition at line 611 of file AtlasDetectorID.h.
◆ init_hashes()
int PixelID::init_hashes |
( |
void |
| ) |
|
|
protected |
Definition at line 391 of file PixelID.cxx.
404 unsigned int nids = 0;
405 std::set<Identifier>
ids;
409 for (
const auto & exp_id:rit) {
414 if (!(
ids.insert(
id)).second) {
416 <<
" Error: duplicated id for wafer id. nid " << nids
418 <<
" exp id " << (std::string) exp_id
420 else std::cout <<
" FATAL PixelID::init_hashes "
421 <<
" Error: duplicated id for wafer id. nid " << nids
423 <<
" exp id " << (std::string) exp_id
432 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
435 else std::cout <<
" FATAL PixelID::init_hashes "
436 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
443 std::set<Identifier>::const_iterator
first =
ids.begin();
444 std::set<Identifier>::const_iterator last =
ids.end();
◆ init_neighbors()
int PixelID::init_neighbors |
( |
void |
| ) |
|
|
protected |
Definition at line 508 of file PixelID.cxx.
516 else std::cout <<
" DEBUG PixelID::init_neighbors " << std::endl;
536 for (
const auto & exp_id: rit) {
554 if (
get_hash(
id, hash_id, &wcontext)) {
557 else std::cout <<
" FATAL PixelID::init_neighbors - unable to get hash, exp/compact "
563 unsigned short index = hash_id;
577 if (
get_hash(
id, hash_id, &wcontext)) {
578 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::init_neighbors - unable to get previous phi hash, exp/compact "
580 else std::cout <<
" FATAL PixelID::init_neighbors - unable to get previous phi hash, exp/compact "
595 if (
get_hash(
id, hash_id, &wcontext)) {
596 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::init_neighbors - unable to get next phi hash, exp/compact " <<
598 else std::cout <<
" FATAL PixelID::init_neighbors - unable to get next phi hash, exp/compact " <<
613 if (
get_hash(
id, hash_id, &wcontext)) {
614 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::init_neighbors - unable to get previous eta hash, exp/compact "
616 else std::cout <<
" FATAL PixelID::init_neighbors - unable to get previous eta hash, exp/compact "
631 if (
get_hash(
id, hash_id, &wcontext)) {
632 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::init_neighbors - unable to get next eta hash, exp/compact "
634 else std::cout <<
" FATAL PixelID::init_neighbors - unable to get next eta hash, exp/compact "
◆ initialize_from_dictionary()
Initialization from the identifier dictionary.
Reimplemented from AtlasDetectorID.
Reimplemented in PLR_ID.
Definition at line 186 of file PixelID.cxx.
190 else std::cout <<
" INFO Initialize from dictionary" << std::endl;
194 if (
m_msgSvc)
log << MSG::INFO <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
195 else std::cout <<
" INFO Request to reinitialize not satisfied - tags have not changed" << std::endl;
199 else std::cout <<
" DEBUG (Re)initialize" << std::endl;
210 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::initialize_from_dict - cannot access InnerDetector dictionary "
212 else std::cout <<
" FATAL PixelID::initialize_from_dict - cannot access InnerDetector dictionary "
225 if (
m_msgSvc)
log <<
MSG::FATAL <<
" PixelID::initialize_from_dict - cannot get pixel id dictionary "
227 else std::cout <<
" FATAL PixelID::initialize_from_dict - cannot get pixel id dictionary "
239 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
242 else std::cout <<
" FATAL Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
250 <<
"Set barrel field values: "
253 else std::cout <<
" DEBUG PixelID::initialize_from_dict "
254 <<
"Set barrel field values: "
271 "Could not get value for label 'negative_dbm' of field 'barrel_endcap' in dictionary "
274 else std::cout <<
" WARNING Could not get value for label 'negative_dbm' of field 'barrel_endcap' in dictionary "
286 "Could not get value for label 'positive_dbm' of field 'barrel_endcap' in dictionary "
289 else std::cout <<
" WARNING Could not get value for label 'positive_dbm' of field 'barrel_endcap' in dictionary "
299 <<
"Set dbm field values: "
302 else std::cout <<
" DEBUG PixelID::initialize_from_dict "
303 <<
"Set dbm field values: "
316 if (atlasDict->get_label_value(
"subdet",
"InnerDetector", inDetField)) {
317 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
320 else std::cout <<
" FATAL Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
329 if (
m_msgSvc)
log <<
MSG::FATAL <<
"Could not get value for label 'Pixel' of field 'part' in dictionary "
332 else std::cout <<
" FATAL Could not get value for label 'Pixel' of field 'part' in dictionary "
338 <<
"Found field values: InDet/Pixel "
342 else std::cout <<
" DEBUG PixelID::initialize_from_dict "
343 <<
"Found field values: InDet/Pixel "
380 std::cout <<
" DEBUG PixelID::initialize_from_dict "
◆ initLevelsFromDict()
int PixelID::initLevelsFromDict |
( |
void |
| ) |
|
|
protected |
Definition at line 646 of file PixelID.cxx.
651 else std::cout <<
" FATAL PixelID::initLevelsFromDict - dictionary NOT initialized " << std::endl;
671 if (
m_msgSvc)
log <<
MSG::FATAL <<
"PixelID::initLevelsFromDict - unable to find pixel region index: id, reg "
674 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find pixel region index: id, reg "
687 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'subdet' field "
697 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'part' field " << std::endl;
706 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'barrel_endcap' field " << std::endl;
715 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'layer' field " << std::endl;
724 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'phi_module' field " << std::endl;
732 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'eta_module' field " << std::endl;
740 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'phi_index' field " << std::endl;
748 else std::cout <<
" FATAL PixelID::initLevelsFromDict - unable to find 'eta_index' field " << std::endl;
782 std::cout <<
" DEBUG decode index and bit fields for each level: " << std::endl;
893 std::cout <<
"PixelID::initLevelsFromDict - found levels " << std::endl;
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ is_alfa()
bool AtlasDetectorID::is_alfa |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_barrel()
Test for barrel - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for generic test.
Definition at line 605 of file PixelID.h.
◆ is_bcm()
bool AtlasDetectorID::is_bcm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_blayer()
Test for b-layer - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for generic test.
Definition at line 633 of file PixelID.h.
◆ is_calo() [1/2]
◆ is_calo() [2/2]
bool AtlasDetectorID::is_calo |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_csc() [1/2]
◆ is_csc() [2/2]
bool AtlasDetectorID::is_csc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_dbm()
Test for dbm - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for generic test.
Definition at line 612 of file PixelID.h.
◆ is_eta_module_max()
◆ is_eta_module_min()
◆ is_forward()
bool AtlasDetectorID::is_forward |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_hgtd() [1/2]
◆ is_hgtd() [2/2]
bool AtlasDetectorID::is_hgtd |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_indet() [1/2]
◆ is_indet() [2/2]
bool AtlasDetectorID::is_indet |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar() [1/2]
◆ is_lar() [2/2]
bool AtlasDetectorID::is_lar |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_dm()
bool AtlasDetectorID::is_lar_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_em() [1/2]
◆ is_lar_em() [2/2]
bool AtlasDetectorID::is_lar_em |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_fcal() [1/2]
◆ is_lar_fcal() [2/2]
bool AtlasDetectorID::is_lar_fcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_hec() [1/2]
◆ is_lar_hec() [2/2]
bool AtlasDetectorID::is_lar_hec |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_minifcal() [1/2]
◆ is_lar_minifcal() [2/2]
bool AtlasDetectorID::is_lar_minifcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lucid()
bool AtlasDetectorID::is_lucid |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lumi() [1/2]
◆ is_lumi() [2/2]
bool AtlasDetectorID::is_lumi |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_online()
bool AtlasDetectorID::is_lvl1_online |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_trig_towers()
bool AtlasDetectorID::is_lvl1_trig_towers |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mdt() [1/2]
◆ is_mdt() [2/2]
bool AtlasDetectorID::is_mdt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mm() [1/2]
◆ is_mm() [2/2]
bool AtlasDetectorID::is_mm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_muon() [1/2]
◆ is_muon() [2/2]
bool AtlasDetectorID::is_muon |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_phi_module_max()
To check for when phi wrap around may be needed.
Definition at line 181 of file PixelID.cxx.
◆ is_pixel() [1/2]
◆ is_pixel() [2/2]
bool AtlasDetectorID::is_pixel |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_plr() [1/2]
◆ is_plr() [2/2]
bool AtlasDetectorID::is_plr |
( |
Identifier |
id | ) |
const |
|
inherited |
◆ is_rpc() [1/2]
◆ is_rpc() [2/2]
bool AtlasDetectorID::is_rpc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_sct() [1/2]
◆ is_sct() [2/2]
bool AtlasDetectorID::is_sct |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_shortened_pixel_id() [1/3]
Definition at line 528 of file PixelID.h.
532 if ((
val << 32) && !(
val >> 32)) {
535 }
else if (!(
val << 32) && (
val >> 32)) {
◆ is_shortened_pixel_id() [2/3]
◆ is_shortened_pixel_id() [3/3]
Test if this is a valid shortened pixel channel id.
Definition at line 516 of file PixelID.h.
517 return (
val >> 31) && (
val & 0xff);
◆ is_stgc() [1/2]
◆ is_stgc() [2/2]
bool AtlasDetectorID::is_stgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tgc() [1/2]
◆ is_tgc() [2/2]
bool AtlasDetectorID::is_tgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile() [1/2]
◆ is_tile() [2/2]
bool AtlasDetectorID::is_tile |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile_dm()
bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_trt() [1/2]
◆ is_trt() [2/2]
bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_zdc()
bool AtlasDetectorID::is_zdc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ lar()
◆ lar_dm()
◆ lar_em()
◆ lar_em_exp()
◆ lar_em_field_value()
int AtlasDetectorID::lar_em_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_exp()
◆ lar_fcal()
Identifier AtlasDetectorID::lar_fcal |
( |
void |
| ) |
const |
|
inherited |
◆ lar_fcal_exp()
◆ lar_fcal_field_value()
int AtlasDetectorID::lar_fcal_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_field_value()
int AtlasDetectorID::lar_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_hec()
Identifier AtlasDetectorID::lar_hec |
( |
void |
| ) |
const |
|
inherited |
◆ lar_hec_exp()
◆ lar_hec_field_value()
int AtlasDetectorID::lar_hec_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_lvl1()
Identifier AtlasDetectorID::lar_lvl1 |
( |
void |
| ) |
const |
|
inherited |
◆ layer_disk()
◆ layer_disk_max()
Max/Min values for each field (error returns -999)
Definition at line 62 of file PixelID.cxx.
69 if (
range.match(expId)) {
71 if (not layer_disk_field.
empty()) {
◆ lucid_exp()
◆ lucid_field_value()
int AtlasDetectorID::lucid_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lumi()
◆ lumi_exp()
◆ lumi_field_value()
int AtlasDetectorID::lumi_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mdt()
◆ mdt_field_value()
int AtlasDetectorID::mdt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mm()
◆ mm_field_value()
int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ muon()
◆ muon_exp()
◆ muon_field_value()
int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ phi_index()
◆ phi_index_max()
◆ phi_module()
◆ phi_module_max()
◆ pixel()
◆ pixel_begin()
For pixel ids, only expanded id iterators are available.
Use following "pixel_id" method to obtain a compact identifier
Definition at line 924 of file PixelID.cxx.
◆ pixel_context()
IdContext PixelID::pixel_context |
( |
void |
| ) |
const |
|
inline |
◆ pixel_end()
◆ pixel_exp()
◆ pixel_field_value()
int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ pixel_hash_max()
◆ pixel_id() [1/6]
Create pixel Identifier from expanded id, which is returned by the id_iterators.
Definition at line 470 of file PixelID.h.
◆ pixel_id() [2/6]
Create pixel Identifier from expanded id, which is returned by the id_iterators.
Definition at line 446 of file PixelID.h.
◆ pixel_id() [3/6]
◆ pixel_id() [4/6]
Create a compact id from a value (e.g., from a persistent object).
This repacks fields in case it's a special pixel channel id.
Definition at line 490 of file PixelID.h.
496 if ((
val << 32) && !(
val >> 32)) {
504 }
else if (!(
val << 32) && (
val >> 32)) {
◆ pixel_id() [5/6]
Identifier PixelID::pixel_id |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module, |
|
|
int |
phi_index, |
|
|
int |
eta_index |
|
) |
| const |
|
inline |
For an individual pixel.
Definition at line 432 of file PixelID.h.
◆ pixel_id() [6/6]
Identifier PixelID::pixel_id |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module, |
|
|
int |
phi_index, |
|
|
int |
eta_index, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ pixel_id_checks()
void PixelID::pixel_id_checks |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module, |
|
|
int |
phi_index, |
|
|
int |
eta_index |
|
) |
| const |
|
protected |
Definition at line 45 of file PixelID.cxx.
54 if (
m_msgSvc)
log << MSG::ERROR <<
" PixelID::pixel_id result is NOT ok. ID, range "
56 else std::cout <<
" ERROR PixelID::pixel_id result is NOT ok. ID, range "
◆ pixel_id_from_shortened()
Create a compact pixel id from a (fixed format) legacy pixel channel id.
If compiled in 32-bit mode, this method does nothing.
Definition at line 546 of file PixelID.h.
550 int bec = bec_val[(
val >> 29) & 0x03];
555 ((
val >> 27) & 0x03),
556 ((
val >> 21) & 0x3f),
558 ((
val >> 8) & 0x1ff),
◆ pixel_id_offset()
Create an identifier with a given base and channel offset.
Definition at line 572 of file PixelID.h.
◆ plr_field_value()
int AtlasDetectorID::plr_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ print()
◆ print_to_string()
or provide the printout in string form
Definition at line 655 of file AtlasDetectorID.cxx.
663 unsigned int max_index = (context) ? context->
end_index() : 999;
694 if (!dict)
return (
result);
◆ register_dict_tag()
int AtlasDetectorID::register_dict_tag |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
Register the file and tag names for a particular IdDict dictionary.
Definition at line 266 of file AtlasDetectorID.cxx.
273 if (!dict)
return(1);
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 284 of file AtlasDetectorID.cxx.
294 ATH_MSG_ERROR(
"reinitialize: dict names and tags vectors not the same length ");
◆ rpc()
◆ rpc_field_value()
int AtlasDetectorID::rpc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sct()
◆ sct_exp()
◆ sct_field_value()
int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ set_do_checks()
void AtlasDetectorID::set_do_checks |
( |
bool |
do_checks | ) |
|
|
overridevirtualinherited |
◆ set_do_neighbours()
void AtlasDetectorID::set_do_neighbours |
( |
bool |
do_neighbours | ) |
|
|
overridevirtualinherited |
◆ set_quiet()
void AtlasDetectorID::set_quiet |
( |
bool |
quiet | ) |
|
|
inherited |
◆ setDictVersion()
|
overrideprotectedvirtualinherited |
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setMessageSvc()
void AtlasDetectorID::setMessageSvc |
( |
IMessageSvc * |
msgSvc | ) |
|
|
overridevirtualinherited |
◆ show()
Short print out of any identifier (optionally provide separation character - default is '.
'):
Definition at line 565 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 574 of file AtlasDetectorID.cxx.
580 std::string
result(
"Unable to decode id");
581 unsigned int max_index = (context) ? context->
end_index() : 999;
615 if (!dict)
return (
result);
629 for (
unsigned int i = 0;
i < expId.
fields(); ++
i) {
632 sprintf (temp,
"%d", expId[
i]);
◆ stgc()
◆ stgc_field_value()
int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ test_wafer_packing()
void PixelID::test_wafer_packing |
( |
void |
| ) |
const |
Tests of packing.
Definition at line 1005 of file PixelID.cxx.
1023 "PixelID::test_wafer_packing: new and old compact id not equal. New/old/expanded ids "
1025 << (std::string) expId <<
endmsg;
1026 else std::cout <<
" ERROR PixelID::test_wafer_packing: new and old compact id not equal. New/old/expanded ids "
1028 << (std::string) expId << std::endl;
1037 for (; first_pixel != last_pixel && nids < 1000; ++first_pixel, ++nids) {
1047 if (exp_id[0] != new_exp_id[0] ||
1048 exp_id[1] != new_exp_id[1] ||
1049 exp_id[2] != new_exp_id[2] ||
1050 exp_id[3] != new_exp_id[3] ||
1051 exp_id[4] != new_exp_id[4] ||
1052 exp_id[5] != new_exp_id[5]) {
1054 "PixelID::test_wafer_packing: new and old expanded ids not equal. New/old/compact ids "
1055 << (std::string) new_exp_id
1056 <<
" " << (std::string) exp_id
1058 else std::cout <<
" ERROR PixelID::test_wafer_packing: new and old expanded ids not equal. New/old/compact ids "
1059 << (std::string) new_exp_id
1060 <<
" " << (std::string) exp_id
1077 if (
m_msgSvc)
log << MSG::ERROR <<
"PixelID::test_wafer_packing: new and old pixel ids not equal. New/old ids "
1080 else std::cout <<
" ERROR PixelID::test_wafer_packing: new and old pixel ids not equal. New/old ids "
1089 else std::cout <<
" DEBUG PixelID::test_wafer_packing: Successful tested "
1094 "PixelID::test_wafer_packing: Unable to test wafer is packing - no dictionary has been defined. "
1097 " ERROR PixelID::test_wafer_packing: Unable to test wafer is packing - no dictionary has been defined. "
◆ tgc()
◆ tgc_field_value()
int AtlasDetectorID::tgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile()
◆ tile_dm()
Identifier AtlasDetectorID::tile_dm |
( |
void |
| ) |
const |
|
inherited |
◆ tile_exp()
◆ tile_field_value()
int AtlasDetectorID::tile_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ to_range()
◆ trt()
◆ trt_exp()
◆ trt_field_value()
int AtlasDetectorID::trt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ wafer_begin()
Iterators over full set of ids. Wafer iterator is sorted.
Definition at line 916 of file PixelID.cxx.
◆ wafer_context()
IdContext PixelID::wafer_context |
( |
void |
| ) |
const |
|
inline |
◆ wafer_end()
◆ wafer_hash()
wafer hash from id
Definition at line 387 of file PixelID.h.
◆ wafer_hash_max()
◆ wafer_id() [1/4]
For a single crystal from a pixel id - DO NOT USE wafer id as input.
Definition at line 373 of file PixelID.h.
◆ wafer_id() [2/4]
◆ wafer_id() [3/4]
Identifier PixelID::wafer_id |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module |
|
) |
| const |
|
inline |
For a single crystal.
Definition at line 364 of file PixelID.h.
◆ wafer_id() [4/4]
Identifier PixelID::wafer_id |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ wafer_id_checks()
void PixelID::wafer_id_checks |
( |
int |
barrel_ec, |
|
|
int |
layer_disk, |
|
|
int |
phi_module, |
|
|
int |
eta_module |
|
) |
| const |
|
protected |
Definition at line 29 of file PixelID.cxx.
37 if (
m_msgSvc)
log << MSG::ERROR <<
" PixelID::wafer_id result is NOT ok. ID, range "
39 else std::cout <<
" ERROR PixelID::wafer_id result is NOT ok. ID, range "
◆ zdc_exp()
◆ zdc_field_value()
int AtlasDetectorID::zdc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_ALFA_ID
int AtlasDetectorID::m_ALFA_ID {1} |
|
privateinherited |
◆ m_atlas_dict
◆ m_BARREL_EC_INDEX
◆ m_barrel_field
◆ m_baseExpandedIdentifier
◆ m_baseIdentifier
◆ m_BCM_ID
int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_bec_eta_mod_impl
◆ m_bec_impl
◆ m_bec_shift_impl
◆ m_calo_dict
◆ m_CALO_ID
int AtlasDetectorID::m_CALO_ID {10} |
|
privateinherited |
◆ m_calo_side_impl
◆ m_CSC_ID
int AtlasDetectorID::m_CSC_ID {1} |
|
privateinherited |
◆ m_dbm_field
◆ m_det_impl
◆ m_DET_INDEX
◆ m_dict
◆ m_dict_names
std::vector<std::string> AtlasDetectorID::m_dict_names |
|
protectedinherited |
◆ m_dict_tags
std::vector<std::string> AtlasDetectorID::m_dict_tags |
|
protectedinherited |
◆ m_dict_version
std::string AtlasDetectorID::m_dict_version |
|
privateinherited |
◆ m_do_checks
bool AtlasDetectorID::m_do_checks {} |
|
protectedinherited |
Flag for subclasses to know whether or not to perform checks.
In general, this is set to false in optimized mode.
Definition at line 362 of file AtlasDetectorID.h.
◆ m_do_neighbours
bool AtlasDetectorID::m_do_neighbours {true} |
|
protectedinherited |
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition at line 365 of file AtlasDetectorID.h.
◆ m_eta_index_impl
◆ m_ETA_INDEX_INDEX
◆ m_eta_mod_impl
◆ m_eta_mod_shift_impl
◆ m_ETA_MODULE_INDEX
◆ m_ETA_MODULE_OFFSET
int PixelID::m_ETA_MODULE_OFFSET {999} |
|
protected |
◆ m_file_names
std::vector<std::string> AtlasDetectorID::m_file_names |
|
protectedinherited |
List of dictionary file names used by this helper.
Definition at line 378 of file AtlasDetectorID.h.
◆ m_full_pixel_range
◆ m_full_wafer_range
◆ m_fwd_dict
◆ m_FWD_ID
int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_helper
◆ m_HGTD_ID
int AtlasDetectorID::m_HGTD_ID {4} |
|
privateinherited |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_indet_dict
◆ m_INDET_ID
int AtlasDetectorID::m_INDET_ID {2} |
|
privateinherited |
◆ m_indet_impl
◆ m_INDET_INDEX
◆ m_indet_part_impl
◆ m_is_initialized_from_dict
bool AtlasDetectorID::m_is_initialized_from_dict {} |
|
privateinherited |
◆ m_isHighLuminosityLHC
bool AtlasDetectorID::m_isHighLuminosityLHC {} |
|
privateinherited |
◆ m_lar_dict
◆ m_lar_dm_field
◆ m_LAR_EM_ID
int AtlasDetectorID::m_LAR_EM_ID {1} |
|
privateinherited |
◆ m_LAR_FCAL_ID
int AtlasDetectorID::m_LAR_FCAL_ID {3} |
|
privateinherited |
◆ m_lar_fcal_module_impl
◆ m_LAR_FCAL_MODULE_INDEX
int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999} |
|
privateinherited |
◆ m_LAR_HEC_ID
int AtlasDetectorID::m_LAR_HEC_ID {2} |
|
privateinherited |
◆ m_LAR_ID
int AtlasDetectorID::m_LAR_ID {4} |
|
privateinherited |
◆ m_lar_part_impl
◆ m_lay_disk_impl
◆ m_lay_disk_shift_impl
◆ m_LAYER_DISK_INDEX
◆ m_LUCID_ID
int AtlasDetectorID::m_LUCID_ID {5} |
|
privateinherited |
◆ m_LUMI_ID
int AtlasDetectorID::m_LUMI_ID {3} |
|
privateinherited |
◆ m_LUMI_PLR_ID
int AtlasDetectorID::m_LUMI_PLR_ID {1} |
|
privateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_lvl1_field
◆ m_lvl1_onl_field
◆ m_MDT_ID
int AtlasDetectorID::m_MDT_ID {0} |
|
privateinherited |
◆ m_MM_ID
int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_msgSvc
IMessageSvc* AtlasDetectorID::m_msgSvc {} |
|
protectedinherited |
◆ m_muon_dict
◆ m_MUON_ID
int AtlasDetectorID::m_MUON_ID {7} |
|
privateinherited |
◆ m_muon_mdt_impl
◆ m_muon_rpc_impl
◆ m_muon_station_name_impl
◆ m_MUON_SUBDET_INDEX
size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_muon_tech_bits
std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits |
|
privateinherited |
◆ m_next_eta_wafer_vec
◆ m_next_phi_wafer_vec
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_phi_index_impl
◆ m_PHI_INDEX_INDEX
◆ m_phi_mod_impl
◆ m_phi_mod_shift_impl
◆ m_PHI_MODULE_INDEX
◆ m_pixel_hash_max
◆ m_pixel_id
◆ m_PIXEL_ID
int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_pixel_impl
◆ m_PIXEL_INDEX
◆ m_pixel_region_index
◆ m_prev_eta_wafer_vec
◆ m_prev_phi_wafer_vec
◆ m_quiet
bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_RPC_ID
int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_SCT_ID
int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_STGC_ID
int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_TGC_ID
int AtlasDetectorID::m_TGC_ID {3} |
|
privateinherited |
◆ m_tile_dict
◆ m_tile_dm_field
◆ m_TILE_ID
int AtlasDetectorID::m_TILE_ID {5} |
|
privateinherited |
◆ m_TRT_ID
int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_wafer_hash_max
◆ m_wafer_vec
◆ m_ZDC_ID
int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
const std::string & dict_tag(void) const
Access to the dictionary tag.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
IdDictFieldImplementation m_bec_impl
bool is_forward(Identifier id) const
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override final
Create hash id from compact id (return == 0 for OK)
MultiRange build_multirange() const
Get MultiRange for full dictionary.
size_type m_wafer_hash_max
std::vector< unsigned int > m_muon_tech_bits
int phi_index(const Identifier &id) const
int unpack(const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier, considering the provided prefix (result will incl...
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
std::vector< Identifier >::const_iterator const_id_iterator
IdDictFieldImplementation m_indet_part_impl
IdContext pixel_context(void) const
bool is_lar_fcal(Identifier id) const
identifier_factory factory_begin()
std::string show_to_string(void) const
bool is_lar(Identifier id) const
IdDictFieldImplementation m_eta_mod_shift_impl
int muon_field_value() const
IdDictFieldImplementation m_bec_shift_impl
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
identifier_factory factory_end()
element_type get_minimum() const
Query the values.
IdDictFieldImplementation m_indet_impl
size_type cardinalityUpTo(const ExpandedIdentifier &id) const
hash_vec m_next_eta_wafer_vec
size_type end_index() const
int calo_field_value() const
size_type m_BARREL_EC_INDEX
IdDictFieldImplementation m_phi_index_impl
size_type m_ETA_INDEX_INDEX
IdDictFieldImplementation m_phi_mod_shift_impl
MultiRange m_full_pixel_range
int pixel_field_value() const
IdDictFieldImplementation m_eta_mod_impl
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
bool decode_index() const
element_type get_maximum() const
size_type m_ETA_MODULE_INDEX
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
ExpandedIdentifier m_baseExpandedIdentifier
int lar_field_value() const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
bool is_shortened_pixel_id(Identifier32::value_type val) const
Test if this is a valid shortened pixel channel id.
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
int eta_module_max(const Identifier &id) const
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
int base_bit(void) const
Return the lowest bit position used in the channel id.
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
IdDictFieldImplementation m_bec_eta_mod_impl
int initLevelsFromDict(void)
bool match(element_type value) const
The basic match operation.
Range::field m_tile_dm_field
bool is_barrel(const Identifier &id) const
Test for barrel - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for g...
size_type begin_index() const
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
size_type m_pixel_hash_max
Identifier m_baseIdentifier
void get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context=0) const
Create expanded id from compact id (return == 0 for OK)
msgSvc
Provide convenience handles for various services.
IdDictDictionary * m_calo_dict
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
const_expanded_id_iterator pixel_begin(void) const
For pixel ids, only expanded id iterators are available.
size_type bits_offset() const
bool is_tile_dm(Identifier id) const
MultiRange m_full_wafer_range
std::vector< IdDictRegion * > m_regions
void pixel_id_checks(int barrel_ec, int layer_disk, int phi_module, int eta_module, int phi_index, int eta_index) const
int eta_index(const Identifier &id) const
IdDictDictionary * m_fwd_dict
bool get_next(element_type current, element_type &next) const
bool is_tile(Identifier id) const
Range::field m_lvl1_onl_field
const Range::field & ored_field() const
bool m_quiet
If true, suppress DEBUG/INFO messages.
MsgStream & msg() const
The standard message stream.
bool is_valid() const
Check if id is in a valid state.
IdDictFieldImplementation m_muon_rpc_impl
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
bool is_calo(Identifier id) const
int phi_module_max(const Identifier &id) const
const std::string & file_name(void) const
Access to file name.
int tile_field_value() const
int get_label_value(const std::string &field, const std::string &label, int &value) const
int layer_disk(const Identifier &id) const
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
int eta_module(const Identifier &id) const
hash_vec m_next_phi_wafer_vec
IdDictDictionary * m_indet_dict
hash_vec m_prev_phi_wafer_vec
IdDictFieldImplementation m_calo_side_impl
bool is_indet(Identifier id) const
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Range::field m_lar_dm_field
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.
ExpandedIdentifier fwd_exp(void) const
IdDictFieldImplementation m_muon_station_name_impl
MultiRange::const_identifier_factory const_expanded_id_iterator
struct TBPatternUnitContext Muon
size_type m_pixel_region_index
int match(const ExpandedIdentifier &id) const
Match an identifier.
Identifier pixel(void) const
int eta_module_min(const Identifier &id) const
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
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
Data object for each calorimeter readout cell.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
IdContext wafer_context(void) const
void wafer_id_checks(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Identifier pixel_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int phi_index, int eta_index) const
For an individual pixel.
IdDictFieldImplementation m_eta_index_impl
IdDictFieldImplementation m_phi_mod_impl
std::string m_nm
Message source name.
Range::field m_barrel_field
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
IdDictFieldImplementation m_lay_disk_shift_impl
void clear()
Erase all fields.
bool get_previous(element_type current, element_type &previous) const
Returns false if previous/next is at end of range, or not possible.
hash_vec m_prev_eta_wafer_vec
size_type m_LAYER_DISK_INDEX
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
void initMessaging() const
Initialize our message level and MessageSvc.
size_type cardinality() const
Computes a possible cardinality from all ranges.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type m_PHI_MODULE_INDEX
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
int phi_module(const Identifier &id) const
const_expanded_id_iterator pixel_end(void) const
IdDictFieldImplementation m_lay_disk_impl
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
const IdDictDictionary * m_dict
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
std::vector< IdDictFieldImplementation > m_implementation
void add_value(element_type value)
id_vec::const_iterator id_vec_it
constexpr std::initializer_list< int > Tile
Identifier pixel_id_from_shortened(Identifier32::value_type val) const
Create a compact pixel id from a (fixed format) legacy pixel channel id.
Range::field m_lvl1_field
IdDictFieldImplementation m_pixel_impl
size_type m_PHI_INDEX_INDEX