|
ATLAS Offline Software
|
#include <TRT_ID.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...
|
|
|
typedef Identifier::size_type | size_type |
|
typedef std::vector< Identifier >::const_iterator | const_id_iterator |
|
typedef MultiRange::const_identifier_factory | const_expanded_id_iterator |
|
|
bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More...
|
|
MsgStream & | msg () const |
| The standard message stream. More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More...
|
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
|
| TRT_ID (void) |
|
| ~TRT_ID (void) |
|
|
bool | is_valid () const |
|
|
Identifier | barrel_ec_id (int barrel_ec) const |
| For +/-barrel or +/-endcap id. More...
|
|
Identifier | barrel_ec_id (int barrel_ec, bool checks) const |
|
Identifier | module_id (int barrel_ec, int phi_module, int layer_or_wheel) const |
| For an individual module phi sector. More...
|
|
Identifier | module_id (int barrel_ec, int phi_module, int layer_or_wheel, bool checks) const |
|
Identifier | module_id (IdentifierHash module_hash) const |
| From hash - optimized, no checks. More...
|
|
Identifier | layer_id (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const |
| For an individual straw layer. More...
|
|
Identifier | layer_id (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, bool checks) const |
|
Identifier | layer_id (IdentifierHash straw_layer_hash) const |
| From hash - optimized, no checks. More...
|
|
Identifier | layer_id (const Identifier &module_id, int straw_layer) const |
| For an individual straw layer. More...
|
|
Identifier | layer_id (const Identifier &module_id, int straw_layer, bool checks) const |
|
Identifier | layer_id (const Identifier &straw_id) const |
| For an individual straw layer from straw id. More...
|
|
Identifier | straw_id (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const |
| Three ways of getting id for a single straw: More...
|
|
Identifier | straw_id (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw, bool checks) const |
|
Identifier | straw_id (const Identifier &module_id, int straw_layer, int straw) const |
|
Identifier | straw_id (const Identifier &module_id, int straw_layer, int straw, bool checks) const |
|
Identifier | straw_id (const Identifier &layer_id, int straw) const |
|
Identifier | straw_id (const Identifier &layer_id, int straw, bool checks) const |
|
Identifier | straw_id (IdentifierHash straw_hash) const |
| Access to straw id from hash - must have done init_straw_hash_vector before using this. More...
|
|
|
void | init_straw_hash_vector (void) |
| The init will use up ~2 MB of memory, so one should do init, use straw_id and then reset. More...
|
|
void | reset_straw_hash_vector (void) |
|
|
size_type | module_hash_max (void) const |
|
size_type | straw_layer_hash_max (void) const |
|
size_type | straw_hash_max (void) const |
|
|
const_id_iterator | module_begin (void) const |
| Iterators over full set of module ids. Module ids are sorted. More...
|
|
const_id_iterator | module_end (void) const |
|
const_id_iterator | straw_layer_begin (void) const |
| Iterators over full set of straw_layer ids. Straw_layer ids are sorted. More...
|
|
const_id_iterator | straw_layer_end (void) const |
|
const_expanded_id_iterator | straw_begin (void) const |
| For straw ids, only expanded id iterators are available. More...
|
|
const_expanded_id_iterator | straw_end (void) const |
|
|
IdentifierHash | module_hash (Identifier module_id) const |
| module hash from id - optimized More...
|
|
IdentifierHash | straw_layer_hash (Identifier straw_layer_id) const |
| straw_layer hash from id - optimized More...
|
|
IdentifierHash | straw_hash (Identifier straw_id) const |
| straw hash from id - optimized More...
|
|
bool | is_barrel (const Identifier &id) const |
| Test for barrel. More...
|
|
int | barrel_ec (const Identifier &id) const |
| Values of different levels (failure returns 0) More...
|
|
int | phi_module (const Identifier &id) const |
|
int | layer_or_wheel (const Identifier &id) const |
|
int | straw_layer (const Identifier &id) const |
|
int | straw (const Identifier &id) const |
|
int | straw_layer_max (const Identifier &id) const |
| Max values for each field (-999 == failure) More...
|
|
int | straw_max (const Identifier &id) const |
|
|
IdContext | barrel_context (void) const |
| barrel_ec id More...
|
|
IdContext | module_context (void) const |
| module id More...
|
|
IdContext | straw_layer_context (void) const |
| straw_layer id More...
|
|
IdContext | straw_context (void) const |
| straw id More...
|
|
|
virtual int | get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override final |
| Create compact id from hash id (return == 0 for OK) More...
|
|
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) 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 | MODULE_RANGE { NUMBER_OF_EC_MODULES = 18
} |
|
enum | VALUES { BARREL_VALUE = 1
} |
|
typedef std::vector< Identifier > | hash_vec |
|
typedef hash_vec::const_iterator | hash_vec_it |
|
typedef std::pair< unsigned int, unsigned int > | intPair |
|
typedef std::map< IdentifierHash, HashCalc > | hashCalcMap |
|
bool | m_is_valid |
|
size_type | m_trt_region_index |
|
size_type | m_INDET_INDEX |
|
size_type | m_TRT_INDEX |
|
size_type | m_BARREL_EC_INDEX |
|
size_type | m_PHI_MODULE_INDEX |
|
size_type | m_LAYER_OR_WHEEL_INDEX |
|
size_type | m_STRAW_LAYER_INDEX |
|
size_type | m_STRAW_INDEX |
|
const IdDictDictionary * | m_dict |
|
MultiRange | m_full_straw_range |
|
MultiRange | m_full_straw_layer_range |
|
MultiRange | m_full_module_range |
|
size_type | m_module_hash_max |
|
size_type | m_straw_layer_hash_max |
|
size_type | m_straw_hash_max |
|
Range::field | m_barrel_field |
|
hash_vec | m_module_vec |
|
hash_vec | m_straw_layer_vec |
|
hash_vec | m_straw_vec |
|
std::vector< HashCalc > | m_hash_calcs |
|
std::vector< intPair > | m_hash_calcs_barrel_indexes |
|
std::vector< intPair > | m_hash_calcs_endcap_indexes |
|
IdDictFieldImplementation | m_indet_impl |
|
IdDictFieldImplementation | m_trt_impl |
|
IdDictFieldImplementation | m_bec_impl |
|
IdDictFieldImplementation | m_phi_mod_impl |
|
IdDictFieldImplementation | m_lay_wheel_impl |
|
IdDictFieldImplementation | m_str_lay_impl |
|
IdDictFieldImplementation | m_straw_impl |
|
Identifier | straw_id (const ExpandedIdentifier &straw_id) const |
| Create straw Identifier from expanded id, which is returned by the id_iterators. More...
|
|
virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) override final |
| Set the IdDictionary. More...
|
|
int | get_straw_layer_hash_calc (const ExpandedIdentifier &id, IdentifierHash &hash_id) const |
| Special method for timing tests. More...
|
|
void | get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context=0) const |
|
void | test_trt_ids (void) |
| Tests of packing. More...
|
|
void | barrel_ec_id_checks (int barrel_ec) const |
|
void | module_id_checks (int barrel_ec, int phi_module, int layer_or_wheel) const |
|
void | straw_id_checks (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const |
|
void | layer_id_checks (int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const |
|
int | initLevelsFromDict (void) |
|
void | init_hashes (void) |
|
IdentifierHash | straw_hash_bin (Identifier straw_id) const |
|
void | invalidMessage () const |
|
@class TRT_ID
@brief This is an Identifier helper class for the TRT
subdetector. This class is a factory for creating compact
Identifier objects and IdentifierHash or hash ids. And it also
allows decoding of these ids.
For the TRT there are four different identifiers that one may
define, where each one defines only a certain number of "levels"
for the identifier:
- barrel/endcap: levels indet/trt/b_ec
- module or wheel: b_ec + /phi module/layer or wheel
- straw layer: previous + straw layer within a module/wheel
- straw: previous + straw number within a layer
.
Definition and the range of values for the levels of the
identifier are:
@verbatim
** element range meaning ** ----— --— ----— ** ** barrel_ec +/- 1 positive/negative barrel ** +/- 2 positive/negative endcap ** 0 to 17 endcap wheel range ** phi module 0 to 31 for barrel modular geometry ** 0 for barrel "simple layer" geometry ** 0 to 31 for endcap ** layer or wheel 0 to 2 barrel module layer number ** 0 to 72 is straw layer for barrel "simple layer" geometry ** straw_layer 0 to 18 (19) for barrel module 0 for modular (layer) geometry ** 0 to 23 for barrel module 1 " " "
** 0 to 29 (28) for barrel module 2 " " " ** 0 for barrel "simple layer" geometry ** 0 to 15 or 7 for ec (middle modules have 8 layers, ** 224 total layers in ec) ** straw 0 to <28 for barrel, depends upon layer ** 0 to <981 for barrel "simple layer" geometry ** 0 to <23 for ec (fewer for last 4 modules/wheels due ** to smaller inner radius) **
Definition at line 83 of file TRT_ID.h.
◆ const_expanded_id_iterator
◆ const_id_iterator
◆ hash_vec
◆ hash_vec_it
◆ hashCalcMap
◆ intPair
◆ size_type
◆ 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
◆ MODULE_RANGE
Enumerator |
---|
NUMBER_OF_EC_MODULES | |
Definition at line 288 of file TRT_ID.h.
◆ VALUES
◆ TRT_ID()
◆ ~TRT_ID()
◆ alfa_exp()
◆ alfa_field_value()
int AtlasDetectorID::alfa_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ barrel_context()
IdContext TRT_ID::barrel_context |
( |
void |
| ) |
const |
|
inline |
◆ barrel_ec()
Values of different levels (failure returns 0)
Definition at line 866 of file TRT_ID.h.
◆ barrel_ec_id() [1/2]
Identifier TRT_ID::barrel_ec_id |
( |
int |
barrel_ec | ) |
const |
|
inline |
For +/-barrel or +/-endcap id.
Definition at line 417 of file TRT_ID.h.
◆ barrel_ec_id() [2/2]
Identifier TRT_ID::barrel_ec_id |
( |
int |
barrel_ec, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ barrel_ec_id_checks()
void TRT_ID::barrel_ec_id_checks |
( |
int |
barrel_ec | ) |
const |
|
private |
Definition at line 48 of file TRT_ID.cxx.
59 log << MSG::ERROR <<
" TRT_ID::barrel_ec_id result is NOT ok. ID, range "
60 << (std::string)
id <<
" "
63 std::cout <<
" ERROR TRT_ID::barrel_ec_id result is NOT ok. ID, range "
64 << (std::string)
id <<
" "
◆ bcm_exp()
◆ bcm_field_value()
int AtlasDetectorID::bcm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ 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.
◆ 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()
◆ get_hash()
◆ get_id()
Create compact id from hash id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 892 of file TRT_ID.cxx.
916 std::cout <<
"Do not know how to calculate straw id from hash yet!!" << std::endl;
◆ get_straw_layer_hash_calc()
Special method for timing tests.
Definition at line 884 of file TRT_ID.cxx.
◆ helper()
virtual HelperType AtlasDetectorID::helper |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ 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()
void TRT_ID::init_hashes |
( |
void |
| ) |
|
|
private |
Definition at line 347 of file TRT_ID.cxx.
368 unsigned int nids = 0;
369 std::set<Identifier>
ids;
373 for (
const auto & exp_id: rit) {
377 if (!(
ids.insert(
id)).second) {
379 log << MSG::ERROR <<
" TRT_ID::init_hashes "
380 <<
" Error: duplicated id for module id. nid " << nids
382 <<
" id " << std::string(exp_id)
385 std::cout <<
" ERROR TRT_ID::init_hashes "
386 <<
" Error: duplicated id for module id. nid " << nids
388 <<
" id " << std::string(exp_id)
397 log << MSG::ERROR <<
" TRT_ID::init_hashes "
398 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
402 std::cout <<
" ERROR TRT_ID::init_hashes "
403 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
413 std::cout <<
" DEBUG TRT_ID::init_hashes "
420 std::set<Identifier>::const_iterator
first =
ids.begin();
421 std::set<Identifier>::const_iterator last =
ids.end();
435 for (
const auto & exp_id: rit) {
440 if (!(
ids.insert(
id)).second) {
442 log << MSG::ERROR <<
" TRT_ID::init_hashes "
443 <<
" Error: duplicated id for straw layer id. nid " << nids
445 <<
" id " << std::string(exp_id)
447 std::cout <<
" ERROR TRT_ID::init_hashes "
448 <<
" Error: duplicated id for straw layer id. nid " << nids
450 <<
" id " << std::string(exp_id)
460 log << MSG::ERROR <<
" TRT_ID::init_hashes "
461 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
465 std::cout <<
" ERROR TRT_ID::init_hashes "
466 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
476 std::cout <<
" DEBUG TRT_ID::init_hashes "
508 unsigned int hcIndex = 0;
552 start = lay_min * 32 + str_lay_min;
592 start = lay_min * 32 + str_lay_min;
◆ init_straw_hash_vector()
void TRT_ID::init_straw_hash_vector |
( |
void |
| ) |
|
The init will use up ~2 MB of memory, so one should do init, use straw_id and then reset.
Definition at line 635 of file TRT_ID.cxx.
644 unsigned int nids = 0;
645 std::set<Identifier>
ids;
650 for (
const auto & exp_id:rit) {
656 if (!(
ids.insert(
id)).second) {
658 log << MSG::ERROR <<
" TRT_ID::init_hashes "
659 <<
" Error: duplicated id for straw id. nid " << nids
661 <<
" id " << std::string(exp_id)
664 std::cout <<
" ERROR TRT_ID::init_hashes "
665 <<
" Error: duplicated id for straw id. nid " << nids
667 <<
" id " << std::string(exp_id)
676 log << MSG::ERROR <<
" TRT_ID::init_hashes "
677 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
681 std::cout <<
" ERROR TRT_ID::init_hashes "
682 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
692 std::cout <<
" DEBUG TRT_ID::init_hashes "
699 std::set<Identifier>::const_iterator
first =
ids.begin();
700 std::set<Identifier>::const_iterator last =
ids.end();
◆ initialize_from_dictionary()
Set the IdDictionary.
Reimplemented from AtlasDetectorID.
Definition at line 153 of file TRT_ID.cxx.
159 std::cout <<
"INFO Initialize from dictionary cout " <<
m_msgSvc << std::endl;
166 log << MSG::INFO <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
168 std::cout <<
" INFO Request to reinitialize not satisfied - tags have not changed" << std::endl;
175 std::cout <<
" DEBUG (Re)initialize" << std::endl;
196 log << MSG::ERROR <<
" TRT_ID::initialize_from_dict - cannot access InnerDetector dictionary "
199 std::cout <<
" ERROR TRT_ID::initialize_from_dict - cannot access InnerDetector dictionary "
221 log << MSG::ERROR <<
"Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
225 std::cout <<
" ERROR Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
236 log << MSG::ERROR <<
"Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
240 std::cout <<
" ERROR Could not get value for label 'barrel' of field 'barrel_endcap' in dictionary "
250 <<
"Set barrel field values: "
254 std::cout <<
" DEBUG TRT_ID::initialize_from_dict "
255 <<
"Set barrel field values: "
269 if (atlasDict->
get_label_value(
"subdet",
"InnerDetector", inDetField)) {
271 log << MSG::ERROR <<
"Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
275 std::cout <<
" ERROR Could not get value for label 'InnerDetector' of field 'subdet' in dictionary "
287 log << MSG::ERROR <<
"Could not get value for label 'TRT' of field 'part' in dictionary "
291 std::cout <<
" ERROR Could not get value for label 'TRT' of field 'part' in dictionary "
300 <<
"Found field values: InDet/TRT "
305 std::cout <<
" DEBUG TRT_ID::initialize_from_dict "
306 <<
"Found field values: InDet/TRT "
333 std::cout <<
" DEBUG TRT_ID::initialize_from_dict "
◆ initLevelsFromDict()
int TRT_ID::initLevelsFromDict |
( |
void |
| ) |
|
|
private |
Definition at line 708 of file TRT_ID.cxx.
713 log << MSG::ERROR <<
" TRT_ID::initLevelsFromDict - dictionary NOT initialized "
716 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - dictionary NOT initialized "
738 log << MSG::WARNING <<
"TRT_ID::initLevelsFromDict - unable to initialize TRT_ID helper "
740 log << MSG::WARNING <<
"TRT_ID::initLevelsFromDict - we assume that the TRT does NOT exist for this layout "
743 std::cout <<
" WARNING TRT_ID::initLevelsFromDict - unable to initialize TRT_ID helper "
745 std::cout <<
" WARNING TRT_ID::initLevelsFromDict - we assume that the TRT does NOT exist for this layout "
757 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'subdet' field "
760 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'subdet' field "
770 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'part' field "
773 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'part' field "
783 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'barrel_endcap' field "
786 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'barrel_endcap' field "
797 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'phi_sector' field "
800 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'phi_sector' field "
811 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'layer' field "
814 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'layer' field "
825 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'straw_layer' field "
828 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'straw_layer' field "
839 log << MSG::ERROR <<
"TRT_ID::initLevelsFromDict - unable to find 'straw' field "
842 std::cout <<
" ERROR TRT_ID::initLevelsFromDict - unable to find 'straw' field "
871 std::cout <<
" DEBUG decode index and bit fields for each level: " << 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.
◆ invalidMessage()
void TRT_ID::invalidMessage |
( |
| ) |
const |
|
inlineprivate |
Definition at line 843 of file TRT_ID.h.
847 log << MSG::ERROR <<
" TRT_ID is NOT valid for this layout. " <<
endmsg;
848 log << MSG::ERROR <<
" Please use 'trt_id->is_valid()' if a layout test is needed. " <<
endmsg;
850 std::cout <<
" ERROR TRT_ID is NOT valid for this layout. " << std::endl;
851 std::cout <<
" ERROR Please use 'trt_id->is_valid()' if a layout test is needed. " << std::endl;
◆ is_alfa()
bool AtlasDetectorID::is_alfa |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_barrel()
◆ is_bcm()
bool AtlasDetectorID::is_bcm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ 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_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_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_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_valid()
bool TRT_ID::is_valid |
( |
| ) |
const |
|
inline |
◆ 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_id() [1/6]
For an individual straw layer.
Definition at line 533 of file TRT_ID.h.
◆ layer_id() [2/6]
◆ layer_id() [3/6]
For an individual straw layer from straw id.
Definition at line 540 of file TRT_ID.h.
◆ layer_id() [4/6]
From hash - optimized, no checks.
Definition at line 464 of file TRT_ID.h.
◆ layer_id() [5/6]
Identifier TRT_ID::layer_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer |
|
) |
| const |
|
inline |
For an individual straw layer.
Definition at line 500 of file TRT_ID.h.
◆ layer_id() [6/6]
Identifier TRT_ID::layer_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ layer_id_checks()
void TRT_ID::layer_id_checks |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer |
|
) |
| const |
|
private |
Definition at line 125 of file TRT_ID.cxx.
140 log << MSG::ERROR <<
" TRT_ID::layer_id result is NOT ok. ID, range "
141 << (std::string)
id <<
" "
144 std::cout <<
" ERROR TRT_ID::layer_id result is NOT ok. ID, range "
145 << (std::string)
id <<
" "
◆ layer_or_wheel()
◆ 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 |
◆ module_begin()
Iterators over full set of module ids. Module ids are sorted.
Definition at line 937 of file TRT_ID.h.
◆ module_context()
IdContext TRT_ID::module_context |
( |
void |
| ) |
const |
|
inline |
◆ module_end()
◆ module_hash()
module hash from id - optimized
Definition at line 732 of file TRT_ID.h.
◆ module_hash_max()
◆ module_id() [1/3]
From hash - optimized, no checks.
Definition at line 456 of file TRT_ID.h.
◆ module_id() [2/3]
Identifier TRT_ID::module_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel |
|
) |
| const |
|
inline |
For an individual module phi sector.
Definition at line 448 of file TRT_ID.h.
◆ module_id() [3/3]
Identifier TRT_ID::module_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ module_id_checks()
void TRT_ID::module_id_checks |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel |
|
) |
| const |
|
private |
Definition at line 71 of file TRT_ID.cxx.
85 log << MSG::ERROR <<
" TRT_ID::module_id result is NOT ok. ID, range "
86 << (std::string)
id <<
" "
89 std::cout <<
" ERROR TRT_ID::module_id result is NOT ok. ID, range "
90 << (std::string)
id <<
" "
◆ 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_module()
◆ pixel()
◆ pixel_exp()
◆ pixel_field_value()
int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ 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 ");
◆ reset_straw_hash_vector()
void TRT_ID::reset_straw_hash_vector |
( |
void |
| ) |
|
◆ 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 |
◆ straw()
◆ straw_begin()
For straw ids, only expanded id iterators are available.
Use "straw_id" method to obtain a compact identifier
Definition at line 969 of file TRT_ID.h.
◆ straw_context()
IdContext TRT_ID::straw_context |
( |
void |
| ) |
const |
|
inline |
◆ straw_end()
◆ straw_hash()
straw hash from id - optimized
Definition at line 768 of file TRT_ID.h.
775 unsigned int hcIndex = 0;
781 unsigned int index =
lw * 32 + sl;
786 std::cout <<
"straw_hash: index > barrel_index size - " <<
index
795 std::cout <<
"straw_hash: index > endcap_index size - " <<
index
807 (
lw - hc.m_layerMin) * hc.m_nStrawLayers +
808 (sl - hc.m_strLayerMin) * hc.m_nstraws +
814 std::cout <<
"straw_hash: hc index > hcCalc size - " << hcIndex
◆ straw_hash_bin()
◆ straw_hash_max()
◆ straw_id() [1/8]
Create straw Identifier from expanded id, which is returned by the id_iterators.
Definition at line 592 of file TRT_ID.h.
◆ straw_id() [2/8]
◆ straw_id() [3/8]
◆ straw_id() [4/8]
◆ straw_id() [5/8]
◆ straw_id() [6/8]
Access to straw id from hash - must have done init_straw_hash_vector before using this.
Definition at line 675 of file TRT_ID.h.
◆ straw_id() [7/8]
Identifier TRT_ID::straw_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer, |
|
|
int |
straw |
|
) |
| const |
|
inline |
Three ways of getting id for a single straw:
Definition at line 581 of file TRT_ID.h.
◆ straw_id() [8/8]
Identifier TRT_ID::straw_id |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer, |
|
|
int |
straw, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ straw_id_checks()
void TRT_ID::straw_id_checks |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
int |
layer_or_wheel, |
|
|
int |
straw_layer, |
|
|
int |
straw |
|
) |
| const |
|
private |
Definition at line 97 of file TRT_ID.cxx.
113 log << MSG::ERROR <<
" TRT_ID::straw_id result is NOT ok. ID, range "
114 << (std::string)
id <<
" "
117 log << MSG::ERROR <<
" TRT_ID::straw_id result is NOT ok. ID, range "
118 << (std::string)
id <<
" "
◆ straw_layer()
◆ straw_layer_begin()
Iterators over full set of straw_layer ids. Straw_layer ids are sorted.
Definition at line 953 of file TRT_ID.h.
◆ straw_layer_context()
IdContext TRT_ID::straw_layer_context |
( |
void |
| ) |
const |
|
inline |
straw_layer id
Definition at line 713 of file TRT_ID.h.
◆ straw_layer_end()
◆ straw_layer_hash()
straw_layer hash from id - optimized
Definition at line 750 of file TRT_ID.h.
◆ straw_layer_hash_max()
◆ straw_layer_max()
Max values for each field (-999 == failure)
Definition at line 975 of file TRT_ID.cxx.
984 if (
range.match(expId)) {
986 if (not
field.empty()) {
◆ straw_max()
◆ subdet_context()
IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ test_trt_ids()
void TRT_ID::test_trt_ids |
( |
void |
| ) |
|
Tests of packing.
Definition at line 1015 of file TRT_ID.cxx.
1033 std::cout <<
"test_trt_ids - bad match: id, bin hash, hash: "
1043 std::cout <<
"test_trt_ids - bad match: id, bin hash, hash: "
1051 if (
i % 10000 == 5) {
1052 std::cout <<
"test_trt_ids: id, bin hash, hash: "
1060 std::cout <<
"Checked hash calculation for " << nids <<
" hashes and found "
1061 << nidsFailed <<
" failures to match between binary lookup and calculation "
1079 log << MSG::ERROR <<
"TRT_ID::test_trt_ids: module new and old compacts not equal. New/old/expanded ids "
1082 << (std::string) exp_id <<
endmsg;
1084 std::cout <<
" ERROR TRT_ID::test_trt_ids: module new and old compacts not equal. New/old/expanded ids "
1087 << (std::string) exp_id << std::endl;
1092 if (
get_hash(
id, hashId, &context)) {
1094 log << MSG::ERROR <<
"Unable to set trt hash id for det elem "
1098 std::cout <<
" ERROR Unable to set trt hash id for det elem "
1107 log << MSG::ERROR <<
"TRT_ID::test_trt_ids: module new and old compacts not equal. New/old/hash ids "
1111 << hashId << MSG::dec
1114 std::cout <<
" ERROR TRT_ID::test_trt_ids: module new and old compacts not equal. New/old/hash ids "
1118 << hashId << std::dec
1138 log << MSG::ERROR <<
"TRT_ID::test_trt_ids: straw layer new and old compacts not equal. New/old/expanded ids "
1140 << (std::string) exp_id <<
endmsg;
1142 std::cout <<
" ERROR TRT_ID::test_trt_ids: straw layer new and old compacts not equal. New/old/expanded ids "
1144 << (std::string) exp_id << std::endl;
1152 for (
int i = 0;
i < nstraws; ++
i) {
1162 log << MSG::ERROR <<
"TRT_ID::test_trt_ids: straw new and old compacts not equal. New/old/expanded ids "
1164 << (std::string) exp_id <<
endmsg;
1166 std::cout <<
" ERROR TRT_ID::test_trt_ids: straw new and old compacts not equal. New/old/expanded ids "
1168 << (std::string) exp_id << std::endl;
1175 log << MSG::INFO <<
"TRT_ID::test_trt_ids: Successful tested "
1179 std::cout <<
" INFO TRT_ID::test_trt_ids: Successful tested "
◆ 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 |
◆ 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_BCM_ID
int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_bec_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_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_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_module_range
◆ m_full_straw_layer_range
◆ m_full_straw_range
◆ m_fwd_dict
◆ m_FWD_ID
int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_hash_calcs
std::vector<HashCalc> TRT_ID::m_hash_calcs |
|
private |
◆ m_hash_calcs_barrel_indexes
std::vector<intPair> TRT_ID::m_hash_calcs_barrel_indexes |
|
private |
◆ m_hash_calcs_endcap_indexes
std::vector<intPair> TRT_ID::m_hash_calcs_endcap_indexes |
|
private |
◆ 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_is_valid
◆ 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_wheel_impl
◆ m_LAYER_OR_WHEEL_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_module_hash_max
◆ m_module_vec
◆ 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_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_phi_mod_impl
◆ m_PHI_MODULE_INDEX
◆ m_PIXEL_ID
int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ 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_str_lay_impl
◆ m_straw_hash_max
◆ m_straw_impl
◆ m_STRAW_INDEX
◆ m_straw_layer_hash_max
◆ m_STRAW_LAYER_INDEX
◆ m_straw_layer_vec
◆ m_straw_vec
◆ 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_trt_impl
◆ m_TRT_INDEX
◆ m_trt_region_index
◆ 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
IdDictFieldImplementation m_bec_impl
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.
size_type m_LAYER_OR_WHEEL_INDEX
bool is_forward(Identifier id) const
MultiRange m_full_straw_range
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
MultiRange build_multirange() const
Get MultiRange for full dictionary.
std::vector< unsigned int > m_muon_tech_bits
size_type m_trt_region_index
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< HashCalc > m_hash_calcs
size_type m_PHI_MODULE_INDEX
void module_id_checks(int barrel_ec, int phi_module, int layer_or_wheel) const
IdDictFieldImplementation m_indet_part_impl
int straw_max(const Identifier &id) const
hash_vec::const_iterator hash_vec_it
MultiRange m_full_straw_layer_range
size_type m_STRAW_LAYER_INDEX
void reset_straw_hash_vector(void)
int initLevelsFromDict(void)
IdDictFieldImplementation m_phi_mod_impl
IdentifierHash straw_hash(Identifier straw_id) const
straw hash from id - optimized
bool is_lar_fcal(Identifier id) const
identifier_factory factory_begin()
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
IdContext module_context(void) const
module id
hash_vec m_straw_layer_vec
identifier_factory factory_end()
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
size_type cardinalityUpTo(const ExpandedIdentifier &id) const
void barrel_ec_id_checks(int barrel_ec) const
size_type end_index() const
int calo_field_value() const
size_type m_BARREL_EC_INDEX
IdDictFieldImplementation m_trt_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 m_do_checks
Flag for subclasses to know whether or not to perform checks.
Identifier barrel_ec_id(int barrel_ec) const
For +/-barrel or +/-endcap id.
std::vector< Identifier >::const_iterator const_id_iterator
int trt_field_value() const
int lar_field_value() const
This class provides conversion from CSC RDO data to CSC Digits.
size_type m_straw_hash_max
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
IdDictFieldImplementation m_str_lay_impl
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
const IdDictDictionary * m_dict
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
void init_straw_hash_vector(void)
The init will use up ~2 MB of memory, so one should do init, use straw_id and then reset.
IdentifierHash module_hash(Identifier module_id) const
module hash from id - optimized
std::vector< intPair > m_hash_calcs_barrel_indexes
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
bool match(element_type value) const
The basic match operation.
Range::field m_tile_dm_field
size_type begin_index() const
int straw(const Identifier &id) const
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
size_type m_module_hash_max
IdContext straw_context(void) const
straw id
msgSvc
Provide convenience handles for various services.
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)
IdDictDictionary * m_calo_dict
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
IdentifierHash straw_hash_bin(Identifier straw_id) const
size_type m_straw_layer_hash_max
IdContext straw_layer_context(void) const
straw_layer id
void straw_id_checks(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
bool is_tile_dm(Identifier id) const
std::vector< IdDictRegion * > m_regions
IdDictFieldImplementation m_indet_impl
IdDictDictionary * m_fwd_dict
bool is_tile(Identifier id) const
void get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context=0) const
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
Range::field m_lvl1_onl_field
int layer_or_wheel(const Identifier &id) 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
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
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
std::vector< intPair > m_hash_calcs_endcap_indexes
IdDictDictionary * m_indet_dict
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
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
ExpandedIdentifier fwd_exp(void) const
int phi_module(const Identifier &id) const
IdDictFieldImplementation m_muon_station_name_impl
MultiRange m_full_module_range
int match(const ExpandedIdentifier &id) const
Match an identifier.
IdDictFieldImplementation m_straw_impl
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.
bool is_barrel(const Identifier &id) const
Test for barrel.
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
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
std::string m_nm
Message source name.
void layer_id_checks(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
void clear()
Erase all fields.
IdDictFieldImplementation m_lay_wheel_impl
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
void invalidMessage() const
Range::field m_barrel_field
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...
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
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)
IdentifierHash straw_layer_hash(Identifier straw_layer_id) const
straw_layer hash from id - optimized
Range::field m_lvl1_field
Identifier module_id(int barrel_ec, int phi_module, int layer_or_wheel) const
For an individual module phi sector.
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw: