 |
ATLAS Offline Software
|
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
More...
#include <TileTBID.h>
|
| enum | SECTION { TILE_TESTBEAM = 4
} |
| | Identifier numbering. More...
|
| |
| enum | RO_TYPE {
PROTO_TYPE = 2,
ADC_TYPE = 3,
TDC_TYPE = 4,
FADC_TYPE = 5,
INT_TYPE = 6
} |
| |
| enum | DET_NUM {
S_COUNTER = 0,
CIS_PAR = 0,
CH_COUNTER = 1,
PATTERN_UNIT = 1,
LASER = 2,
BACK_WALL = 3,
SIDE_WALL = 4,
CRACK_WALL = 5,
PHANTOM_CALO = 6
} |
| |
| 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...
|
| |
|
| | TileTBID () |
| | Default constructor. More...
|
| |
| virtual | ~TileTBID () |
| | Default destructor. More...
|
| |
| Identifier | tiletb_id () const |
| | identifer for all Tile testbeam detectors More...
|
| |
| Identifier | type_id (int type) const |
| | identifer for Tile testbeam detectors of a give type More...
|
| |
| Identifier | type_id (int type, bool checks) const |
| |
| Identifier | module_id (int type, int module) const |
| | identifer for one module of a Tile testbeam detector More...
|
| |
| Identifier | module_id (int type, int module, bool checks) const |
| |
| Identifier | channel_id (int type, int module, int channel) const |
| | identifer for one channel of a Tile testbeam detector More...
|
| |
| Identifier | channel_id (int type, int module, int channel, bool checks) const |
| |
| Identifier | module_id (const Identifier &id) const |
| | extract module ID from channel ID More...
|
| |
| Identifier | channel_id (const Identifier &id, int channel) const |
| | create channel ID from module ID More...
|
| |
| bool | is_tiletb (const Identifier &id) const |
| | Test ID if it is TileTBID. More...
|
| |
| int | system (const Identifier &id) const |
| | extract system field from TileTB identifier More...
|
| |
| int | section (const Identifier &id) const |
| | extract section field from TileTB identifier More...
|
| |
| int | type (const Identifier &id) const |
| | extract type field from TileTB identifier More...
|
| |
| int | module (const Identifier &id) const |
| | extract module field from TileTB identifier More...
|
| |
| int | channel (const Identifier &id) const |
| | extract channel field from TileTB identifier More...
|
| |
| int | side (const Identifier &id) const |
| | define synonyms for minimum bias scintillators More...
|
| |
| int | phi (const Identifier &id) const |
| | extract phi field from MBTS identifier More...
|
| |
| int | eta (const Identifier &id) const |
| | extract eta field from MBTS identifier More...
|
| |
| std::string | to_string (const Identifier &id, int level=0) const |
| | extract all fields from TileTB identifier Identifier get_all_fields ( const Identifier & id, unsigned int last=99 ) const; More...
|
| |
| IdContext | type_context () const |
| | access to IdContext's which define which levels of fields are contained in the id More...
|
| |
| IdContext | module_context () const |
| | idContext for modules More...
|
| |
| IdContext | channel_context () const |
| | idContext for channels 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 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 int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| | initialization from the identifier dictionary More...
|
| |
| size_type | type_hash_max () const |
| | TYPE hash table max size. More...
|
| |
| size_type | module_hash_max () const |
| | module hash table max size More...
|
| |
| size_type | channel_hash_max () const |
| | channel hash table max size More...
|
| |
| std::vector< Identifier >::const_iterator | type_begin () const |
| | begin iterator for TYPE Identifiers More...
|
| |
| std::vector< Identifier >::const_iterator | type_end () const |
| | end iterator for TYPE Identifiers More...
|
| |
| std::vector< Identifier >::const_iterator | module_begin () const |
| | begin iterator for moulde Identifiers More...
|
| |
| std::vector< Identifier >::const_iterator | module_end () const |
| | end iterator for moulde Identifiers More...
|
| |
| std::vector< Identifier >::const_iterator | channel_begin () const |
| | begin iterator for channel Identifiers More...
|
| |
| std::vector< Identifier >::const_iterator | channel_end () const |
| | begin iterator for channel 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 Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const |
| | create expanded Identifier from Identifier (return == 0 for OK) More...
|
| |
| int | get_field (const Identifier &id, size_type index) const |
| | unpack one field from Identifier More...
|
| |
| int | initLevelsFromDict () |
| |
| int | init_hashes () |
| |
| bool | module_id (const Identifier &type_id, int module, Identifier &module_id) |
| |
| bool | channel_id (const Identifier &type_id, int module, int channel, Identifier &channel_id) |
| |
| bool | channel_id (const Identifier &module_id, int channel, Identifier &channel_id) |
| |
| int | fill_vec (std::set< Identifier > &ids, unsigned int hash_max, std::vector< Identifier > &vec) |
| |
| void | initMessaging () const |
| | Initialize our message level and MessageSvc. More...
|
| |
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
- 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
------- ----- -------
type 2 to 6 Readout type
2 - prototype modules (not used now)
3 - all detectors with ADC readout
4 - all detectors with TDC readout
5 - all detectors with flash ADC readout
6 - non-detectors
module 0 to 6 For type=2 - just module number (0-4)
For type=5 - drawer number (0-5)
for (type=3) | for (type=4) | for (type=6)
0 - S1-S4 | beam ch1 (both X & Y) | CIS parameters
1 - Ch1-Ch2 | beam ch2 (both X & Y) | Pattern Unit
2 - Laser | beam ch3 (both X & Y) |
3 - back mu-wall | beam ch4 (both X & Y) |
4 - side mu-wall | extra |
5 - crack counter | |
6 - phantom calo | |
channel 0 to 63 channel number
(for beam chambers: X=0, Y=1)if TileTBID is used for minimum bias scintillators, then
type -1 or +1 - eta side
module 0 to 7 - phi slice number
channel 0 to 1 - cell number along radius
Definition at line 65 of file Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h.
◆ size_type
◆ anonymous enum
◆ DET_NUM
◆ 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
◆ RO_TYPE
◆ SECTION
◆ TileTBID()
◆ ~TileTBID()
◆ 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()
◆ channel_begin()
| std::vector<Identifier>::const_iterator TileTBID::channel_begin |
( |
| ) |
const |
|
inline |
◆ channel_context()
| IdContext TileTBID::channel_context |
( |
| ) |
const |
◆ channel_end()
| std::vector<Identifier>::const_iterator TileTBID::channel_end |
( |
| ) |
const |
|
inline |
◆ channel_hash_max()
| size_type TileTBID::channel_hash_max |
( |
| ) |
const |
|
inline |
◆ channel_id() [1/5]
create channel ID from module ID
Definition at line 213 of file TileTBID.cxx.
228 std::string errorMessage =
"TileTBID::channel_id(module_id,channel) result is not OK: ID = "
229 + compactId.getString() ;
238 std::string errorMessage =
"TileTBID::channel_id() result is not OK: ID, range = "
◆ channel_id() [2/5]
◆ channel_id() [3/5]
◆ channel_id() [4/5]
| Identifier TileTBID::channel_id |
( |
int |
type, |
|
|
int |
module, |
|
|
int |
channel |
|
) |
| const |
identifer for one channel of a Tile testbeam detector
Definition at line 198 of file TileTBID.cxx.
◆ channel_id() [5/5]
| Identifier TileTBID::channel_id |
( |
int |
type, |
|
|
int |
module, |
|
|
int |
channel, |
|
|
bool |
checks |
|
) |
| const |
Definition at line 173 of file TileTBID.cxx.
184 std::string errorMessage =
"TileTBID::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.
◆ eta()
◆ file_names()
| const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ fill_vec()
| int TileTBID::fill_vec |
( |
std::set< Identifier > & |
ids, |
|
|
unsigned int |
hash_max, |
|
|
std::vector< Identifier > & |
vec |
|
) |
| |
|
private |
Definition at line 684 of file TileTBID.cxx.
688 if(
ids.size() != hash_max) {
691 log << MSG::ERROR <<
"fill_vec "
692 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
693 <<
" hash max " << hash_max
699 vec.resize(hash_max);
701 std::set<Identifier>::const_iterator
first =
ids.begin();
702 std::set<Identifier>::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 |
◆ fwd_exp()
◆ get_expanded_id()
◆ get_field()
◆ get_hash()
◆ get_id()
create compact id from hash id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 322 of file TileTBID.cxx.
339 log << MSG::ERROR <<
"get_id: channel hash_id is out of range " << hash_id
348 log << MSG::ERROR <<
"get_id: module hash_id is out of range "
357 log << MSG::ERROR <<
"get_id: TYPE hash_id is out of range " << hash_id
◆ 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 TileTBID::init_hashes |
( |
| ) |
|
|
private |
Definition at line 605 of file TileTBID.cxx.
610 unsigned int nids = 0;
611 std::set<Identifier>
ids;
615 auto first = rit.begin();
616 auto last = rit.end();
620 if(!(
ids.insert(
id)).second){
621 log << MSG::ERROR <<
"init_hashes "
622 <<
" Error: duplicated id for type id. nids= " << nids
638 auto first = rit.begin();
639 auto last = rit.end();
644 if(!(
ids.insert(
id)).second){
645 log << MSG::ERROR <<
"init_hashes "
646 <<
" Error: duplicated id for module id. nids= " << nids
662 auto first = rit.begin();
663 auto last = rit.end();
669 if(!(
ids.insert(
id)).second){
670 log << MSG::ERROR <<
"init_hashes "
671 <<
" Error: duplicated id for channel id. nids= " << nids
◆ initialize_from_dictionary()
| int TileTBID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
virtual |
initialization from the identifier dictionary
Reimplemented from AtlasDetectorID.
Definition at line 400 of file TileTBID.cxx.
407 log <<
MSG::DEBUG <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
424 log << MSG::ERROR <<
"cannot access TileCalorimeter dictionary " <<
endmsg;
435 if (atlasDict->
get_label_value(
"subdet",
"TileCalorimeter", tileField)) {
436 log << MSG::ERROR <<
"Could not get value for label 'TileCalorimeter' of field 'subdet' in dictionary "
443 int tiletbField = -1;
445 log << MSG::ERROR <<
"Could not get value for label 'Testbeam' of field 'section' in dictionary "
459 reg_id.
add(tileField);
460 reg_id.
add(tiletbField);
◆ initLevelsFromDict()
| int TileTBID::initLevelsFromDict |
( |
| ) |
|
|
private |
Definition at line 502 of file TileTBID.cxx.
507 log << MSG::ERROR <<
"initLevelsFromDict - dictionary NOT initialized "
523 log << MSG::ERROR <<
"initLevelsFromDict - unable to find tile region index: expId, reg "
535 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'subdet' field "
545 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'section' field "
555 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'type' field "
565 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'tbmodule' field "
575 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'tbchannel' field "
594 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_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_tiletb()
◆ 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 |
◆ module()
◆ module_begin()
| std::vector<Identifier>::const_iterator TileTBID::module_begin |
( |
| ) |
const |
|
inline |
◆ module_context()
◆ module_end()
| std::vector<Identifier>::const_iterator TileTBID::module_end |
( |
| ) |
const |
|
inline |
◆ module_hash_max()
| size_type TileTBID::module_hash_max |
( |
| ) |
const |
|
inline |
◆ module_id() [1/4]
extract module ID from channel ID
Definition at line 204 of file TileTBID.cxx.
◆ module_id() [2/4]
◆ module_id() [3/4]
| Identifier TileTBID::module_id |
( |
int |
type, |
|
|
int |
module |
|
) |
| const |
identifer for one module of a Tile testbeam detector
Definition at line 164 of file TileTBID.cxx.
◆ module_id() [4/4]
| Identifier TileTBID::module_id |
( |
int |
type, |
|
|
int |
module, |
|
|
bool |
checks |
|
) |
| const |
Definition at line 140 of file TileTBID.cxx.
151 std::string errorMessage =
"TileTBID::module_id() result is not OK: ID, range = "
◆ 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()
◆ 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 ");
◆ 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()
◆ 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) {
◆ side()
◆ stgc()
◆ stgc_field_value()
| int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
| IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ system()
◆ 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 |
◆ tiletb_id()
◆ to_range()
◆ to_string()
| std::string TileTBID::to_string |
( |
const Identifier & |
id, |
|
|
int |
level = 0 |
|
) |
| const |
extract all fields from TileTB identifier Identifier get_all_fields ( const Identifier & id, unsigned int last=99 ) const;
convert TileTB identifier to string
Definition at line 50 of file TileTBID.cxx.
59 return "TileTBID::to_string - unknown context";
64 return "TileTBID::to_string - can not expand ID";
66 return (std::string)(exp_id);
◆ trt()
◆ trt_exp()
◆ trt_field_value()
| int AtlasDetectorID::trt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ type()
◆ type_begin()
| std::vector<Identifier>::const_iterator TileTBID::type_begin |
( |
| ) |
const |
|
inline |
◆ type_context()
access to IdContext's which define which levels of fields are contained in the id
idContext for TYPEs
Definition at line 302 of file TileTBID.cxx.
◆ type_end()
| std::vector<Identifier>::const_iterator TileTBID::type_end |
( |
| ) |
const |
|
inline |
◆ type_hash_max()
◆ type_id() [1/2]
identifer for Tile testbeam detectors of a give type
Definition at line 133 of file TileTBID.cxx.
◆ type_id() [2/2]
| Identifier TileTBID::type_id |
( |
int |
type, |
|
|
bool |
checks |
|
) |
| const |
Definition at line 110 of file TileTBID.cxx.
121 std::string errorMessage =
"TileTBID::type_id() result is not OK: ID, range = "
◆ zdc_exp()
◆ zdc_field_value()
| int AtlasDetectorID::zdc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_ALFA_ID
| int AtlasDetectorID::m_ALFA_ID {1} |
|
privateinherited |
◆ m_atlas_dict
◆ m_base_tile_type
◆ 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_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_channel_range
◆ m_full_module_range
◆ m_full_type_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_module_hash_max
◆ m_module_impl
◆ m_MODULE_INDEX
◆ 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_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_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_type_hash_max
◆ m_type_impl
◆ m_TYPE_INDEX
◆ m_type_vec
◆ m_ZDC_ID
| int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
std::vector< Identifier > m_module_vec
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
bool is_forward(Identifier id) const
Identifier channel_id(int type, int module, int channel) const
identifer for one channel of a Tile testbeam detector
MultiRange build_multirange() const
Get MultiRange for full dictionary.
std::vector< unsigned int > m_muon_tech_bits
size_type m_SECTION_INDEX
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Identifier module_id(int type, int module) const
identifer for one module of a Tile testbeam detector
IdDictFieldImplementation m_indet_part_impl
IdContext type_context() const
access to IdContext's which define which levels of fields are contained in the id
Identifier type_id(int type) const
identifer for Tile testbeam detectors of a give type
const std::string & version() const
Dictionary version.
bool is_lar_fcal(Identifier id) const
IdContext channel_context() const
idContext for channels
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
const IdDictRegion & region(size_t i) const
Region at index i.
AtlasDetectorID(const std::string &name, const std::string &group)
IdDictFieldImplementation m_system_impl
IdDictFieldImplementation m_section_impl
size_type end_index() const
int calo_field_value() const
void add(element_type value)
Append a value into a new field.
IdDictFieldImplementation m_channel_impl
size_type m_type_hash_max
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
IdContext module_context() const
idContext for modules
IMessageSvc * m_msgSvc
pointer to the message service
const IdDictDictionary * m_dict
std::string m_dict_version
std::vector< size_t > vec
int fill_vec(std::set< Identifier > &ids, unsigned int hash_max, std::vector< Identifier > &vec)
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
static constexpr value_type MAX_BIT
const std::string & name() const
Dictionary name.
int lar_field_value() const
int type(const Identifier &id) const
extract type field from TileTB identifier
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...
int pack32(const ExpandedIdentifier &id, size_t index1, size_t index2, Identifier &packedId) const
Pack to 32bits the subset of id between (inclusive) index1 and index2 - this is generic,...
ExpandedIdentifier tile_exp(void) const
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
bool is_lvl1_trig_towers(Identifier id) const
int module(const Identifier &id) const
extract module field from TileTB identifier
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
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.
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.
MultiRange m_full_module_range
size_type m_CHANNEL_INDEX
msgSvc
Provide convenience handles for various services.
std::string m_group
Group name.
IdDictDictionary * m_calo_dict
bool m_is_initialized_from_dict
size_type m_channel_hash_max
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
int section(const Identifier &id) const
extract section field from TileTB identifier
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
bool is_tile_dm(Identifier id) const
Identifier m_base_tile_type
IdDictDictionary * m_fwd_dict
Exception class for Tile Identifiers.
bool is_tile(Identifier id) const
const std::string & group() const
Group name for this helper.
MultiRange m_full_channel_range
Range::field m_lvl1_onl_field
bool m_quiet
If true, suppress DEBUG/INFO messages.
MsgStream & msg() const
The standard message stream.
int channel(const Identifier &id) const
extract channel field from TileTB identifier
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...
const ExpandedIdentifier & prefix_id() const
Accessors.
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
IdDictFieldImplementation m_muon_station_name_impl
size_type m_tile_region_index
struct TBPatternUnitContext Muon
IdDictFieldImplementation m_type_impl
int match(const ExpandedIdentifier &id) const
Match an identifier.
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
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)
MultiRange m_full_type_range
std::string m_nm
Message source name.
size_type m_module_hash_max
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
void initMessaging() const
Initialize our message level and MessageSvc.
size_type cardinality() const
Computes a possible cardinality from all ranges.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
std::vector< Identifier > m_channel_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.
std::vector< Identifier > m_type_vec
constexpr std::initializer_list< int > Tile
IdDictFieldImplementation m_module_impl
Range::field m_lvl1_field