|
ATLAS Offline Software
|
#include <JGTowerBase_ID.h>
|
class | HashCalc |
| small class holding the starting hash value, the min eta and the number of phi bins of each region More...
|
|
|
enum | { NOT_VALID =999999
} |
|
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...
|
|
|
| JGTowerBase_ID (void) |
|
virtual | ~JGTowerBase_ID () |
|
Identifier | tower_id (int pos_neg, int sampling, int region, int eta, int phi) const |
| build a tower identifier More...
|
|
Identifier | tower_id (int pos_neg, 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 | region_id (int pos_neg, int sampling, int region) const |
| build a region (of towers) identifier More...
|
|
Identifier | region_id (int pos_neg, int sampling, int region, bool checks) const |
|
IdContext | region_context (void) const |
| access to IdContext's which define which levels of fields are contained in the id More...
|
|
IdContext | tower_context (void) 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...
|
|
IdentifierHash | calo_region_hash (const Identifier id) const |
|
Identifier | region_id (IdentifierHash region_hash_id) const |
| create region id from hash id More...
|
|
Identifier | region_id (const Identifier tower_Id) const |
|
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_base_from_dictionary (const IdDictMgr &dict_mgr, const std::string &t_pre) |
| initialization from the identifier dictionary More...
|
|
size_type | tower_hash_max (void) const |
| tower hash table max size More...
|
|
size_type | calo_region_hash_max (void) 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 | reg_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...
|
|
int | pos_neg (const Identifier id) const |
| return pos_neg 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 | 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...
|
|
float | etaGranularity (const Identifier regId) const |
| Return the eta granularity of a region, or NOT_VALID . More...
|
|
float | phiGranularity (const Identifier regId) const |
| Return the phi granularity of a region, or NOT_VALID . More...
|
|
float | eta0 (const Identifier regId) const |
| Return the minimum eta of region, or NOT_VALID . More...
|
|
float | phi0 (const Identifier regId) const |
| Return the minimum phi of region, or NOT_VALID . 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...
|
|
int | fill_vec_of_dict_regions (const std::string &group_name="") |
|
const std::vector< const IdDictRegion * > & | dictRegions () const |
|
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, 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, int sampling, int region) const |
|
int | initLevelsFromDict (const std::string &t_pre) |
|
int | init_hashes (void) |
|
int | init_neighbors (void) |
|
void | initMessaging () const |
| Initialize our message level and MessageSvc. More...
|
|
Definition at line 32 of file JGTowerBase_ID.h.
◆ id_iterator
◆ id_range
◆ size_type
◆ anonymous enum
◆ 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 60 of file AtlasDetectorID.h.
65 LArEM, LArFCal, LArFCalSuperCell,
66 LArHEC, LArHEC_SuperCell, LARMiniFCal,
70 LArOnline, LArOnlineSuperCell,
72 LArElectrode, LArHVLine,
73 TileHardware, TileTestbeam,
80 LUCID, LUCID_Hardware,
◆ ID
◆ JGTowerBase_ID()
JGTowerBase_ID::JGTowerBase_ID |
( |
void |
| ) |
|
◆ ~JGTowerBase_ID()
JGTowerBase_ID::~JGTowerBase_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 |
◆ calo_region_hash()
◆ calo_region_hash_max()
◆ csc()
◆ csc_field_value()
int AtlasDetectorID::csc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ detsystem_context()
IdContext AtlasDetectorID::detsystem_context |
( |
void |
| ) |
const |
|
inherited |
◆ dict_names()
const std::vector< std::string > & AtlasDetectorID::dict_names |
( |
void |
| ) |
const |
|
inherited |
◆ dict_tags()
const std::vector< std::string > & AtlasDetectorID::dict_tags |
( |
void |
| ) |
const |
|
inherited |
Version tags for subdet dictionaries.
Version tag for subdet dictionary.
Definition at line 723 of file AtlasDetectorID.cxx.
◆ dictionaryVersion()
std::string AtlasDetectorID::dictionaryVersion |
( |
void |
| ) |
const |
|
overridevirtualinherited |
◆ dictRegions()
◆ do_checks()
bool AtlasDetectorID::do_checks |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Checks are performed by default in debug compilation and NOT in optimized compilation.
One can switch or query this mode for any idHelper with the following methods:
Implements IdHelper.
Definition at line 728 of file AtlasDetectorID.cxx.
◆ do_neighbours()
bool AtlasDetectorID::do_neighbours |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Neighbour initialization is performed by default One can switch or query this mode for any idHelper with the following method:
Implements IdHelper.
Definition at line 738 of file AtlasDetectorID.cxx.
◆ eta()
return eta according to :
GTower
element range meaning
------- ----- -------
eta [0,15] region 0(|eta|<3.2), granularity = 0.2
" [0,2] region 1(3.2<|eta|<4.9), granularity = 0.6 ***** NEEDS IMPROVEMENT *****
JTowers
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.1
" [0] region 2(3.1|eta|<3.2), granularity = 0.1
" [0,2] region 3(3.2|eta|<4.9), granularity = 0.6
failure returns 0
Definition at line 486 of file JGTowerBase_ID.h.
◆ eta0()
Return the minimum eta of region, or NOT_VALID
.
- Parameters
-
Definition at line 499 of file JGTowerBase_ID.cxx.
◆ eta_max()
max value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 443 of file JGTowerBase_ID.cxx.
451 if (
range.match(expId)) {
453 if (not eta_field.
empty()) {
◆ eta_min()
min value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 417 of file JGTowerBase_ID.cxx.
425 if (
range.match(expId)) {
427 if (not eta_field.
empty()) {
◆ etaGranularity()
Return the eta granularity of a region, or NOT_VALID
.
- Parameters
-
Definition at line 485 of file JGTowerBase_ID.cxx.
◆ file_names()
const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ fill_vec_of_dict_regions()
int JGTowerBase_ID::fill_vec_of_dict_regions |
( |
const std::string & |
group_name = "" | ) |
|
◆ 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 114 of file JGTowerBase_ID.cxx.
143 std::string errorMessage =
144 "Error in JGTowerBase_ID::get_hash, invalid context ";
◆ get_id()
create compact id from hash id (return == 0 for OK)
Reimplemented from AtlasDetectorID.
Definition at line 58 of file JGTowerBase_ID.cxx.
61 std::stringstream strm;
80 strg =
" hash_id out of range "+strm.str();
87 std::cout << strg << std::endl;
99 strg =
" hash_id out of range "+strm.str();
106 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 550 of file JGTowerBase_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 526 of file JGTowerBase_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 538 of file JGTowerBase_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 514 of file JGTowerBase_ID.cxx.
◆ helper()
virtual HelperType AtlasDetectorID::helper |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ hgtd()
◆ hgtd_exp()
◆ hgtd_field_value()
int AtlasDetectorID::hgtd_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ indet()
◆ indet_exp()
◆ indet_field_value()
int AtlasDetectorID::indet_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
Provide efficient access to individual field values, for subclass idhelpers.
Definition at line 611 of file AtlasDetectorID.h.
◆ init_hashes()
int JGTowerBase_ID::init_hashes |
( |
void |
| ) |
|
|
private |
Definition at line 850 of file JGTowerBase_ID.cxx.
853 std::stringstream strm;
854 std::stringstream strm1;
855 std::stringstream strm2;
862 unsigned int nids = 0;
863 std::set<Identifier>
ids;
867 auto first = rit.begin();
868 auto last = rit.end();
876 if(!(
ids.insert(tow_id)).second)
880 log << MSG::ERROR <<
" init_hashes "
881 <<
" duplicated id for J/GTower id. nids= " << nids
882 <<
" compact Id " <<
endmsg;
886 std::cout <<
" JGTowerBase_ID::init_hashes "
887 <<
" Error: duplicated id for J/GTower id. nids= " << nids
900 log << MSG::ERROR <<
" init_hashes "
901 <<
" set size NOT EQUAL to hash max. size " <<
ids.size()
907 std::cout <<
" JGTowerBase_ID::init_hashes "
908 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size()
916 std::set<Identifier>::const_iterator
first =
ids.begin();
917 std::set<Identifier>::const_iterator last =
ids.end();
930 auto first = rit.begin();
931 auto last = rit.end();
937 if(!(
ids.insert(reg_id)).second)
941 log << MSG::ERROR <<
" JGTowerBase_ID::init_hashes "
942 <<
" duplicated id for region id. nids= " << nids
943 <<
" compact Id " <<
endmsg;
947 std::cout <<
" JGTowerBase_ID::init_hashes "
948 <<
" Error: duplicated id for region id. nids= " << nids
952 std::cout << std::endl;
962 log << MSG::ERROR <<
" JGTowerBase_ID::init_hashes "
963 <<
" set size NOT EQUAL to region hash max. size " <<
ids.size()
969 std::cout <<
" JGTowerBase_ID::init_hashes "
970 <<
" Error: set size NOT EQUAL to region hash max. size " <<
ids.size()
◆ init_neighbors()
int JGTowerBase_ID::init_neighbors |
( |
void |
| ) |
|
|
private |
Definition at line 989 of file JGTowerBase_ID.cxx.
1004 auto first = rit.begin();
1005 auto last = rit.end();
1029 if (
get_hash(
id, hash_id,&tcontext))
1033 log << MSG::ERROR <<
" init_neighbors - unable to get hash, compact = " <<
endmsg;
1037 std::cout <<
" JGTowerBase_ID::init_neighbors - unable to get hash, compact = ";
1039 std::cout << std::endl;
1045 unsigned short index = hash_id;
1057 if (
get_hash(
id, hash_id,&tcontext))
1061 log << MSG::ERROR <<
" init_neighbors - unable to get previous phi hash, exp/compact " <<
endmsg;
1065 std::cout <<
" JGTowerBase_ID::init_neighbors - unable to get previous phi hash, exp/compact ";
1081 if (
get_hash(
id, hash_id,&tcontext))
1085 log << MSG::ERROR <<
" init_neighbors - unable to get next phi hash, exp/compact "<<
endmsg;
1089 std::cout <<
" JGTowerBase_ID::init_neighbors - unable to get next phi hash, exp/compact ";
1104 if (
get_hash(
id, hash_id,&tcontext))
1108 log << MSG::ERROR <<
" init_neighbors - unable to get previous eta hash, exp/compact "<<
endmsg;
1112 std::cout <<
" JGTowerBase_ID::init_neighbors - unable to get previous eta hash, exp/compact ";
1128 if (
get_hash(
id, hash_id,&tcontext))
1132 log << MSG::ERROR <<
" init_neighbors - unable to get next eta hash, exp/compact ";
1136 std::cout <<
" JGTowerBase_ID::init_neighbors - unable to get next eta hash, exp/compact ";
◆ initialize_base_from_dictionary()
int JGTowerBase_ID::initialize_base_from_dictionary |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
t_pre |
|
) |
| |
|
virtual |
initialization from the identifier dictionary
Definition at line 163 of file JGTowerBase_ID.cxx.
166 std::string strg =
"initialize_from_dictionary";
171 std::cout << strg << std::endl;
183 std::stringstream strm;
184 std::stringstream strm1;
185 std::stringstream strm2;
198 strg=
" initialize_from_dict - cannot access Calorimeter dictionary ";
204 std::cout << strg << std::endl;
217 strg=
"Could not get value for label 'Calorimeter' of field 'subdet' in dictionary "+strm.str();
224 std::cout << strg << std::endl;
229 int jgtowerCaloValue = -1;
237 strg =
" Could not get value for label positive_lvl1_side of field 'DetZside in dictionary"+strm.str();
244 std::cout << strg << std::endl;
255 reg_id.
add(caloValue);
256 reg_id.
add(jgtowerCaloValue);
271 strg =
" JGTowerBase_ID::initialize_from_dict : ";
272 strg1 =
" tower range -> "+strm1.str();
281 std::cout << strg << std::endl;
282 std::cout << strg1 << std::endl;
283 std::cout << strg2 << std::endl;
317 int size = (1 << bits);
345 hc.m_hash = min_hash;
355 strg =
"Min > "+strm.str();
356 strg1=
" "+strm1.str();
357 strg2=
" "+strm2.str();
366 std::cout << strg << std::endl;
367 std::cout << strg1 << std::endl;
368 std::cout << strg2 << std::endl;
386 strg =
" ***** Error tower ranges, id, hash, i = "+strm.str();
387 strg1=
" , "+strm1.str();
388 strg2=
" , "+strm2.str();
397 std::cout << strg << std::endl;
398 std::cout << strg1 << std::endl;
399 std::cout << strg2 << std::endl;
◆ initialize_from_dictionary()
int AtlasDetectorID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
overridevirtualinherited |
Initialization from the identifier dictionary.
Implements IdHelper.
Reimplemented in SCT_ID, TRT_ID, SiliconID, LArOnline_SuperCellID, PixelID, MuonIdHelper, MdtIdHelper, CaloCell_Base_ID, sTgcIdHelper, CscIdHelper, MmIdHelper, TgcIdHelper, RpcIdHelper, PLR_ID, LArOnlineID_Base, CaloDM_ID, TileHWID, TileTBID, HGTD_ID, LArMiniFCAL_ID, LArElectrodeID, CaloLVL1_ID, LArEM_ID, LArEM_SuperCell_ID, TTOnlineID, LArHEC_ID, ZdcID, LArHVLineID, TileID, Tile_SuperCell_ID, LArFCAL_ID, LArHEC_SuperCell_ID, CaloCell_ID, LArFCAL_SuperCell_ID, GTower_ID, JTower_ID, and LArOnlineID.
Definition at line 320 of file AtlasDetectorID.cxx.
◆ initLevelsFromDict()
int JGTowerBase_ID::initLevelsFromDict |
( |
const std::string & |
t_pre | ) |
|
|
private |
Definition at line 628 of file JGTowerBase_ID.cxx.
631 std::stringstream strm;
632 std::stringstream strm1;
633 std::stringstream strm2;
634 std::stringstream strm3;
635 std::stringstream strm4;
636 std::stringstream strm5;
637 std::stringstream strm6;
638 std::stringstream strm7;
649 strg=
"initLevelsFromDict - dictionary NOT initialized ";
655 std::cout << strg << std::endl;
677 strg =
"initLevelsFromDict - unable to find jgtower region ";
683 std::cout << strg << std::endl;
695 strg=
"initLevelsFromDict - unable to find 'subdet' field ";
702 std::cout << strg << std::endl;
713 strg=
"initLevelsFromDict - unable to find 'DetZside' field ";
720 std::cout << strg << std::endl;
732 strg=
"initLevelsFromDict - unable to find '"+t_pre+
"sampling' field ";
739 std::cout << strg << std::endl;
751 strg=
"initLevelsFromDict - unable to find 'region' field ";
758 std::cout << strg << std::endl;
771 strg=
"initLevelsFromDict - unable to find 'eta' field ";
778 std::cout << strg << std::endl;
790 strg=
"initLevelsFromDict - unable to find 'phi' field ";
797 std::cout << strg << std::endl;
818 strg =
"decode index and bit fields for each level: ";
819 strg1=
"calo "+strm1.str();
820 strg2=
"detzside "+strm2.str();
821 strg3=
"sampling "+strm3.str();
822 strg4=
"reg "+strm4.str();
823 strg5=
"eta "+strm5.str();
824 strg6=
"phi "+strm6.str();
837 std::cout << strg << std::endl;
838 std::cout << strg1 << std::endl;
839 std::cout << strg2 << std::endl;
840 std::cout << strg3 << std::endl;
841 std::cout << strg4 << std::endl;
842 std::cout << strg5 << std::endl;
843 std::cout << strg6 << 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_bcm()
bool AtlasDetectorID::is_bcm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_calo() [1/2]
◆ is_calo() [2/2]
bool AtlasDetectorID::is_calo |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_csc() [1/2]
◆ is_csc() [2/2]
bool AtlasDetectorID::is_csc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_forward()
bool AtlasDetectorID::is_forward |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_hgtd() [1/2]
◆ is_hgtd() [2/2]
bool AtlasDetectorID::is_hgtd |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_indet() [1/2]
◆ is_indet() [2/2]
bool AtlasDetectorID::is_indet |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar() [1/2]
◆ is_lar() [2/2]
bool AtlasDetectorID::is_lar |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_dm()
bool AtlasDetectorID::is_lar_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_em() [1/2]
◆ is_lar_em() [2/2]
bool AtlasDetectorID::is_lar_em |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_fcal() [1/2]
◆ is_lar_fcal() [2/2]
bool AtlasDetectorID::is_lar_fcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_hec() [1/2]
◆ is_lar_hec() [2/2]
bool AtlasDetectorID::is_lar_hec |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_minifcal() [1/2]
◆ is_lar_minifcal() [2/2]
bool AtlasDetectorID::is_lar_minifcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lucid()
bool AtlasDetectorID::is_lucid |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lumi() [1/2]
◆ is_lumi() [2/2]
bool AtlasDetectorID::is_lumi |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_online()
bool AtlasDetectorID::is_lvl1_online |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_trig_towers()
bool AtlasDetectorID::is_lvl1_trig_towers |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mdt() [1/2]
◆ is_mdt() [2/2]
bool AtlasDetectorID::is_mdt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mm() [1/2]
◆ is_mm() [2/2]
bool AtlasDetectorID::is_mm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_muon() [1/2]
◆ is_muon() [2/2]
bool AtlasDetectorID::is_muon |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_pixel() [1/2]
◆ is_pixel() [2/2]
bool AtlasDetectorID::is_pixel |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_plr() [1/2]
◆ is_plr() [2/2]
bool AtlasDetectorID::is_plr |
( |
Identifier |
id | ) |
const |
|
inherited |
◆ is_rpc() [1/2]
◆ is_rpc() [2/2]
bool AtlasDetectorID::is_rpc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_sct() [1/2]
◆ is_sct() [2/2]
bool AtlasDetectorID::is_sct |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_stgc() [1/2]
◆ is_stgc() [2/2]
bool AtlasDetectorID::is_stgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tgc() [1/2]
◆ is_tgc() [2/2]
bool AtlasDetectorID::is_tgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile() [1/2]
◆ is_tile() [2/2]
bool AtlasDetectorID::is_tile |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile_dm()
bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_trt() [1/2]
◆ is_trt() [2/2]
bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_zdc()
bool AtlasDetectorID::is_zdc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ lar()
◆ lar_dm()
◆ lar_em()
◆ lar_em_exp()
◆ lar_em_field_value()
int AtlasDetectorID::lar_em_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_exp()
◆ lar_fcal()
Identifier AtlasDetectorID::lar_fcal |
( |
void |
| ) |
const |
|
inherited |
◆ lar_fcal_exp()
◆ lar_fcal_field_value()
int AtlasDetectorID::lar_fcal_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_field_value()
int AtlasDetectorID::lar_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_hec()
Identifier AtlasDetectorID::lar_hec |
( |
void |
| ) |
const |
|
inherited |
◆ lar_hec_exp()
◆ lar_hec_field_value()
int AtlasDetectorID::lar_hec_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_lvl1()
Identifier AtlasDetectorID::lar_lvl1 |
( |
void |
| ) |
const |
|
inherited |
◆ lucid_exp()
◆ lucid_field_value()
int AtlasDetectorID::lucid_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lumi()
◆ lumi_exp()
◆ lumi_field_value()
int AtlasDetectorID::lumi_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mdt()
◆ mdt_field_value()
int AtlasDetectorID::mdt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mm()
◆ mm_field_value()
int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ muon()
◆ muon_exp()
◆ muon_field_value()
int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ phi()
return phi according to :
GTower
element range meaning
------- ----- -------
phi [0,31] region 0(|eta|<3.2), granularity = 0.2
" [0,15] region 1(3.2<|eta|<4.9), granularity = 0.4
JTower
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 1(3.1<|eta|<3.2), granularity = 0.2
" [0,15] region 1(3.2<|eta|<4.9), granularity = 0.4
failure returns 0
Definition at line 492 of file JGTowerBase_ID.h.
◆ phi0()
Return the minimum phi of region, or NOT_VALID
.
- Parameters
-
Definition at line 506 of file JGTowerBase_ID.cxx.
◆ phi_max()
min value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 464 of file JGTowerBase_ID.cxx.
472 if (
range.match(expId)) {
474 if (not phi_field.
empty()) {
◆ phiGranularity()
Return the phi granularity of a region, or NOT_VALID
.
- Parameters
-
Definition at line 492 of file JGTowerBase_ID.cxx.
◆ 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()
return pos_neg according to :
element range meaning
------- ----- -------
DETZSIDE +/-1 positive/negative
failure returns 0
Definition at line 469 of file JGTowerBase_ID.h.
◆ print()
◆ print_to_string()
or provide the printout in string form
Definition at line 655 of file AtlasDetectorID.cxx.
663 unsigned int max_index = (context) ? context->
end_index() : 999;
694 if (!dict)
return (
result);
◆ reg_range()
◆ region()
return region according to :
GTowers
element range meaning
------- ----- -------
region [0,1] 2 regions of different eta/phi granularity (FCAL and not FCAL)
JTowers
element range meaning
------- ----- -------
region [0,3] 4 regions of different eta/phi granularity
failure returns 0
Definition at line 480 of file JGTowerBase_ID.h.
◆ region_begin()
◆ region_context()
IdContext JGTowerBase_ID::region_context |
( |
void |
| ) |
const |
access to IdContext's which define which levels of fields are contained in the id
id for towers ("reduced" id)
Definition at line 44 of file JGTowerBase_ID.cxx.
◆ region_end()
◆ region_id() [1/4]
◆ region_id() [2/4]
◆ region_id() [3/4]
Identifier JGTowerBase_ID::region_id |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region |
|
) |
| const |
|
inline |
◆ region_id() [4/4]
Identifier JGTowerBase_ID::region_id |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ region_id_checks()
void JGTowerBase_ID::region_id_checks |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region |
|
) |
| const |
|
private |
Definition at line 615 of file JGTowerBase_ID.cxx.
622 std::string errorMessage =
"JGTowerBase_ID::region_id() result is not OK: ID, range = "
◆ register_dict_tag()
int AtlasDetectorID::register_dict_tag |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
Register the file and tag names for a particular IdDict dictionary.
Definition at line 266 of file AtlasDetectorID.cxx.
273 if (!dict)
return(1);
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 284 of file AtlasDetectorID.cxx.
294 ATH_MSG_ERROR(
"reinitialize: dict names and tags vectors not the same length ");
◆ rpc()
◆ rpc_field_value()
int AtlasDetectorID::rpc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sampling()
return sampling according to :
element range meaning
LVL1sampling 0 EM
" 1 Hadronic
failure returns 0
Definition at line 475 of file JGTowerBase_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 565 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 574 of file AtlasDetectorID.cxx.
580 std::string
result(
"Unable to decode id");
581 unsigned int max_index = (context) ? context->
end_index() : 999;
615 if (!dict)
return (
result);
629 for (
unsigned int i = 0;
i < expId.
fields(); ++
i) {
632 sprintf (temp,
"%d", expId[
i]);
◆ stgc()
◆ stgc_field_value()
int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ 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 JGTowerBase_ID::tower_context |
( |
void |
| ) |
const |
access to IdContext's which define which levels of fields are contained in the id
id for towers ("normal" id)
Definition at line 51 of file JGTowerBase_ID.cxx.
◆ tower_end()
◆ tower_hash()
create hash id from tower id
Definition at line 588 of file JGTowerBase_ID.h.
591 return (hc.m_hash + (
eta(towerId)-hc.m_etamin)*hc.m_nphi +
phi(towerId));
◆ tower_hash_binary_search()
◆ tower_hash_max()
◆ tower_id() [1/5]
◆ tower_id() [2/5]
◆ tower_id() [3/5]
◆ tower_id() [4/5]
Identifier JGTowerBase_ID::tower_id |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
inline |
◆ tower_id() [5/5]
Identifier JGTowerBase_ID::tower_id |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ tower_id_checks() [1/2]
void JGTowerBase_ID::tower_id_checks |
( |
const Identifier |
regionId, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 593 of file JGTowerBase_ID.cxx.
601 std::string errorMessage =
"JGTowerBase_ID::tower_id(regionId) result is not OK: ID= "
609 std::string errorMessage =
"JGTowerBase_ID::tower_id(regionId,field values) result is not OK: ID, range = "
◆ tower_id_checks() [2/2]
void JGTowerBase_ID::tower_id_checks |
( |
int |
pos_neg, |
|
|
int |
sampling, |
|
|
int |
region, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 578 of file JGTowerBase_ID.cxx.
587 std::string errorMessage =
"JGTowerBase_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_region_hash_max
size_type JGTowerBase_ID::m_calo_region_hash_max |
|
private |
◆ 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 362 of file AtlasDetectorID.h.
◆ m_do_neighbours
bool AtlasDetectorID::m_do_neighbours {true} |
|
protectedinherited |
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition at line 365 of file AtlasDetectorID.h.
◆ m_eta_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 378 of file AtlasDetectorID.h.
◆ m_full_reg_range
◆ m_full_tower_range
◆ m_fwd_dict
◆ m_FWD_ID
int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_hash_calcs
std::vector<HashCalc> JGTowerBase_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_jgtower_impl
◆ m_jgtower_region_index
size_type JGTowerBase_ID::m_jgtower_region_index |
|
private |
◆ m_lar_dict
◆ m_lar_dm_field
◆ m_LAR_EM_ID
int AtlasDetectorID::m_LAR_EM_ID {1} |
|
privateinherited |
◆ m_LAR_FCAL_ID
int AtlasDetectorID::m_LAR_FCAL_ID {3} |
|
privateinherited |
◆ m_lar_fcal_module_impl
◆ m_LAR_FCAL_MODULE_INDEX
int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999} |
|
privateinherited |
◆ m_LAR_HEC_ID
int AtlasDetectorID::m_LAR_HEC_ID {2} |
|
privateinherited |
◆ m_LAR_ID
int AtlasDetectorID::m_LAR_ID {4} |
|
privateinherited |
◆ m_lar_part_impl
◆ m_LUCID_ID
int AtlasDetectorID::m_LUCID_ID {5} |
|
privateinherited |
◆ m_LUMI_ID
int AtlasDetectorID::m_LUMI_ID {3} |
|
privateinherited |
◆ m_LUMI_PLR_ID
int AtlasDetectorID::m_LUMI_PLR_ID {1} |
|
privateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_lvl1_field
◆ m_lvl1_onl_field
◆ m_MDT_ID
int AtlasDetectorID::m_MDT_ID {0} |
|
privateinherited |
◆ m_MM_ID
int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_msgSvc
IMessageSvc* AtlasDetectorID::m_msgSvc {} |
|
protectedinherited |
◆ m_muon_dict
◆ m_MUON_ID
int AtlasDetectorID::m_MUON_ID {7} |
|
privateinherited |
◆ m_muon_mdt_impl
◆ m_muon_rpc_impl
◆ m_muon_station_name_impl
◆ m_MUON_SUBDET_INDEX
size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_muon_tech_bits
std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits |
|
privateinherited |
◆ m_next_eta_vec
std::vector<unsigned short> JGTowerBase_ID::m_next_eta_vec |
|
private |
◆ m_next_phi_vec
std::vector<unsigned short> JGTowerBase_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> JGTowerBase_ID::m_prev_eta_vec |
|
private |
◆ m_prev_phi_vec
std::vector<unsigned short> JGTowerBase_ID::m_prev_phi_vec |
|
private |
◆ m_quiet
bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_region_impl
◆ m_REGION_INDEX
◆ m_region_vec
std::vector<Identifier> JGTowerBase_ID::m_region_vec |
|
private |
◆ 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
std::vector<Identifier> JGTowerBase_ID::m_tower_vec |
|
private |
◆ m_TRT_ID
int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_vecOfDictRegions
◆ m_ZDC_ID
int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
const std::string & dict_tag(void) const
Access to the dictionary tag.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
id_iterator tower_begin() const
begin iterator over towers
bool is_forward(Identifier id) const
std::vector< const IdDictRegion * > m_vecOfDictRegions
List of IdDictRegion objects.
int eta(const Identifier id) const
return eta according to :
MultiRange build_multirange() const
Get MultiRange for full dictionary.
std::vector< unsigned int > m_muon_tech_bits
int fill_vec_of_dict_regions(const std::string &group_name="")
int unpack(const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier, considering the provided prefix (result will incl...
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
IdDictFieldImplementation m_indet_part_impl
AtlasDetectorIDHelper * m_helper
std::vector< unsigned short > m_prev_eta_vec
bool is_lar_fcal(Identifier id) const
Exception class for Calo Identifiers.
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
void tower_id_checks(int pos_neg, int sampling, int region, int eta, int phi) const
IdentifierHash calo_region_hash(const Identifier id) const
IdentifierHash tower_hash(Identifier towerId) const
create hash id from tower id
element_type get_minimum() const
Query the values.
int phi(const Identifier id) const
return phi according to :
size_type end_index() const
int calo_field_value() 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)
IdDictFieldImplementation m_sampling_impl
void add(element_type value)
Append a value into a new field.
IdContext tower_context(void) const
access to IdContext's which define which levels of fields are contained in the id
std::vector< unsigned short > m_next_eta_vec
int sampling(const Identifier id) const
return sampling according to :
int region(const Identifier id) const
return region according to :
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
void show() const
Send to std::cout.
IMessageSvc * m_msgSvc
pointer to the message service
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
std::string m_dict_version
element_type get_maximum() const
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
IdDictFieldImplementation m_region_impl
std::vector< Identifier > m_region_vec
int lar_field_value() const
IdDictFieldImplementation m_pnz_reg_impl
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
std::vector< unsigned short > m_prev_phi_vec
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 region_end() const
end iterator over regions
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
MultiRange m_full_reg_range
boost::iterator_range< id_iterator > id_range
Type for range over identifiers.
size_type m_calo_region_hash_max
std::vector< HashCalc > m_hash_calcs
id_iterator tower_end() const
end iterator over towers
friend class AtlasDetectorIDHelper
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
size_type m_SAMPLING_INDEX
size_type m_jgtower_region_index
bool match(element_type value) const
The basic match operation.
id_iterator region_begin() const
begin iterator over regions
Range::field m_tile_dm_field
size_type begin_index() const
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
msgSvc
Provide convenience handles for various services.
IdDictDictionary * m_calo_dict
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:
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
size_type bits_offset() const
bool is_tile_dm(Identifier id) const
std::vector< IdDictRegion * > m_regions
std::vector< Identifier > m_tower_vec
IdDictDictionary * m_fwd_dict
bool get_next(element_type current, element_type &next) const
bool is_tile(Identifier id) const
int initialize_from_dictionary(const IdDictMgr &dict_mgr, bool quiet)
Initialization from the identifier dictionary.
std::vector< unsigned short > m_next_phi_vec
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
const IdDictDictionary * m_dict
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
bool is_calo(Identifier id) const
const std::string & file_name(void) const
Access to file name.
int tile_field_value() const
void region_id_checks(int pos_neg, int sampling, int region) 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
Identifier region_id(int pos_neg, int sampling, int region) const
build a region (of towers) identifier
IdDictFieldImplementation m_jgtower_impl
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 calo_exp(void) const
size_type m_tower_hash_max
ExpandedIdentifier fwd_exp(void) const
IdContext region_context(void) const
access to IdContext's which define which levels of fields are contained in the id
IdDictFieldImplementation m_muon_station_name_impl
size_type m_DETZSIDE_INDEX
Identifier tower_id(int pos_neg, int sampling, int region, int eta, int phi) const
build a tower identifier
struct TBPatternUnitContext Muon
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:
int pos_neg(const Identifier id) const
return pos_neg according to :
IdentifierHash tower_hash_binary_search(Identifier towerId) const
create hash id from tower id – method NOT optimised, please use tower_hash() above
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
Data object for each calorimeter readout cell.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
std::string m_nm
Message source name.
int initLevelsFromDict(const std::string &t_pre)
int eta_min(const Identifier regId) const
min value of eta index (-999 == failure)
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
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
IdDictFieldImplementation m_phi_impl
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...
int initLevelsFromDict(const IdDictMgr &dict_mgr)
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
MultiRange m_full_tower_range
IdDictFieldImplementation m_calo_impl
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.
constexpr std::initializer_list< int > Tile
Range::field m_lvl1_field
Identifier::size_type size_type
IdDictFieldImplementation m_eta_impl