 |
ATLAS Offline Software
|
Helper class for offline TT identifiers.
More...
#include <CaloLVL1_ID.h>
|
| class | HashCalc |
| | small class holding the starting hash value, the min eta and the number of phi bins of each region More...
|
| |
|
| typedef Identifier::size_type | size_type |
| |
| typedef std::vector< Identifier >::const_iterator | id_iterator |
| | Type for iterators over identifiers. More...
|
| |
| typedef boost::iterator_range< id_iterator > | id_range |
| | Type for range over identifiers. More...
|
| |
| 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...
|
| |
|
| | CaloLVL1_ID () |
| |
| virtual | ~CaloLVL1_ID () |
| |
| Identifier | tower_id (int pos_neg_z, int sampling, int region, int eta, int phi) const |
| | build a tower identifier More...
|
| |
| Identifier | tower_id (int pos_neg_z, int sampling, int region, int eta, int phi, bool checks) const |
| |
| Identifier | tower_id (const Identifier regionId, int eta, int phi) const |
| | build a tower identifier More...
|
| |
| Identifier | tower_id (const Identifier regionId, int eta, int phi, bool checks) const |
| |
| Identifier | tower_id (const Identifier layerId) const |
| | build a tower identifier More...
|
| |
| Identifier | region_id (int pos_neg_z, int sampling, int region) const |
| | build a region (of towers) identifier More...
|
| |
| Identifier | region_id (int pos_neg_z, int sampling, int region, bool checks) const |
| |
| Identifier | region_id (const Identifier tower_or_layerId) const |
| | build a region (of towers) identifier More...
|
| |
| Identifier | layer_id (int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const |
| | build a layer identifier More...
|
| |
| Identifier | layer_id (int pos_neg_z, int sampling, int region, int eta, int phi, int layer, bool checks) const |
| |
| Identifier | layer_id (const Identifier towerId, int layer) const |
| | build a layer identifier More...
|
| |
| Identifier | layer_id (const Identifier towerId, int layer, bool checks) const |
| |
| IdContext | region_context () const |
| | access to IdContext's which define which levels of fields are contained in the id More...
|
| |
| IdContext | tower_context () const |
| | access to IdContext's which define which levels of fields are contained in the id More...
|
| |
| IdContext | layer_context () const |
| | access to IdContext's which define which levels of fields are contained in the id 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...
|
| |
| Identifier | region_id (IdentifierHash region_hash_id) const |
| | create region id from hash id More...
|
| |
| Identifier | tower_id (IdentifierHash tower_hash_id) const |
| | create tower id from hash id More...
|
| |
| IdentifierHash | tower_hash (Identifier towerId) const |
| | create hash id from tower id More...
|
| |
| IdentifierHash | tower_hash_binary_search (Identifier towerId) const |
| | create hash id from tower id – method NOT optimised, please use tower_hash() above More...
|
| |
| virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| | initialization from the identifier dictionary More...
|
| |
| size_type | tower_hash_max () const |
| | tower hash table max size More...
|
| |
| size_type | layer_hash_max () const |
| | layer hash table max size More...
|
| |
| size_type | region_hash_max () const |
| | region hash table max size More...
|
| |
| id_iterator | region_begin () const |
| | begin iterator over regions More...
|
| |
| id_iterator | region_end () const |
| | end iterator over regions More...
|
| |
| id_range | region_range () const |
| | range over regions More...
|
| |
| id_iterator | tower_begin () const |
| | begin iterator over towers More...
|
| |
| id_iterator | tower_end () const |
| | end iterator over towers More...
|
| |
| id_range | tower_range () const |
| | range over towers More...
|
| |
| id_iterator | layer_begin () const |
| | begin iterators over layers More...
|
| |
| id_iterator | layer_end () const |
| | end iterators over layers More...
|
| |
| id_range | layer_range () const |
| | range over layers More...
|
| |
| bool | is_tile (const Identifier id) const |
| | Test wether given tower or layer is part of the Tile Calorimeter. More...
|
| |
| bool | is_emb (const Identifier id) const |
| | Test wether given tower or layer is part of the EM barrel. More...
|
| |
| bool | is_barrel_end (const Identifier id) const |
| | Test wether given tower or layer is part of the EM barrel END. More...
|
| |
| bool | is_emec (const Identifier id) const |
| | Test wether given tower or layer is part of the EM end-cap. More...
|
| |
| bool | is_hec (const Identifier id) const |
| | Test wether given tower or layer is part of the HEC. More...
|
| |
| bool | is_fcal (const Identifier id) const |
| | Test wether given tower or layer is part of the FCAL. More...
|
| |
| int | pos_neg_z (const Identifier id) const |
| | return pos_neg_z according to :
More...
|
| |
| int | sampling (const Identifier id) const |
| | return sampling according to :
More...
|
| |
| int | region (const Identifier id) const |
| | return region according to :
More...
|
| |
| int | eta (const Identifier id) const |
| | return eta according to :
More...
|
| |
| int | phi (const Identifier id) const |
| | return phi according to :
More...
|
| |
| int | layer (const Identifier id) const |
| | return layer according to :
More...
|
| |
| int | eta_min (const Identifier regId) const |
| | min value of eta index (-999 == failure) More...
|
| |
| int | eta_max (const Identifier regId) const |
| | max value of eta index (-999 == failure) More...
|
| |
| int | phi_max (const Identifier regId) const |
| | min value of phi index (-999 == failure) More...
|
| |
| int | layer_max (const Identifier regId) const |
| | max value of phi index (-999 == failure) More...
|
| |
| int | get_prev_in_phi (const IdentifierHash &id, IdentifierHash &prev) const |
| | access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
More...
|
| |
| int | get_next_in_phi (const IdentifierHash &id, IdentifierHash &next) const |
| | access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
More...
|
| |
| int | get_prev_in_eta (const IdentifierHash &id, IdentifierHash &prev) const |
| | access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
More...
|
| |
| int | get_next_in_eta (const IdentifierHash &id, IdentifierHash &next) const |
| | access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
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...
|
| |
| void | tower_id_checks (int pos_neg_z, int sampling, int region, int eta, int phi) const |
| |
| void | tower_id_checks (const Identifier regionId, int eta, int phi) const |
| |
| void | region_id_checks (int pos_neg_z, int sampling, int region) const |
| |
| void | layer_id_checks (int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const |
| |
| void | layer_id_checks (const Identifier towerId, int layer) const |
| |
| int | initLevelsFromDict () |
| |
| int | init_hashes () |
| |
| int | init_neighbors () |
| |
| void | initMessaging () const |
| | Initialize our message level and MessageSvc. More...
|
| |
Helper class for offline TT identifiers.
This class provides an interface to decode and generate offline identifiers for the Calorimeter Trigger Towers.
Definition and range of values for the elements of the identifier are (ATL-SOFT-2001-004):
element range meaning
DETZSIDE +/-1 positive/negative
LVL1sampling 0 EM
" 1 Hadronic
region [0,3] 4 regions of different eta/phi granularity
eta [0,24] region 0(|eta|<2.5), granularity = 0.1
" [0,2] region 1(2.5<|eta|<3.1), granularity = 0.2
" 0 region 2(3.1<|eta|<3.2), granularity = 0.1
" [0,3] region 3(3.2<|eta|<4.9), granularity = 0.4
phi [0,63] region 0(|eta|<2.5), granularity = 0.1
" [0,31] region 1(2.5<|eta|<3.1), granularity = 0.2
" [0,31] region 2(3.1<|eta|<3.2), granularity = 0.2
" [0,15] region 3(3.2<|eta|<4.9), granularity = 0.4
Added May 2003 : 'extended' identifiers include 'layer' information :
element range meaning
layer [0,3] 0==PS 1==Front 2==Middle 3==Back in regions 0-2
[0,1] 0== FCAL2, 1== FCAL3 in region 3
- Author
- F Ledroit
Definition at line 65 of file CaloLVL1_ID.h.
◆ id_iterator
Type for iterators over identifiers.
Definition at line 152 of file CaloLVL1_ID.h.
◆ id_range
◆ size_type
◆ anonymous enum
◆ 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
◆ CaloLVL1_ID()
| CaloLVL1_ID::CaloLVL1_ID |
( |
| ) |
|
◆ ~CaloLVL1_ID()
| CaloLVL1_ID::~CaloLVL1_ID |
( |
| ) |
|
|
virtualdefault |
◆ 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 |
◆ 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()
return eta according to :
element range meaning
eta [0,24] region 0(|eta|<2.5), granularity = 0.1
" [0,2] region 1(2.5<|eta|<3.1), granularity = 0.2
" 0 region 2(3.1<|eta|<3.2), granularity = 0.1
" [0,3] region 3(3.2<|eta|<4.9), granularity = 0.4
failure returns 0
Definition at line 653 of file CaloLVL1_ID.h.
◆ eta_max()
max value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 478 of file CaloLVL1_ID.cxx.
486 if (
range.match(expId)) {
488 if (not eta_field.
empty()) {
◆ eta_min()
min value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 452 of file CaloLVL1_ID.cxx.
460 if (
range.match(expId)) {
462 if (not eta_field.
empty()) {
◆ 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()
create hash id from compact id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 148 of file CaloLVL1_ID.cxx.
185 std::string errorMessage =
186 "Error in CaloLVL1_ID::get_hash, invalid context ";
◆ get_id()
create compact id from hash id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 73 of file CaloLVL1_ID.cxx.
76 std::stringstream strm;
95 strg =
" hash_id out of range "+strm.str();
102 std::cout << strg << std::endl;
114 strg =
" hash_id out of range "+strm.str();
121 std::cout << strg << std::endl;
133 strg =
" hash_id out of range "+strm.str();
140 std::cout << strg << std::endl;
◆ get_next_in_eta()
access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
Definition at line 578 of file CaloLVL1_ID.cxx.
◆ get_next_in_phi()
access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
Definition at line 554 of file CaloLVL1_ID.cxx.
◆ get_prev_in_eta()
access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
Definition at line 566 of file CaloLVL1_ID.cxx.
◆ get_prev_in_phi()
access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
Definition at line 542 of file CaloLVL1_ID.cxx.
◆ 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 CaloLVL1_ID::init_hashes |
( |
| ) |
|
|
private |
Definition at line 943 of file CaloLVL1_ID.cxx.
946 std::stringstream strm;
947 std::stringstream strm1;
948 std::stringstream strm2;
955 unsigned int nids = 0;
956 std::set<Identifier>
ids;
960 auto first = rit.begin();
961 auto last = rit.end();
969 if(!(
ids.insert(tow_id)).second)
973 log << MSG::ERROR <<
" init_hashes "
974 <<
" duplicated id for TT id. nids= " << nids
975 <<
" compact Id " <<
endmsg;
979 std::cout <<
" CaloLVL1_ID::init_hashes "
980 <<
" Error: duplicated id for TT id. nids= " << nids
993 log << MSG::ERROR <<
" init_hashes "
994 <<
" set size NOT EQUAL to hash max. size " <<
ids.size()
1000 std::cout <<
" CaloLVL1_ID::init_hashes "
1001 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
1009 std::set<Identifier>::const_iterator
first =
ids.begin();
1010 std::set<Identifier>::const_iterator last =
ids.end();
1025 auto first = rit.begin();
1026 auto last = rit.end();
1036 if(!(
ids.insert(lay_id)).second)
1040 log << MSG::ERROR <<
" init_hashes "
1041 <<
" duplicated id for extended TT id. nids= " << nids
1046 std::cout <<
" CaloLVL1_ID::init_hashes "
1047 <<
" Error: duplicated id for extended TT id. nids= " << nids
1060 log << MSG::ERROR <<
" init_hashes "
1061 <<
" set size NOT EQUAL to hash max. size " <<
ids.size()
1067 std::cout <<
" CaloLVL1_ID::init_hashes "
1068 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
1092 auto first = rit.begin();
1093 auto last = rit.end();
1099 if(!(
ids.insert(reg_id)).second)
1103 log << MSG::ERROR <<
" LArEM_ID::init_hashes "
1104 <<
" duplicated id for region id. nids= " << nids
1105 <<
" compact Id " <<
endmsg;
1109 std::cout <<
" LArEM_ID::init_hashes "
1110 <<
" Error: duplicated id for region id. nids= " << nids
1114 std::cout << std::endl;
1124 log << MSG::ERROR <<
" LArEM_ID::init_hashes "
1125 <<
" set size NOT EQUAL to region hash max. size " <<
ids.size()
1131 std::cout <<
" LArEM_ID::init_hashes "
1132 <<
" Error: set size NOT EQUAL to region hash max. size " <<
ids.size()
◆ init_neighbors()
| int CaloLVL1_ID::init_neighbors |
( |
| ) |
|
|
private |
Definition at line 1151 of file CaloLVL1_ID.cxx.
1166 auto first = rit.begin();
1167 auto last = rit.end();
1191 if (
get_hash(
id, hash_id,&tcontext))
1195 log << MSG::ERROR <<
" init_neighbors - unable to get hash, compact = " <<
endmsg;
1199 std::cout <<
" CaloLVL1_ID::init_neighbors - unable to get hash, compact = ";
1201 std::cout << std::endl;
1207 unsigned short index = hash_id;
1219 if (
get_hash(
id, hash_id,&tcontext))
1223 log << MSG::ERROR <<
" init_neighbors - unable to get previous phi hash, exp/compact " <<
endmsg;
1227 std::cout <<
" CaloLVL1_ID::init_neighbors - unable to get previous phi hash, exp/compact ";
1243 if (
get_hash(
id, hash_id,&tcontext))
1247 log << MSG::ERROR <<
" init_neighbors - unable to get next phi hash, exp/compact "<<
endmsg;
1251 std::cout <<
" CaloLVL1_ID::init_neighbors - unable to get next phi hash, exp/compact ";
1266 if (
get_hash(
id, hash_id,&tcontext))
1270 log << MSG::ERROR <<
" init_neighbors - unable to get previous eta hash, exp/compact "<<
endmsg;
1274 std::cout <<
" CaloLVL1_ID::init_neighbors - unable to get previous eta hash, exp/compact ";
1290 if (
get_hash(
id, hash_id,&tcontext))
1294 log << MSG::ERROR <<
" init_neighbors - unable to get next eta hash, exp/compact ";
1298 std::cout <<
" CaloLVL1_ID::init_neighbors - unable to get next eta hash, exp/compact ";
◆ initialize_from_dictionary()
| int CaloLVL1_ID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
virtual |
initialization from the identifier dictionary
Reimplemented from AtlasDetectorID.
Definition at line 197 of file CaloLVL1_ID.cxx.
200 std::string strg =
"initialize_from_dictionary";
205 std::cout << strg << std::endl;
217 std::stringstream strm;
218 std::stringstream strm1;
219 std::stringstream strm2;
232 strg=
" initialize_from_dict - cannot access LVL1Calorimeter dictionary ";
238 std::cout << strg << std::endl;
252 strg=
"Could not get value for label 'Calorimeter' of field 'subdet' in dictionary "+strm.str();
259 std::cout << strg << std::endl;
264 int lvl1CaloValue = -1;
272 strg =
" Could not get value for label 'positive_lvl1_side' of field 'DetZside in dictionary"+strm.str();
279 std::cout << strg << std::endl;
290 reg_id.
add(caloValue);
291 reg_id.
add(lvl1CaloValue);
305 strg =
" CaloLVL1_ID::initialize_from_dict : ";
306 strg1 =
" tower range -> "+strm1.str();
307 strg2 =
" layer range -> "+strm2.str();
316 std::cout << strg << std::endl;
317 std::cout << strg1 << std::endl;
318 std::cout << strg2 << std::endl;
352 int size = (1 << bits);
380 hc.m_hash = min_hash;
390 strg =
"Min > "+strm.str();
391 strg1=
" "+strm1.str();
392 strg2=
" "+strm2.str();
401 std::cout << strg << std::endl;
402 std::cout << strg1 << std::endl;
403 std::cout << strg2 << std::endl;
421 strg =
" ***** Error tower ranges, id, hash, i = "+strm.str();
422 strg1=
" , "+strm1.str();
423 strg2=
" , "+strm2.str();
432 std::cout << strg << std::endl;
433 std::cout << strg1 << std::endl;
434 std::cout << strg2 << std::endl;
◆ initLevelsFromDict()
| int CaloLVL1_ID::initLevelsFromDict |
( |
| ) |
|
|
private |
Definition at line 697 of file CaloLVL1_ID.cxx.
700 std::stringstream strm;
701 std::stringstream strm1;
702 std::stringstream strm2;
703 std::stringstream strm3;
704 std::stringstream strm4;
705 std::stringstream strm5;
706 std::stringstream strm6;
707 std::stringstream strm7;
718 strg=
"initLevelsFromDict - dictionary NOT initialized ";
724 std::cout << strg << std::endl;
747 strg =
"initLevelsFromDict - unable to find lvl1 region ";
753 std::cout << strg << std::endl;
765 strg=
"initLevelsFromDict - unable to find 'subdet' field ";
772 std::cout << strg << std::endl;
783 strg=
"initLevelsFromDict - unable to find 'DetZside' field ";
790 std::cout << strg << std::endl;
801 strg=
"initLevelsFromDict - unable to find 'LVL1sampling' field ";
807 std::cout << strg << std::endl;
819 strg=
"initLevelsFromDict - unable to find 'region' field ";
826 std::cout << strg << std::endl;
839 strg=
"initLevelsFromDict - unable to find 'eta' field ";
846 std::cout << strg << std::endl;
858 strg=
"initLevelsFromDict - unable to find 'phi' field ";
865 std::cout << strg << std::endl;
876 strg=
"initLevelsFromDict - unable to find 'layer' field ";
882 std::cout << strg << std::endl;
907 strg =
"decode index and bit fields for each level: ";
908 strg1=
"calo "+strm1.str();
909 strg2=
"detzside "+strm2.str();
910 strg3=
"samp "+strm3.str();
911 strg4=
"reg "+strm4.str();
912 strg5=
"eta "+strm5.str();
913 strg6=
"phi "+strm6.str();
914 strg7=
"layer "+strm7.str();
928 std::cout << strg << std::endl;
929 std::cout << strg1 << std::endl;
930 std::cout << strg2 << std::endl;
931 std::cout << strg3 << std::endl;
932 std::cout << strg4 << std::endl;
933 std::cout << strg5 << std::endl;
934 std::cout << strg6 << std::endl;
935 std::cout << strg7 << std::endl;
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ is_alfa()
| bool AtlasDetectorID::is_alfa |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_barrel_end()
Test wether given tower or layer is part of the EM barrel END.
- Warning
- does NOT take as input a REGION identifier
Definition at line 690 of file CaloLVL1_ID.h.
◆ 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_emb()
Test wether given tower or layer is part of the EM barrel.
- Warning
- does NOT take as input a REGION identifier
-
excluding 'barrel end'!
Definition at line 684 of file CaloLVL1_ID.h.
◆ is_emec()
Test wether given tower or layer is part of the EM end-cap.
- Warning
- does NOT take as input a REGION identifier
Definition at line 696 of file CaloLVL1_ID.h.
◆ is_fcal()
Test wether given tower or layer is part of the FCAL.
- Warning
- does NOT take as input a REGION identifier
Definition at line 710 of file CaloLVL1_ID.h.
◆ is_forward()
| bool AtlasDetectorID::is_forward |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_hec()
Test wether given tower or layer is part of the HEC.
- Warning
- does NOT take as input a REGION identifier
Definition at line 703 of file CaloLVL1_ID.h.
◆ 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]
◆ is_tile_dm()
| bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_trt() [1/2]
◆ is_trt() [2/2]
| bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_zdc()
| bool AtlasDetectorID::is_zdc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ lar()
◆ lar_dm()
◆ lar_em()
◆ lar_em_exp()
◆ lar_em_field_value()
| int AtlasDetectorID::lar_em_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_exp()
◆ lar_fcal()
| Identifier AtlasDetectorID::lar_fcal |
( |
void |
| ) |
const |
|
inherited |
◆ lar_fcal_exp()
◆ lar_fcal_field_value()
| int AtlasDetectorID::lar_fcal_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_field_value()
| int AtlasDetectorID::lar_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_hec()
| Identifier AtlasDetectorID::lar_hec |
( |
void |
| ) |
const |
|
inherited |
◆ lar_hec_exp()
◆ lar_hec_field_value()
| int AtlasDetectorID::lar_hec_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_lvl1()
| Identifier AtlasDetectorID::lar_lvl1 |
( |
void |
| ) |
const |
|
inherited |
◆ layer()
return layer according to :
element range meaning
layer [0,3] region 0, 1, 2 (|eta|<3.2) : 4 em samplings or 4 had samplings
" [0,1] region 3 (3.2<|eta|<4.9) : 1 em sampling or 2 had samplings
failure returns 0
Definition at line 665 of file CaloLVL1_ID.h.
◆ layer_begin()
◆ layer_context()
| IdContext CaloLVL1_ID::layer_context |
( |
| ) |
const |
access to IdContext's which define which levels of fields are contained in the id
id for towers with layers ("extended" id)
Definition at line 65 of file CaloLVL1_ID.cxx.
◆ layer_end()
◆ layer_hash_max()
◆ layer_id() [1/4]
◆ layer_id() [2/4]
◆ layer_id() [3/4]
| Identifier CaloLVL1_ID::layer_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
int |
layer |
|
) |
| const |
|
inline |
◆ layer_id() [4/4]
| Identifier CaloLVL1_ID::layer_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
int |
layer, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ layer_id_checks() [1/2]
| void CaloLVL1_ID::layer_id_checks |
( |
const Identifier |
towerId, |
|
|
int |
layer |
|
) |
| const |
|
private |
Definition at line 674 of file CaloLVL1_ID.cxx.
682 std::string errorMessage =
"CaloLVL1_ID::layer_id(towerId, layer) result is not OK: ID= "
690 std::string errorMessage =
"CaloLVL1_ID::layer_id(towerId) result is not OK: ID, range = "
◆ layer_id_checks() [2/2]
| void CaloLVL1_ID::layer_id_checks |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
int |
layer |
|
) |
| const |
|
private |
Definition at line 660 of file CaloLVL1_ID.cxx.
668 std::string errorMessage =
"CaloLVL1_ID::layer_id(field values) result is not OK: ID, range = "
◆ layer_max()
max value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 520 of file CaloLVL1_ID.cxx.
528 if (
range.match(expId)) {
530 if (not lay_field.
empty()) {
◆ layer_range()
◆ lucid_exp()
◆ lucid_field_value()
| int AtlasDetectorID::lucid_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lumi()
◆ lumi_exp()
◆ lumi_field_value()
| int AtlasDetectorID::lumi_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mdt()
◆ mdt_field_value()
| int AtlasDetectorID::mdt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mm()
◆ mm_field_value()
| int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ muon()
◆ muon_exp()
◆ muon_field_value()
| int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ phi()
return phi according to :
element range meaning
phi [0,63] region 0(|eta|<2.5), granularity = 0.1
" [0,31] region 1(2.5<|eta|<3.1), granularity = 0.2
" [0,31] region 2(3.1<|eta|<3.2), granularity = 0.2
" [0,15] region 3(3.2<|eta|<4.9), granularity = 0.4
failure returns 0
Definition at line 659 of file CaloLVL1_ID.h.
◆ phi_max()
min value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 499 of file CaloLVL1_ID.cxx.
507 if (
range.match(expId)) {
509 if (not phi_field.
empty()) {
◆ pixel()
◆ pixel_exp()
◆ pixel_field_value()
| int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ plr_field_value()
| int AtlasDetectorID::plr_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ pos_neg_z()
return pos_neg_z according to :
element range meaning
------- ----- -------
DETZSIDE +/-1 positive/negative
failure returns 0
Definition at line 635 of file CaloLVL1_ID.h.
◆ 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);
◆ region()
return region according to :
element range meaning
------- ----- -------
region [0,3] 4 regions of different eta/phi granularity
failure returns 0
Definition at line 647 of file CaloLVL1_ID.h.
◆ region_begin()
◆ region_context()
| IdContext CaloLVL1_ID::region_context |
( |
| ) |
const |
access to IdContext's which define which levels of fields are contained in the id
id for towers ("reduced" id)
Definition at line 51 of file CaloLVL1_ID.cxx.
◆ region_end()
◆ region_hash_max()
◆ region_id() [1/4]
build a region (of towers) identifier
Definition at line 464 of file CaloLVL1_ID.h.
◆ region_id() [2/4]
◆ region_id() [3/4]
| Identifier CaloLVL1_ID::region_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region |
|
) |
| const |
|
inline |
build a region (of towers) identifier
Definition at line 502 of file CaloLVL1_ID.h.
◆ region_id() [4/4]
| Identifier CaloLVL1_ID::region_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ region_id_checks()
| void CaloLVL1_ID::region_id_checks |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region |
|
) |
| const |
|
private |
Definition at line 647 of file CaloLVL1_ID.cxx.
654 std::string errorMessage =
"CaloLVL1_ID::region_id() result is not OK: ID, range = "
◆ region_range()
◆ 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 |
◆ sampling()
return sampling according to :
element range meaning
LVL1sampling 0 EM
" 1 Hadronic
failure returns 0
Definition at line 641 of file CaloLVL1_ID.h.
◆ 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 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 |
◆ 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()
◆ tower_begin()
◆ tower_context()
| IdContext CaloLVL1_ID::tower_context |
( |
| ) |
const |
access to IdContext's which define which levels of fields are contained in the id
id for towers ("normal" id)
Definition at line 58 of file CaloLVL1_ID.cxx.
◆ tower_end()
◆ tower_hash()
create hash id from tower id
Definition at line 728 of file CaloLVL1_ID.h.
731 return (hc.m_hash + (
eta(towerId)-hc.m_etamin)*hc.m_nphi +
phi(towerId));
◆ tower_hash_binary_search()
◆ tower_hash_max()
◆ tower_id() [1/6]
◆ tower_id() [2/6]
◆ tower_id() [3/6]
◆ tower_id() [4/6]
◆ tower_id() [5/6]
| Identifier CaloLVL1_ID::tower_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
inline |
◆ tower_id() [6/6]
| Identifier CaloLVL1_ID::tower_id |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ tower_id_checks() [1/2]
| void CaloLVL1_ID::tower_id_checks |
( |
const Identifier |
regionId, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 625 of file CaloLVL1_ID.cxx.
633 std::string errorMessage =
"CaloLVL1_ID::tower_id(regionId) result is not OK: ID= "
641 std::string errorMessage =
"CaloLVL1_ID::tower_id(regionId,field values) result is not OK: ID, range = "
◆ tower_id_checks() [2/2]
| void CaloLVL1_ID::tower_id_checks |
( |
int |
pos_neg_z, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 610 of file CaloLVL1_ID.cxx.
618 std::string errorMessage =
"CaloLVL1_ID::tower_id() result is not OK: ID, range = "
◆ tower_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_BCM_ID
| int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_calo_dict
◆ m_CALO_ID
| int AtlasDetectorID::m_CALO_ID {10} |
|
privateinherited |
◆ m_calo_impl
◆ m_CALO_INDEX
◆ m_calo_side_impl
◆ m_CSC_ID
| int AtlasDetectorID::m_CSC_ID {1} |
|
privateinherited |
◆ m_det_impl
◆ m_DET_INDEX
◆ m_DETZSIDE_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_eta_impl
◆ m_ETA_INDEX
◆ 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_layer_range
◆ m_full_region_range
◆ m_full_tower_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_hash_calcs
| std::vector<HashCalc> CaloLVL1_ID::m_hash_calcs |
|
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_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_layer_hash_max
◆ m_layer_impl
◆ m_LAYER_INDEX
◆ m_layer_vec
◆ 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_impl
◆ m_lvl1_onl_field
◆ m_lvl1_region_index
◆ m_MDT_ID
| int AtlasDetectorID::m_MDT_ID {0} |
|
privateinherited |
◆ m_MM_ID
| int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_msgSvc
| IMessageSvc* AtlasDetectorID::m_msgSvc {} |
|
protectedinherited |
◆ m_muon_dict
◆ m_MUON_ID
| int AtlasDetectorID::m_MUON_ID {7} |
|
privateinherited |
◆ m_muon_mdt_impl
◆ m_muon_rpc_impl
◆ m_muon_station_name_impl
◆ m_MUON_SUBDET_INDEX
| size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_muon_tech_bits
| std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits |
|
privateinherited |
◆ m_next_eta_vec
| std::vector<unsigned short> CaloLVL1_ID::m_next_eta_vec |
|
private |
◆ m_next_phi_vec
| std::vector<unsigned short> CaloLVL1_ID::m_next_phi_vec |
|
private |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_phi_impl
◆ m_PHI_INDEX
◆ m_PIXEL_ID
| int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_pnz_reg_impl
◆ m_prev_eta_vec
| std::vector<unsigned short> CaloLVL1_ID::m_prev_eta_vec |
|
private |
◆ m_prev_phi_vec
| std::vector<unsigned short> CaloLVL1_ID::m_prev_phi_vec |
|
private |
◆ m_quiet
| bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_region_hash_max
◆ m_region_impl
◆ m_REGION_INDEX
◆ m_region_vec
◆ m_RPC_ID
| int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_sampling_impl
◆ m_SAMPLING_INDEX
◆ m_SCT_ID
| int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_STGC_ID
| int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
| size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_TGC_ID
| int AtlasDetectorID::m_TGC_ID {3} |
|
privateinherited |
◆ m_tile_dict
◆ m_tile_dm_field
◆ m_TILE_ID
| int AtlasDetectorID::m_TILE_ID {5} |
|
privateinherited |
◆ m_tower_hash_max
◆ m_tower_vec
◆ 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.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
boost::iterator_range< id_iterator > id_range
Type for range over identifiers.
std::vector< unsigned short > m_next_phi_vec
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.
IdDictFieldImplementation m_indet_part_impl
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
IdContext layer_context() const
access to IdContext's which define which levels of fields are contained in the id
const std::string & version() const
Dictionary version.
void layer_id_checks(int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
bool is_lar_fcal(Identifier id) const
Exception class for Calo Identifiers.
std::vector< unsigned short > m_prev_eta_vec
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
IdDictFieldImplementation m_sampling_impl
const IdDictRegion & region(size_t i) const
Region at index i.
AtlasDetectorID(const std::string &name, const std::string &group)
element_type get_minimum() const
Query the values.
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
IdDictFieldImplementation m_phi_impl
size_type end_index() const
int calo_field_value() const
IdDictFieldImplementation m_region_impl
void add(element_type value)
Append a value into a new field.
std::vector< Identifier > m_region_vec
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
int region(const Identifier id) const
return region according to :
void show() const
Send to std::cout.
const IdDictDictionary * m_dict
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
element_type get_maximum() const
IdDictFieldImplementation m_layer_impl
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Identifier region_id(int pos_neg_z, int sampling, int region) const
build a region (of towers) identifier
static constexpr value_type MAX_BIT
id_iterator layer_end() const
end iterators over layers
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...
id_iterator tower_end() const
end iterator over towers
int layer(const Identifier id) const
return layer according to :
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
id_iterator region_end() const
end iterator over regions
MultiRange m_full_layer_range
Identifier layer_id(int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
build a layer identifier
int phi(const Identifier id) const
return phi according to :
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
std::vector< unsigned short > m_next_eta_vec
size_type begin_index() const
IdDictFieldImplementation m_eta_impl
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
id_iterator region_begin() const
begin iterator over regions
msgSvc
Provide convenience handles for various services.
bool empty() const
If true, this field does not have any constraints, and may hold any value representable by element_ty...
std::string m_group
Group name.
IdDictDictionary * m_calo_dict
std::vector< HashCalc > m_hash_calcs
void set_bits(size_type bits, size_type bits_offset)
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
std::vector< unsigned short > m_prev_phi_vec
std::vector< Identifier > m_tower_vec
IdDictFieldImplementation m_muon_mdt_impl
int eta_min(const Identifier regId) const
min value of eta index (-999 == failure)
IdDictFieldImplementation m_lar_fcal_module_impl
size_type bits_offset() const
bool is_tile_dm(Identifier id) const
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)
IdDictDictionary * m_fwd_dict
bool get_next(element_type current, element_type &next) const
bool is_tile(Identifier id) const
const std::string & group() const
Group name for this helper.
size_type m_DETZSIDE_INDEX
Range::field m_lvl1_onl_field
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
IdDictFieldImplementation m_lvl1_impl
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
size_type m_SAMPLING_INDEX
size_type m_region_hash_max
IdDictFieldImplementation m_pnz_reg_impl
IdDictDictionary * m_indet_dict
IdDictFieldImplementation m_calo_side_impl
bool is_indet(Identifier id) const
IdentifierHash tower_hash_binary_search(Identifier towerId) const
create hash id from tower id – method NOT optimised, please use tower_hash() above
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
int eta(const Identifier id) const
return eta according to :
Range::field m_lar_dm_field
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
ExpandedIdentifier calo_exp(void) const
ExpandedIdentifier fwd_exp(void) const
IdDictFieldImplementation m_muon_station_name_impl
size_type m_lvl1_region_index
MultiRange m_full_region_range
void region_id_checks(int pos_neg_z, int sampling, int region) const
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
IdContext tower_context() const
access to IdContext's which define which levels of fields are contained in the id
int match(const ExpandedIdentifier &id) const
Match an identifier.
std::vector< Identifier > m_layer_vec
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:
void tower_id_checks(int pos_neg_z, int sampling, int region, int eta, int phi) const
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)
std::string m_nm
Message source name.
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
id_iterator tower_begin() const
begin iterator over towers
int sampling(const Identifier id) const
return sampling according to :
IdDictFieldImplementation m_calo_impl
void clear()
Erase all fields.
bool get_previous(element_type current, element_type &previous) const
Returns false if previous/next is at end of range, or not possible.
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
IdentifierHash tower_hash(Identifier towerId) const
create hash id from tower id
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)
size_type m_layer_hash_max
MultiRange m_full_tower_range
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
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.
id_iterator layer_begin() const
begin iterators over layers
IdContext region_context() const
access to IdContext's which define which levels of fields are contained in the id
size_type m_tower_hash_max
Range::field m_lvl1_field
Identifier::size_type size_type