 |
ATLAS Offline Software
|
Helper class for TileCal online (hardware) identifiers.
More...
#include <TileHWID.h>
|
| enum | SECTION { TILE_ONLINE = TileID::ONLINE
} |
| | Identifier numbering. More...
|
| |
| enum | ROSID {
BEAM_ROS = 0,
BARREL_POS = 1,
BARREL_NEG = 2,
EXTBAR_POS = 3,
EXTBAR_NEG = 4
} |
| |
| enum | GAIN { LOWGAIN = TileID::LOWGAIN,
HIGHGAIN = TileID::HIGHGAIN
} |
| |
| enum | { NOT_VALID_HASH = 64000
} |
| |
| typedef Identifier::size_type | size_type |
| |
| 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...
|
| |
|
| | TileHWID () |
| | Default constructor. More...
|
| |
| virtual | ~TileHWID () |
| | Default destructor. More...
|
| |
| HWIdentifier | tilehw_id () const |
| | online identifer for whole Tile More...
|
| |
| HWIdentifier | ros_id (int ros) const |
| | ROS HWIdentifer. More...
|
| |
| HWIdentifier | drawer_id (int frag) const |
| | ROS HWIdentifer. More...
|
| |
| HWIdentifier | drawer_id (int ros, int drawer) const |
| | drawer HWIdentifer More...
|
| |
| HWIdentifier | channel_id (int ros, int drawer, int channel) const |
| | channel HWIdentifer More...
|
| |
| HWIdentifier | adc_id (int ros, int drawer, int channel, int adc) const |
| | adc HWIdentifer More...
|
| |
| HWIdentifier | drawer_id (const HWIdentifier &id) const |
| | extract drawer ID from adc ID or channel ID More...
|
| |
| HWIdentifier | channel_id (const HWIdentifier &id) const |
| | extract channel ID from adc ID More...
|
| |
| HWIdentifier | channel_id (const HWIdentifier &id, int channel) const |
| | create channel ID from drawer ID More...
|
| |
| HWIdentifier | adc_id (const HWIdentifier &id, int channel, int adc) const |
| | create adc ID from drawer ID More...
|
| |
| HWIdentifier | adc_id (const HWIdentifier &id, int adc) const |
| | create adc ID from channel ID More...
|
| |
| HWIdentifier | channel_id (IdentifierHash hash_id) const |
| | create channel ID from channel hash ID More...
|
| |
| HWIdentifier | adc_id (IdentifierHash hash_id, int adc) const |
| | create adc ID from channel hash ID More...
|
| |
| bool | is_tilehw (const HWIdentifier &id) const |
| | Test ID for Tile online ID. More...
|
| |
| bool | is_low_gain (const HWIdentifier &id) const |
| | Test ID for low gain. More...
|
| |
| bool | is_high_gain (const HWIdentifier &id) const |
| | Test ID for high gain. More...
|
| |
| int | system (const HWIdentifier &id) const |
| | extract system field from HW identifier More...
|
| |
| int | section (const HWIdentifier &id) const |
| | extract section field from HW identifier More...
|
| |
| int | ros (const HWIdentifier &id) const |
| | extract ros field from HW identifier More...
|
| |
| int | drawer (const HWIdentifier &id) const |
| | extract drawer field from HW identifier More...
|
| |
| int | drawerIdx (const HWIdentifier &id) const |
| | construct drawer index from HW identifier More...
|
| |
| int | frag (const HWIdentifier &id) const |
| | extract frag field from HW identifier More...
|
| |
| int | frag (int ros, int drawer) const |
| | make frag from ROS and drawer More...
|
| |
| int | channel (const HWIdentifier &id) const |
| | extract channel field from HW identifier More...
|
| |
| int | adc (const HWIdentifier &id) const |
| | extract adc field from HW identifier More...
|
| |
| std::string | to_string (const HWIdentifier &id, int level=0) const |
| | extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id, unsigned int last=99 ) const; More...
|
| |
| IdContext | ros_context () const |
| | access to IdContext's which define which levels of fields are contained in the id More...
|
| |
| IdContext | drawer_context () const |
| | idContext for drawers More...
|
| |
| IdContext | channel_context () const |
| | idContext for channels More...
|
| |
| IdContext | adc_context () const |
| | idContext for ADCs More...
|
| |
| virtual int | get_id (const IdentifierHash &hash_id, HWIdentifier &id, const IdContext *context=0) const |
| | create compact HW ID from hash id (return == 0 for OK) More...
|
| |
| virtual int | get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const |
| | create compact ID from hash id (return == 0 for OK) More...
|
| |
| virtual IdentifierHash | get_hash (const HWIdentifier &id) const |
| | create hash id from compact ADC id without error checking More...
|
| |
| virtual int | get_hash (const HWIdentifier &id, IdentifierHash &hash_id, const IdContext *context=0) const |
| | create hash id from compact HW id (return == 0 for OK) More...
|
| |
| virtual int | get_hash (const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const |
| | create hash id from compact id (return == 0 for OK) More...
|
| |
| virtual IdentifierHash | get_channel_hash (const HWIdentifier &id) const |
| | create hash id from compact Channel id More...
|
| |
| virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| | initialization from the identifier dictionary More...
|
| |
| size_type | ros_hash_max () const |
| | ROS hash table max size. More...
|
| |
| size_type | drawer_hash_max () const |
| | drawer hash table max size More...
|
| |
| size_type | channel_hash_max () const |
| | channel hash table max size More...
|
| |
| size_type | adc_hash_max () const |
| | ADC hash table max size. More...
|
| |
| std::vector< HWIdentifier >::const_iterator | ros_begin () const |
| | begin iterator for ROS Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | ros_end () const |
| | end iterator for ROS Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | drawer_begin () const |
| | begin iterator for drawer Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | drawer_end () const |
| | end iterator for drawer Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | channel_begin () const |
| | begin iterator for channel Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | channel_end () const |
| | end iterator for channel Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | adc_begin () const |
| | begin iterator for ADC Identifiers More...
|
| |
| std::vector< HWIdentifier >::const_iterator | adc_end () const |
| | end iterator for ADC Identifiers More...
|
| |
| 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...
|
| |
|
| int | get_expanded_id (const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const |
| | create expanded Identifier from Identifier (return == 0 for OK) More...
|
| |
| int | get_field (const HWIdentifier &id, size_type index) const |
| | unpack one field from Identifier More...
|
| |
| int | initLevelsFromDict () |
| |
| int | init_hashes () |
| |
| bool | drawer_id (const HWIdentifier &ros_id, int drawer, HWIdentifier &drawer_id) |
| |
| bool | channel_id (const HWIdentifier &ros_id, int drawer, int channel, HWIdentifier &channel_id) |
| |
| bool | channel_id (const HWIdentifier &drawer_id, int channel, HWIdentifier &channel_id) |
| |
| bool | adc_id (const HWIdentifier &channel_id, int adc, HWIdentifier &adc_id) |
| |
| int | fill_vec (std::set< HWIdentifier > &ids, unsigned int hash_max, std::vector< HWIdentifier > &vec) |
| |
| void | initMessaging () const |
| | Initialize our message level and MessageSvc. More...
|
| |
Helper class for TileCal online (hardware) identifiers.
- Author
- Alexander Solodkov
This class provides an interface to generate hardware identifier or a range for the Tile Calorimeter detector subsystem.
Definition and the range of values for the elements of the identifier:
element range meaning
------- ----- -------
ros 1 to 4 ReadOutSystem number ( 1,2 = pos/neg Barrel (side A/C)
3,4 = pos/neg Ext.Barrel (side A/C) )
drawer 0 to 63 64 drawers (modules) in one cylinder (phi-slices)
channel 0 to 47 channel number in the drawer
adc 0 to 1 ADC number for the channel (0 = low gain, 1 = high gain)
Definition at line 49 of file TileHWID.h.
◆ size_type
◆ anonymous enum
◆ GAIN
| Enumerator |
|---|
| LOWGAIN | |
| HIGHGAIN | |
Definition at line 72 of file TileHWID.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 55 of file AtlasDetectorID.h.
60 LArEM, LArFCal, LArFCalSuperCell,
61 LArHEC, LArHEC_SuperCell, LARMiniFCal,
65 LArOnline, LArOnlineSuperCell,
67 LArElectrode, LArHVLine,
68 TileHardware, TileTestbeam,
75 LUCID, LUCID_Hardware,
◆ ID
◆ ROSID
| Enumerator |
|---|
| BEAM_ROS | |
| BARREL_POS | |
| BARREL_NEG | |
| EXTBAR_POS | |
| EXTBAR_NEG | |
Definition at line 67 of file TileHWID.h.
◆ SECTION
◆ TileHWID()
◆ ~TileHWID()
◆ adc()
extract adc field from HW identifier
Definition at line 193 of file TileHWID.h.
◆ adc_begin()
| std::vector<HWIdentifier>::const_iterator TileHWID::adc_begin |
( |
| ) |
const |
|
inline |
◆ adc_context()
◆ adc_end()
| std::vector<HWIdentifier>::const_iterator TileHWID::adc_end |
( |
| ) |
const |
|
inline |
◆ adc_hash_max()
ADC hash table max size.
Definition at line 276 of file TileHWID.h.
◆ adc_id() [1/5]
◆ adc_id() [2/5]
create adc ID from channel ID
Definition at line 320 of file TileHWID.cxx.
337 std::string errorMessage =
"TileHWID::adc_id(channel_id,adc) result is not OK: ID = "
338 + compactId.getString() ;
348 std::string errorMessage =
"TileHWID::adc_id() result is not OK: ID, range = "
◆ adc_id() [3/5]
create adc ID from drawer ID
Definition at line 360 of file TileHWID.cxx.
378 std::string errorMessage =
"TileHWID::adc_id(drawer_id,channel,adc) result is not OK: ID = "
379 + compactId.getString() ;
389 std::string errorMessage =
"TileHWID::adc_id() result is not OK: ID, range = "
◆ adc_id() [4/5]
create adc ID from channel hash ID
validity of the hash_id is not checked, assuming that it is done outside
Definition at line 137 of file TileHWID.h.
◆ adc_id() [5/5]
| HWIdentifier TileHWID::adc_id |
( |
int |
ros, |
|
|
int |
drawer, |
|
|
int |
channel, |
|
|
int |
adc |
|
) |
| const |
adc HWIdentifer
Definition at line 231 of file TileHWID.cxx.
250 std::string errorMessage =
"TileHWID::adc_id() result is not OK: ID, range = "
◆ alfa_exp()
◆ alfa_field_value()
| int AtlasDetectorID::alfa_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ 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 |
◆ channel()
extract channel field from HW identifier
Definition at line 189 of file TileHWID.h.
◆ channel_begin()
| std::vector<HWIdentifier>::const_iterator TileHWID::channel_begin |
( |
| ) |
const |
|
inline |
◆ channel_context()
| IdContext TileHWID::channel_context |
( |
| ) |
const |
◆ channel_end()
| std::vector<HWIdentifier>::const_iterator TileHWID::channel_end |
( |
| ) |
const |
|
inline |
◆ channel_hash_max()
| size_type TileHWID::channel_hash_max |
( |
| ) |
const |
|
inline |
channel hash table max size
Definition at line 272 of file TileHWID.h.
◆ channel_id() [1/6]
◆ channel_id() [2/6]
extract channel ID from adc ID
Definition at line 272 of file TileHWID.cxx.
◆ channel_id() [3/6]
create channel ID from drawer ID
Definition at line 280 of file TileHWID.cxx.
297 std::string errorMessage =
"TileHWID::channel_id(drawer_id,channel) result is not OK: ID = "
298 + compactId.getString() ;
308 std::string errorMessage =
"TileHWID::channel_id() result is not OK: ID, range = "
◆ channel_id() [4/6]
◆ channel_id() [5/6]
create channel ID from channel hash ID
validity of the hash_id is not checked, assuming that it is done outside
Definition at line 130 of file TileHWID.h.
◆ channel_id() [6/6]
| HWIdentifier TileHWID::channel_id |
( |
int |
ros, |
|
|
int |
drawer, |
|
|
int |
channel |
|
) |
| const |
channel HWIdentifer
Definition at line 201 of file TileHWID.cxx.
219 std::string errorMessage =
"TileHWID::channel_id() result is not OK: ID, range = "
◆ 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 |
◆ 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 476 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 483 of file AtlasDetectorID.cxx.
◆ drawer()
extract drawer field from HW identifier
Definition at line 171 of file TileHWID.h.
◆ drawer_begin()
| std::vector<HWIdentifier>::const_iterator TileHWID::drawer_begin |
( |
| ) |
const |
|
inline |
◆ drawer_context()
◆ drawer_end()
| std::vector<HWIdentifier>::const_iterator TileHWID::drawer_end |
( |
| ) |
const |
|
inline |
◆ drawer_hash_max()
| size_type TileHWID::drawer_hash_max |
( |
| ) |
const |
|
inline |
drawer hash table max size
Definition at line 268 of file TileHWID.h.
◆ drawer_id() [1/4]
extract drawer ID from adc ID or channel ID
Definition at line 262 of file TileHWID.cxx.
◆ drawer_id() [2/4]
◆ drawer_id() [3/4]
◆ drawer_id() [4/4]
| HWIdentifier TileHWID::drawer_id |
( |
int |
ros, |
|
|
int |
drawer |
|
) |
| const |
drawer HWIdentifer
Definition at line 160 of file TileHWID.cxx.
177 std::string errorMessage =
"TileHWID::drawer_id() result is not OK: ID, range = "
◆ drawerIdx()
construct drawer index from HW identifier
Definition at line 175 of file TileHWID.h.
◆ file_names()
| const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ fill_vec()
Definition at line 921 of file TileHWID.cxx.
925 if(
ids.size() != hash_max) {
928 log << MSG::ERROR <<
"fill_vec "
929 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
930 <<
" hash max " << hash_max
936 vec.resize(hash_max);
938 std::set<HWIdentifier>::const_iterator
first =
ids.begin();
939 std::set<HWIdentifier>::const_iterator last =
ids.end();
◆ 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 |
◆ frag() [1/2]
extract frag field from HW identifier
Definition at line 181 of file TileHWID.h.
181 {
return ((
ros(
id) << 8) |
drawer(
id)); }
◆ frag() [2/2]
| int TileHWID::frag |
( |
int |
ros, |
|
|
int |
drawer |
|
) |
| const |
|
inline |
make frag from ROS and drawer
Definition at line 185 of file TileHWID.h.
◆ fwd_exp()
◆ get_channel_hash()
create hash id from compact Channel id
Definition at line 592 of file TileHWID.cxx.
◆ get_expanded_id()
◆ get_field()
◆ get_hash() [1/3]
create hash id from compact ADC id without error checking
Definition at line 546 of file TileHWID.cxx.
548 std::vector<HWIdentifier>::const_iterator
it = std::lower_bound(
m_adc_vec.begin(),
m_adc_vec.end(),
id);
◆ get_hash() [2/3]
create hash id from compact HW id (return == 0 for OK)
Definition at line 552 of file TileHWID.cxx.
563 std::vector<HWIdentifier>::const_iterator
it = std::lower_bound(
m_adc_vec.begin(),
m_adc_vec.end(),
id);
581 std::vector<HWIdentifier>::const_iterator
it = std::lower_bound(
m_ros_vec.begin(),
m_ros_vec.end(),
id);
◆ get_hash() [3/3]
◆ get_id() [1/2]
create compact HW ID from hash id (return == 0 for OK)
Definition at line 493 of file TileHWID.cxx.
510 log << MSG::ERROR <<
"get_id: hwadc hash_id out of range " << hash_id
519 log << MSG::ERROR <<
"get_id: channel hash_id is out of range "
528 log << MSG::ERROR <<
"get_id: drawer hash_id is out of range " << hash_id
537 log << MSG::ERROR <<
"get_id: ROS hash_id is out of range " << hash_id
◆ get_id() [2/2]
◆ group()
| const std::string & AtlasDetectorID::group |
( |
| ) |
const |
|
inherited |
◆ 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 606 of file AtlasDetectorID.h.
◆ init_hashes()
| int TileHWID::init_hashes |
( |
| ) |
|
|
private |
Definition at line 819 of file TileHWID.cxx.
824 unsigned int nids = 0;
825 std::set<HWIdentifier>
ids;
829 for (
const auto & exp_id : rit) {
831 if(!(
ids.insert(
id)).second){
832 log << MSG::ERROR <<
"init_hashes "
833 <<
" Error: duplicated id for ros id. nids= " << nids
849 for (
const auto & exp_id:rit) {
852 if(!(
ids.insert(
id)).second){
853 log << MSG::ERROR <<
"init_hashes "
854 <<
" Error: duplicated id for drawer id. nids= " << nids
870 for (
const auto & exp_id:rit) {
874 if(!(
ids.insert(
id)).second){
875 log << MSG::ERROR <<
"init_hashes "
876 <<
" Error: duplicated id for channel id. nids= " << nids
892 for (
const auto & exp_id : rit) {
897 if(!(
ids.insert(
id)).second){
898 log << MSG::ERROR <<
"init_hashes "
899 <<
" Error: duplicated id for adc id. nids= " << nids
◆ initialize_from_dictionary()
| int TileHWID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
virtual |
initialization from the identifier dictionary
Reimplemented from AtlasDetectorID.
Definition at line 603 of file TileHWID.cxx.
610 log <<
MSG::DEBUG <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
627 log << MSG::ERROR <<
"cannot access TileCalorimeter dictionary" <<
endmsg;
638 if (atlasDict->
get_label_value(
"subdet",
"TileCalorimeter", tileField)) {
639 log << MSG::ERROR <<
"Could not get value for label 'TileCalorimeter' of field 'subdet' in dictionary "
646 int tilehwField = -1;
648 log << MSG::ERROR <<
"Could not get value for label 'Online' of field 'section' in dictionary "
662 reg_id.
add(tileField);
663 reg_id.
add(tilehwField);
◆ initLevelsFromDict()
| int TileHWID::initLevelsFromDict |
( |
| ) |
|
|
private |
Definition at line 705 of file TileHWID.cxx.
710 log << MSG::ERROR <<
"initLevelsFromDict - dictionary NOT initialized "
727 log << MSG::ERROR <<
"initLevelsFromDict - unable to find tile region index: expId, reg "
739 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'subdet' field "
749 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'section' field "
759 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'ros' field "
769 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'drawer' field "
779 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'channel' field "
789 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'gain' field "
808 log <<
MSG::DEBUG <<
"initLevelsFromDict decode index and bit fields for each level: " <<
endmsg ;
◆ 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_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_high_gain()
◆ 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_low_gain()
◆ 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_tilehw()
◆ 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 |
◆ 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 |
◆ 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 427 of file AtlasDetectorID.cxx.
434 unsigned int max_index = (context) ? context->
end_index() : 999;
458 ATH_MSG_WARNING(__func__<<
":"<<__LINE__<<
" No dictionary could be associated to "<<
id);
◆ register_dict_tag()
| int AtlasDetectorID::register_dict_tag |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 221 of file AtlasDetectorID.cxx.
232 ATH_MSG_ERROR(
"reinitialize: dict names and tags vectors not the same length ");
◆ ros()
extract ros field from HW identifier
Definition at line 167 of file TileHWID.h.
◆ ros_begin()
| std::vector<HWIdentifier>::const_iterator TileHWID::ros_begin |
( |
| ) |
const |
|
inline |
◆ ros_context()
access to IdContext's which define which levels of fields are contained in the id
idContext for ROSes
Definition at line 466 of file TileHWID.cxx.
◆ ros_end()
| std::vector<HWIdentifier>::const_iterator TileHWID::ros_end |
( |
| ) |
const |
|
inline |
◆ ros_hash_max()
ROS hash table max size.
Definition at line 264 of file TileHWID.h.
◆ ros_id()
ROS HWIdentifer.
Definition at line 132 of file TileHWID.cxx.
148 std::string errorMessage =
"TileHWID::ros_id() result is not OK: ID, range = "
◆ rpc()
◆ rpc_field_value()
| int AtlasDetectorID::rpc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sct()
◆ sct_exp()
◆ sct_field_value()
| int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ section()
extract section field from HW identifier
Definition at line 163 of file TileHWID.h.
◆ 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 359 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 365 of file AtlasDetectorID.cxx.
368 std::string
result(
"Unable to decode id");
369 unsigned int max_index = (context) ? context->
end_index() : 999;
371 if (!
id.is_valid()) {
403 if (dict->unpack(
m_group, compact,
prefix, max_index, expId)) {
411 for (
unsigned int i = 0;
i < expId.fields(); ++
i) {
◆ stgc()
◆ stgc_field_value()
| int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
| IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ system()
extract system field from HW identifier
Definition at line 159 of file TileHWID.h.
◆ 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 |
◆ tilehw_id()
◆ to_range()
◆ to_string()
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id, unsigned int last=99 ) const;
convert HW identifier to string
Definition at line 52 of file TileHWID.cxx.
62 return "TileHWID::to_string - unknown context";
67 return "TileHWID::to_string - can not expand ID";
69 return (std::string)(exp_id);
◆ 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_adc_hash_max
◆ m_adc_impl
◆ m_ADC_INDEX
◆ m_adc_vec
◆ m_ALFA_ID
| int AtlasDetectorID::m_ALFA_ID {1} |
|
privateinherited |
◆ m_atlas_dict
◆ m_base_tile_ros
◆ m_BCM_ID
| int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_calo_dict
◆ m_CALO_ID
| int AtlasDetectorID::m_CALO_ID {10} |
|
privateinherited |
◆ m_calo_side_impl
◆ m_channel_hash_max
◆ m_channel_impl
◆ m_CHANNEL_INDEX
◆ m_channel_vec
◆ 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 363 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 366 of file AtlasDetectorID.h.
◆ m_drawer_hash_max
◆ m_drawer_impl
◆ m_DRAWER_INDEX
◆ m_drawer_vec
◆ m_file_names
| std::vector<std::string> AtlasDetectorID::m_file_names |
|
protectedinherited |
List of dictionary file names used by this helper.
Definition at line 379 of file AtlasDetectorID.h.
◆ m_full_adc_range
◆ m_full_channel_range
◆ m_full_drawer_range
◆ m_full_ros_range
◆ m_fwd_dict
◆ m_FWD_ID
| int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_group
| std::string AtlasDetectorID::m_group |
|
protectedinherited |
◆ 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_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_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_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_PIXEL_ID
| int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_quiet
| bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_ros_hash_max
◆ m_ros_impl
◆ m_ROS_INDEX
◆ m_ros_vec
◆ m_RPC_ID
| int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_SCT_ID
| int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_section_impl
◆ m_SECTION_INDEX
◆ m_STGC_ID
| int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
| size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_system_impl
◆ m_SYSTEM_INDEX
◆ 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_tile_region_index
◆ m_TRT_ID
| int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ 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.
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
HWIdentifier ros_id(int ros) const
ROS HWIdentifer.
const IdDictDictionary * m_tile_dict
bool is_forward(Identifier id) const
MultiRange build_multirange() const
Get MultiRange for full dictionary.
std::vector< unsigned int > m_muon_tech_bits
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
IdContext adc_context() const
idContext for ADCs
IdDictFieldImplementation m_indet_part_impl
virtual int get_id(const IdentifierHash &hash_id, HWIdentifier &id, const IdContext *context=0) const
create compact HW ID from hash id (return == 0 for OK)
const std::string & version() const
Dictionary version.
int fill_vec(std::set< HWIdentifier > &ids, unsigned int hash_max, std::vector< HWIdentifier > &vec)
bool is_lar_fcal(Identifier id) const
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
IdDictFieldImplementation m_section_impl
const IdDictRegion & region(size_t i) const
Region at index i.
AtlasDetectorID(const std::string &name, const std::string &group)
std::vector< HWIdentifier > m_ros_vec
size_type end_index() const
int calo_field_value() const
void add(element_type value)
Append a value into a new field.
bool is_tilehw(const HWIdentifier &id) const
Test ID for Tile online ID.
void pack(int value, Identifier &id) const
IdDictFieldImplementation m_channel_impl
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
std::vector< size_t > vec
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
size_type m_SECTION_INDEX
static constexpr value_type MAX_BIT
const std::string & name() const
Dictionary name.
int lar_field_value() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
const std::string & file_name() const
Access to file name.
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
ExpandedIdentifier tile_exp(void) const
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
IdDictFieldImplementation m_ros_impl
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
std::vector< HWIdentifier > m_adc_vec
const IdDictDictionary * m_calo_dict
IdDictFieldImplementation m_adc_impl
const IdDictFieldImplementation & implementation(size_t i) const
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Range::field m_tile_dm_field
size_type begin_index() const
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
msgSvc
Provide convenience handles for various services.
int section(const HWIdentifier &id) const
extract section field from HW identifier
std::string m_group
Group name.
const IdDictDictionary * m_lar_dict
size_type m_channel_hash_max
virtual IdentifierHash get_hash(const HWIdentifier &id) const
create hash id from compact ADC id without error checking
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
IdContext ros_context() const
access to IdContext's which define which levels of fields are contained in the id
bool is_tile_dm(Identifier id) const
IdContext channel_context() const
idContext for channels
Exception class for Tile Identifiers.
bool is_tile(Identifier id) const
const std::string & group() const
Group name for this helper.
size_type m_CHANNEL_INDEX
size_type m_tile_region_index
Range::field m_lvl1_onl_field
HWIdentifier m_base_tile_ros
bool m_quiet
If true, suppress DEBUG/INFO messages.
MsgStream & msg() const
The standard message stream.
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 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
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...
MultiRange m_full_channel_range
const ExpandedIdentifier & prefix_id() const
Accessors.
HWIdentifier drawer_id(int frag) const
ROS HWIdentifer.
HWIdentifier channel_id(int ros, int drawer, int channel) const
channel HWIdentifer
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.
MultiRange m_full_ros_range
MultiRange m_full_drawer_range
Range::field m_lar_dm_field
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
ExpandedIdentifier fwd_exp(void) const
IdContext drawer_context() const
idContext for drawers
IdDictFieldImplementation m_muon_station_name_impl
HWIdentifier adc_id(int ros, int drawer, int channel, int adc) const
adc HWIdentifer
int match(const ExpandedIdentifier &id) const
Match an identifier.
const IdDictDictionary * m_muon_dict
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_lar_dm(Identifier id) const
LAr/Tile dead material:
bool empty() const noexcept
bool is_muon(Identifier id) const
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
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
const std::string & dict_tag() const
Access to the dictionary tag.
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
#define ATH_MSG_WARNING(x)
IdDictFieldImplementation m_system_impl
const IdDictDictionary * m_dict
std::string m_nm
Message source name.
std::vector< HWIdentifier > m_channel_vec
int get_expanded_id(const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
MultiRange m_full_adc_range
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)
std::vector< HWIdentifier > m_drawer_vec
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.
size_type m_drawer_hash_max
IdDictFieldImplementation m_drawer_impl
Range::field m_lvl1_field
const IdDictDictionary * m_indet_dict
const IdDictDictionary * m_fwd_dict