 |
ATLAS Offline Software
|
#include <TgcIdHelper.h>
|
| typedef Identifier::size_type | size_type |
| |
| typedef MultiRange::const_identifier_factory | const_expanded_id_iterator |
| |
| typedef std::vector< Identifier >::const_iterator | const_id_iterator |
| |
| 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...
|
| |
|
| | TgcIdHelper () |
| |
| virtual | ~TgcIdHelper ()=default |
| |
| virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) override |
| | Initialization from the identifier dictionary. More...
|
| |
| virtual int | get_module_hash (const Identifier &id, IdentifierHash &hash_id) const override |
| |
| virtual int | get_detectorElement_hash (const Identifier &id, IdentifierHash &hash_id) const override |
| |
| Identifier | elementID (int stationName, int stationEta, int stationPhi) const |
| |
| Identifier | elementID (int stationName, int stationEta, int stationPhi, bool &isValid) const |
| |
| Identifier | elementID (const std::string &stationNameStr, int stationEta, int stationPhi) const |
| |
| Identifier | elementID (const std::string &stationNameStr, int stationEta, int stationPhi, bool &isValid) const |
| |
| Identifier | elementID (const Identifier &channelID) const |
| |
| Identifier | channelID (int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const |
| |
| Identifier | channelID (int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel, bool &isValid) const |
| |
| Identifier | channelID (const std::string &stationNameStr, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const |
| |
| Identifier | channelID (const std::string &stationNameStr, int stationEta, int stationPhi, int gasGap, int isStrip, int channel, bool &isValid) const |
| |
| Identifier | channelID (const Identifier &id, int gasGap, int isStrip, int channel) const |
| |
| Identifier | channelID (const Identifier &id, int gasGap, int isStrip, int channel, bool &isValid) const |
| |
| Identifier | parentID (const Identifier &id) const |
| |
| void | idChannels (const Identifier &id, std::vector< Identifier > &vect) const |
| |
| int | gasGap (const Identifier &id) const override |
| | get the hashes More...
|
| |
| int | isStrip (const Identifier &id) const |
| | isStrip corresponds to measuresPhi More...
|
| |
| bool | measuresPhi (const Identifier &id) const override |
| |
| int | channel (const Identifier &id) const override |
| |
| int | stationEtaMin (const Identifier &id) const |
| |
| int | stationEtaMax (const Identifier &id) const |
| |
| int | stationPhiMin (const Identifier &id) const |
| |
| int | stationPhiMax (const Identifier &id) const |
| |
| int | gasGapMin (const Identifier &id) const |
| |
| int | gasGapMax (const Identifier &id) const |
| |
| int | isStripMin (const Identifier &id) const |
| |
| int | isStripMax (const Identifier &id) const |
| |
| int | channelMin (const Identifier &id) const |
| |
| int | channelMax (const Identifier &id) const |
| |
| int | chamberType (int stationName, int stationEta) const |
| |
| bool | valid (const Identifier &id) const |
| |
| bool | validElement (const Identifier &id) const |
| |
| Identifier | muon () const |
| |
| bool | is_muon (const Identifier &id) const |
| |
| bool | is_mdt (const Identifier &id) const |
| |
| bool | is_csc (const Identifier &id) const |
| |
| bool | is_rpc (const Identifier &id) const |
| |
| bool | is_tgc (const Identifier &id) const |
| |
| bool | is_stgc (const Identifier &id) const |
| |
| bool | is_mm (const Identifier &id) const |
| |
| int | stationName (const Identifier &id) const |
| |
| int | stationEta (const Identifier &id) const |
| |
| int | stationPhi (const Identifier &id) const |
| |
| int | technology (const Identifier &id) const |
| |
| int | stationRegion (const Identifier &id) const |
| |
| bool | isBarrel (const Identifier &id) const |
| |
| bool | isBarrel (const int &stationNameIndex) const |
| |
| bool | isEndcap (const Identifier &id) const |
| |
| bool | isEndcap (const int &stationNameIndex) const |
| |
| bool | isForward (const Identifier &id) const |
| |
| bool | isForward (const int &stationNameIndex) const |
| |
| bool | isSmall (const Identifier &id) const |
| |
| bool | isSmall (const int &stationNameIndex) const |
| |
| int | stationNameIndex (const std::string &name) const |
| |
| int | technologyIndex (const std::string &name) const |
| |
| const std::string & | stationNameString (const int &index) const |
| |
| const std::string & | technologyString (const int &index) const |
| |
| int | nStationNames () const |
| |
| bool | isInitialized () const |
| |
| IdContext | technology_context () const |
| | access to IdContext's which define which levels or fields are contained in the Muon id More...
|
| |
| IdContext | module_context () const |
| | id for module More...
|
| |
| IdContext | detectorElement_context () const |
| | id for detector element More...
|
| |
| IdContext | channel_context () const |
| | id for channel More...
|
| |
| virtual int | get_channel_hash (const Identifier &id, IdentifierHash &hash_id) const |
| |
| virtual int | get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override |
| | Create compact id from hash id (return == 0 for OK) More...
|
| |
| int | get_id (const ExpandedIdentifier &old_id, Identifier &new_id) const |
| | Create Identifier from expanded id, which is returned by the id_iterators. More...
|
| |
| virtual int | get_hash (const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override |
| | Create hash id from compact id (return == 0 for OK) More...
|
| |
| int | get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const |
| | Create expanded id from compact id (return == 0 for OK) More...
|
| |
| const MultiRange & | multiRange () const |
| | multirange More...
|
| |
| size_type | module_hash_max () const |
| | the maximum hash value More...
|
| |
| size_type | detectorElement_hash_max () const |
| |
| size_type | channel_hash_max () const |
| |
| const std::vector< Identifier > & | idVector () const |
| | the id's More...
|
| |
| const_id_iterator | module_begin () const |
| | Iterators over full set of ids. More...
|
| |
| const_id_iterator | module_end () const |
| |
| const_id_iterator | detectorElement_begin () const |
| | Iterators over full set of ids. More...
|
| |
| const_id_iterator | detectorElement_end () const |
| |
| const_id_iterator | channel_begin () const |
| | Iterators over full set of ids. More...
|
| |
| const_id_iterator | channel_end () const |
| |
| int | get_prev_in_phi (const IdentifierHash &id, IdentifierHash &prev) const |
| | Access to hashes for neighbors in phi and eta (return == 0 for neighbor found) More...
|
| |
| int | get_next_in_phi (const IdentifierHash &id, IdentifierHash &next) const |
| |
| int | get_prev_in_eta (const IdentifierHash &id, IdentifierHash &prev) const |
| |
| int | get_next_in_eta (const IdentifierHash &id, IdentifierHash &next) const |
| |
| void | test_module_packing () const |
| | Tests of packing. More...
|
| |
| void | test_id (const Identifier &id, const IdContext &context) const |
| |
| int | stationNameIndexMax () const |
| |
| int | technologyNameIndexMax () 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 | initLevelsFromDict () |
| |
| int | init_hashes () |
| |
| virtual int | init_detectorElement_hashes () |
| |
| int | init_channel_hashes () |
| |
| int | init_neighbors () |
| |
| int | get_expanded_id_calc (const Identifier &compact_id, ExpandedIdentifier &id, const IdContext *context) const |
| |
| int | get_compact_id (const ExpandedIdentifier &id, Identifier &compact_id, const IdContext *context) const |
| |
| virtual int | get_hash_calc (const Identifier &compact_id, IdentifierHash &hash_id, const IdContext *context) const |
| |
| bool | validStation (int stationName, int technology) const |
| |
| bool | validStation (int stationName) const |
| |
| bool | validTechnology (int technology) const |
| |
| void | addStationID (Identifier &id, int stationName, int stationEta, int stationPhi, int technology) const |
| |
| void | resetAndSet (const IdDictFieldImplementation &dict, const int new_val, Identifier &id) const |
| |
|
| enum | TgcIndices { GasGapIndex = 5,
IsStripIndex = 6,
ChannelIndex = 7
} |
| |
| enum | TgcRanges {
StationEtaMin = -8,
StationEtaMax = 8,
StationPhiEndcapMin = 1,
StationPhiEndcapMax = 48,
StationPhiForwardMin = 1,
StationPhiForwardMax = 24,
GasGapMin = 1,
GasGapDoubletMax = 2,
GasGapTripletMax = 3,
IsStripMin = 0,
IsStripMax = 1,
ChannelMin = 1,
ChannelMax = 135
} |
| |
| enum | MuonIndices { StationNameIndex = 1,
StationEtaIndex = 2,
StationPhiIndex = 3,
TechnologyIndex = 4
} |
| |
Definition at line 50 of file TgcIdHelper.h.
◆ const_expanded_id_iterator
◆ const_id_iterator
◆ hash_vec
◆ hash_vec_it
◆ id_vec
◆ id_vec_it
◆ size_type
◆ HelperType
enum class for eventual final derived types of this class
| Enumerator |
|---|
| Unimplemented | |
| Silicon | |
| Pixel | |
| PLR | |
| SCT | |
| TRT | |
| LArEM | |
| LArFCal | |
| LArFCalSuperCell | |
| LArHEC | |
| LArHEC_SuperCell | |
| LARMiniFCal | |
| Tile | |
| TileSuperCell | |
| LArOnline | |
| LArOnlineSuperCell | |
| LArElectrode | |
| LArHVLine | |
| TileHardware | |
| TileTestbeam | |
| CaloCell | |
| CaloSuperCell | |
| CaloDM | |
| CaloLvl1 | |
| GTower | |
| JTower | |
| Muon | |
| LUCID | |
| LUCID_Hardware | |
| Zdc | |
| ZdcHardware | |
| TT | |
Definition at line 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
◆ MuonIndices
| Enumerator |
|---|
| StationNameIndex | |
| StationEtaIndex | |
| StationPhiIndex | |
| TechnologyIndex | |
Definition at line 336 of file MuonIdHelper.h.
◆ TgcIndices
| Enumerator |
|---|
| GasGapIndex | |
| IsStripIndex | |
| ChannelIndex | |
Definition at line 181 of file TgcIdHelper.h.
◆ TgcRanges
| Enumerator |
|---|
| StationEtaMin | |
| StationEtaMax | |
| StationPhiEndcapMin | |
| StationPhiEndcapMax | |
| StationPhiForwardMin | |
| StationPhiForwardMax | |
| GasGapMin | |
| GasGapDoubletMax | |
| GasGapTripletMax | |
| IsStripMin | |
| IsStripMax | |
| ChannelMin | |
| ChannelMax | |
Definition at line 185 of file TgcIdHelper.h.
◆ TgcIdHelper()
| TgcIdHelper::TgcIdHelper |
( |
| ) |
|
◆ ~TgcIdHelper()
| virtual TgcIdHelper::~TgcIdHelper |
( |
| ) |
|
|
virtualdefault |
◆ addStationID() [1/2]
| void MuonIdHelper::addStationID |
( |
ExpandedIdentifier & |
id, |
|
|
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
technology |
|
) |
| |
|
staticprotectedinherited |
◆ addStationID() [2/2]
| void MuonIdHelper::addStationID |
( |
Identifier & |
id, |
|
|
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
technology |
|
) |
| const |
|
protectedinherited |
◆ 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 |
◆ chamberType() [1/2]
| int TgcIdHelper::chamberType |
( |
const std::string & |
stationName, |
|
|
int |
stationEta |
|
) |
| |
|
static |
◆ chamberType() [2/2]
| int TgcIdHelper::chamberType |
( |
int |
stationName, |
|
|
int |
stationEta |
|
) |
| const |
◆ channel()
◆ channel_begin()
Iterators over full set of ids.
Channel iterator is sorted
Definition at line 772 of file MuonIdHelper.cxx.
◆ channel_context()
| IdContext MuonIdHelper::channel_context |
( |
| ) |
const |
|
inherited |
◆ channel_end()
◆ channel_hash_max()
◆ channelID() [1/6]
◆ channelID() [2/6]
◆ channelID() [3/6]
| Identifier TgcIdHelper::channelID |
( |
const std::string & |
stationNameStr, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
gasGap, |
|
|
int |
isStrip, |
|
|
int |
channel |
|
) |
| const |
◆ channelID() [4/6]
| Identifier TgcIdHelper::channelID |
( |
const std::string & |
stationNameStr, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
gasGap, |
|
|
int |
isStrip, |
|
|
int |
channel, |
|
|
bool & |
isValid |
|
) |
| const |
◆ channelID() [5/6]
| Identifier TgcIdHelper::channelID |
( |
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
gasGap, |
|
|
int |
isStrip, |
|
|
int |
channel |
|
) |
| const |
◆ channelID() [6/6]
| Identifier TgcIdHelper::channelID |
( |
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
gasGap, |
|
|
int |
isStrip, |
|
|
int |
channel, |
|
|
bool & |
isValid |
|
) |
| const |
◆ channelMax() [1/2]
| int TgcIdHelper::channelMax |
( |
| ) |
|
|
static |
◆ channelMax() [2/2]
◆ channelMin() [1/2]
| int TgcIdHelper::channelMin |
( |
| ) |
|
|
static |
◆ channelMin() [2/2]
◆ csc()
◆ csc_field_value()
| int AtlasDetectorID::csc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ detectorElement_begin()
Iterators over full set of ids.
detector element iterator is sorted
Definition at line 768 of file MuonIdHelper.cxx.
◆ detectorElement_context()
| IdContext MuonIdHelper::detectorElement_context |
( |
| ) |
const |
|
inherited |
◆ detectorElement_end()
◆ detectorElement_hash_max()
| size_type MuonIdHelper::detectorElement_hash_max |
( |
| ) |
const |
|
inlineinherited |
◆ 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.
◆ elementID() [1/5]
◆ elementID() [2/5]
| Identifier TgcIdHelper::elementID |
( |
const std::string & |
stationNameStr, |
|
|
int |
stationEta, |
|
|
int |
stationPhi |
|
) |
| const |
◆ elementID() [3/5]
| Identifier TgcIdHelper::elementID |
( |
const std::string & |
stationNameStr, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
bool & |
isValid |
|
) |
| const |
◆ elementID() [4/5]
| Identifier TgcIdHelper::elementID |
( |
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi |
|
) |
| const |
◆ elementID() [5/5]
| Identifier TgcIdHelper::elementID |
( |
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
bool & |
isValid |
|
) |
| const |
◆ endcapChamber()
| bool TgcIdHelper::endcapChamber |
( |
int |
stationName | ) |
const |
|
private |
◆ 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()
◆ gasGap()
◆ gasGapMax() [1/2]
| int TgcIdHelper::gasGapMax |
( |
bool |
triplet | ) |
|
|
static |
◆ gasGapMax() [2/2]
◆ gasGapMin() [1/2]
| int TgcIdHelper::gasGapMin |
( |
| ) |
|
|
static |
◆ gasGapMin() [2/2]
◆ get_channel_hash()
◆ get_compact_id()
Definition at line 208 of file MuonIdHelper.cxx.
214 for (
size_t i = 0;
i <
id.fields();
i++) exp_id[
i] =
id[
i];
218 size_t end = (context) ? context->
end_index() :
id.fields() - 1;
◆ get_detectorElement_hash()
◆ get_expanded_id()
Create expanded id from compact id (return == 0 for OK)
Definition at line 164 of file MuonIdHelper.cxx.
◆ get_expanded_id_calc()
◆ get_hash()
◆ get_hash_calc()
|
|
protectedvirtualinherited |
◆ get_id() [1/2]
◆ get_id() [2/2]
◆ get_module_hash()
◆ get_next_in_eta()
◆ get_next_in_phi()
◆ get_prev_in_eta()
◆ get_prev_in_phi()
Access to hashes for neighbors in phi and eta (return == 0 for neighbor found)
Definition at line 488 of file MuonIdHelper.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 |
◆ idChannels()
◆ idVector()
◆ 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_channel_hashes()
| int MuonIdHelper::init_channel_hashes |
( |
| ) |
|
|
protectedinherited |
Definition at line 448 of file MuonIdHelper.cxx.
459 unsigned int nids = 0;
460 std::set<Identifier>
ids;
464 for (
const auto & expId:rit) {
468 if (!(
ids.insert(
id)).second) {
470 <<
" Error: duplicated id for channel id. nid " << nids <<
" compact id " <<
id <<
" id ");
479 <<
" Error: set size NOT EQUAL to hash max. size " <<
ids.size() <<
" hash max " <<
m_channel_hash_max);
◆ init_detectorElement_hashes()
| int MuonIdHelper::init_detectorElement_hashes |
( |
| ) |
|
|
protectedvirtualinherited |
Reimplemented in RpcIdHelper.
Definition at line 402 of file MuonIdHelper.cxx.
413 unsigned int nids = 0;
414 std::set<Identifier>
ids;
418 for (
const auto & expId:rit) {
421 if (!(
ids.insert(
id)).second) {
423 <<
" Error: duplicated id for channel id. nid " << nids <<
" compact id " <<
id <<
" id ");
437 std::set<Identifier>::const_iterator
first =
ids.begin();
438 std::set<Identifier>::const_iterator last =
ids.end();
◆ init_hashes()
| int MuonIdHelper::init_hashes |
( |
| ) |
|
|
protectedinherited |
Definition at line 356 of file MuonIdHelper.cxx.
367 unsigned int nids = 0;
368 std::set<Identifier>
ids;
372 for (
const auto & expId:rit) {
375 if (!(
ids.insert(
id)).second) {
377 <<
" Error: duplicated id for module id. nid " << (
int)nids <<
" compact id " <<
id <<
" id ");
385 <<
" Error: set size NOT EQUAL to element hash max. size " <<
ids.size() <<
" hash max " <<
m_module_hash_max);
391 std::set<Identifier>::const_iterator
first =
ids.begin();
392 std::set<Identifier>::const_iterator last =
ids.end();
◆ init_id_to_hashes()
| int TgcIdHelper::init_id_to_hashes |
( |
| ) |
|
|
private |
◆ init_neighbors()
| int MuonIdHelper::init_neighbors |
( |
| ) |
|
|
protectedinherited |
Definition at line 528 of file MuonIdHelper.cxx.
545 for (
const auto &
id: rit) {
562 if (
get_hash(compact_id, hash_id, &wcontext)) {
563 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get hash, exp/compact "
564 <<
" " << std::hex << compact_id << std::dec <<
endmsg);
568 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get compact, exp/compact ");
573 unsigned short index = hash_id;
585 if (
get_hash(compact_id, hash_id, &wcontext)) {
586 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get previous phi hash, exp/compact "
587 <<
" " << std::hex << compact_id << std::dec);
591 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get previous phi compact, exp/compact ");
603 if (
get_hash(compact_id, hash_id, &wcontext)) {
604 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get next phi hash, exp/compact "
605 <<
" " << std::hex << compact_id << std::dec);
609 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get next phi compact, exp/compact ");
621 if (
get_hash(compact_id, hash_id, &wcontext)) {
622 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get previous eta hash, exp/compact "
623 <<
" " << std::hex << compact_id << std::dec);
627 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get previous eta compact, exp/compact ");
639 if (
get_hash(compact_id, hash_id, &wcontext)) {
640 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get next eta hash, exp/compact "
641 <<
" " << std::hex << compact_id << std::dec);
645 ATH_MSG_ERROR(
" MuonIdHelper::init_neighbors - unable to get next eta compact, exp/compact ");
◆ initialize_from_dictionary()
| int TgcIdHelper::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
overridevirtual |
Initialization from the identifier dictionary.
test to see that the detector element multi range is not empty
Reimplemented from MuonIdHelper.
Definition at line 18 of file TgcIdHelper.cxx.
23 ATH_MSG_INFO(
"Request to reinitialize not satisfied - tags have not changed");
37 ATH_MSG_ERROR(
" initialize_from_dict - cannot access MuonSpectrometer dictionary ");
48 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'tgcGasGap' field ");
56 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'isStrip' field ");
64 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find channel' field ");
87 ATH_MSG_DEBUG(
" TGC decode index and bit fields for each level: " << std::endl
102 if (atlasDict->
get_label_value(
"subdet",
"MuonSpectrometer", muonField)) {
103 ATH_MSG_ERROR(
"Could not get value for label 'MuonSpectrometer' of field 'subdet' in dictionary " << atlasDict->
name());
112 if (muon_range.
size() > 0) {
113 ATH_MSG_INFO(
"MultiRange built successfully to Technology: "
114 <<
"MultiRange size is " << muon_range.
size());
122 detectorElement_region.
add(muonField);
123 Range detectorElement_prefix;
125 if (muon_detectorElement_range.
size() > 0) {
126 ATH_MSG_INFO(
"MultiRange built successfully to detector element: "
127 <<
"Multilayer MultiRange size is " << muon_detectorElement_range.
size());
129 ATH_MSG_ERROR(
"Muon TGC detector element MultiRange is empty");
134 tgc_region.
add(muonField);
137 if (muon_channel_range.
size() > 0) {
138 ATH_MSG_INFO(
"MultiRange built successfully to channel: "
139 <<
"MultiRange size is " << muon_channel_range.
size());
149 for (
int i = 0;
i < (
int)muon_range.
size(); ++
i) {
160 for (
int j = 0; j < (
int)muon_detectorElement_range.
size(); ++j) {
161 const Range&
range = muon_detectorElement_range[j];
166 ATH_MSG_DEBUG(
"detector element field size is " << (
int)
range.cardinality() <<
" field index = " << j);
171 for (
int j = 0; j < (
int)muon_channel_range.
size(); ++j) {
177 ATH_MSG_DEBUG(
"channel field size is " << (
int)
range.cardinality() <<
" field index = " << j);
191 ATH_MSG_ERROR(
"TGC MultiRange ID is empty for detector elements");
208 ATH_MSG_INFO(
"Initializing TGC hash indices for finding neighbors ... ");
◆ initLevelsFromDict()
| int MuonIdHelper::initLevelsFromDict |
( |
| ) |
|
|
protectedinherited |
Definition at line 249 of file MuonIdHelper.cxx.
251 ATH_MSG_ERROR(
" initLevelsFromDict - dictionary NOT initialized ");
267 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find a muon station index: id, reg"
278 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'subdet' field ");
287 for (
size_t i = 0;
i <
field->get_label_number();
i++) {
295 if (
'B' ==
name[0]) {
301 }
else if (
'F' ==
name[2]) {
309 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'stationName' field ");
316 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'stationEta' field ");
323 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'stationPhi' field ");
331 for (
size_t i = 0;
i <
field->get_label_number(); ++
i) {
341 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'technology' field ");
◆ 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/3]
◆ is_csc() [2/3]
◆ is_csc() [3/3]
| 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/3]
◆ is_mdt() [2/3]
◆ is_mdt() [3/3]
| bool AtlasDetectorID::is_mdt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mm() [1/3]
◆ is_mm() [2/3]
◆ is_mm() [3/3]
| bool AtlasDetectorID::is_mm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_muon() [1/3]
◆ is_muon() [2/3]
◆ is_muon() [3/3]
| 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/3]
◆ is_rpc() [2/3]
◆ is_rpc() [3/3]
| 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/3]
◆ is_stgc() [2/3]
◆ is_stgc() [3/3]
| bool AtlasDetectorID::is_stgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tgc() [1/3]
◆ is_tgc() [2/3]
◆ is_tgc() [3/3]
| 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 |
◆ isBarrel() [1/2]
◆ isBarrel() [2/2]
| bool MuonIdHelper::isBarrel |
( |
const int & |
stationNameIndex | ) |
const |
|
inherited |
◆ isEndcap() [1/2]
◆ isEndcap() [2/2]
| bool MuonIdHelper::isEndcap |
( |
const int & |
stationNameIndex | ) |
const |
|
inherited |
◆ isForward() [1/2]
◆ isForward() [2/2]
| bool MuonIdHelper::isForward |
( |
const int & |
stationNameIndex | ) |
const |
|
inherited |
◆ isInitialized()
| bool MuonIdHelper::isInitialized |
( |
| ) |
const |
|
inherited |
◆ isSmall() [1/2]
◆ isSmall() [2/2]
| bool MuonIdHelper::isSmall |
( |
const int & |
stationNameIndex | ) |
const |
|
inherited |
◆ isStNameInTech()
| bool TgcIdHelper::isStNameInTech |
( |
const std::string & |
stationName | ) |
const |
|
overrideprivatevirtual |
The valid element checks converted the identifier to a stationName string in order to assess whether the stationName is good or not.
However, the valid stations can be cached during initialization stage. For eacb stationName found in the dict, this method is called and the corresponding index is added to the stationToTech set
Implements MuonIdHelper.
Definition at line 493 of file TgcIdHelper.cxx.
493 {
return 'T' ==
name[0]; }
◆ isStrip()
isStrip corresponds to measuresPhi
returns measuresPhi
Definition at line 650 of file TgcIdHelper.cxx.
◆ isStripMax() [1/2]
| int TgcIdHelper::isStripMax |
( |
| ) |
|
|
static |
◆ isStripMax() [2/2]
◆ isStripMin() [1/2]
| int TgcIdHelper::isStripMin |
( |
| ) |
|
|
static |
◆ isStripMin() [2/2]
◆ 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 |
◆ measuresPhi()
◆ mm()
◆ mm_field_value()
| int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ module_begin()
Iterators over full set of ids.
Module iterator is sorted
Definition at line 764 of file MuonIdHelper.cxx.
◆ module_context()
| IdContext MuonIdHelper::module_context |
( |
| ) |
const |
|
inherited |
◆ module_end()
◆ module_hash_max()
◆ moduleHashIdx()
Unfold the array [A][B][C] by a * BxC + b * C + c
Definition at line 215 of file TgcIdHelper.cxx.
◆ 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.
◆ multiRange()
◆ muon()
◆ muon_exp()
◆ muon_field_value()
| int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ nStationNames()
| int MuonIdHelper::nStationNames |
( |
| ) |
const |
|
inherited |
◆ parentID()
◆ pixel()
◆ pixel_exp()
◆ pixel_field_value()
| int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ plr_field_value()
| int AtlasDetectorID::plr_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ print()
◆ print_to_string()
or provide the printout in string form
Definition at line 427 of file AtlasDetectorID.cxx.
434 unsigned int max_index = (context) ? context->
end_index() : 999;
458 ATH_MSG_WARNING(__func__<<
":"<<__LINE__<<
" No dictionary could be associated to "<<
id);
◆ register_dict_tag()
| int AtlasDetectorID::register_dict_tag |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 221 of file AtlasDetectorID.cxx.
232 ATH_MSG_ERROR(
"reinitialize: dict names and tags vectors not the same length ");
◆ resetAndSet()
◆ rpc()
◆ rpc_field_value()
| int AtlasDetectorID::rpc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sct()
◆ sct_exp()
◆ sct_field_value()
| int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ set_do_checks()
| void AtlasDetectorID::set_do_checks |
( |
bool |
do_checks | ) |
|
|
overridevirtualinherited |
◆ set_do_neighbours()
| void AtlasDetectorID::set_do_neighbours |
( |
bool |
do_neighbours | ) |
|
|
overridevirtualinherited |
◆ set_quiet()
| void AtlasDetectorID::set_quiet |
( |
bool |
quiet | ) |
|
|
inherited |
◆ setDictVersion()
|
|
overrideprotectedvirtualinherited |
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setMessageSvc()
| void AtlasDetectorID::setMessageSvc |
( |
IMessageSvc * |
msgSvc | ) |
|
|
overridevirtualinherited |
◆ show()
Short print out of any identifier (optionally provide separation character - default is '.
'):
Definition at line 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) {
◆ stationEta()
◆ stationEtaMax() [1/2]
| int TgcIdHelper::stationEtaMax |
( |
| ) |
|
|
static |
◆ stationEtaMax() [2/2]
◆ stationEtaMin() [1/2]
| int TgcIdHelper::stationEtaMin |
( |
| ) |
|
|
static |
◆ stationEtaMin() [2/2]
◆ stationName()
◆ stationNameIndex()
| int MuonIdHelper::stationNameIndex |
( |
const std::string & |
name | ) |
const |
|
inherited |
◆ stationNameIndexMax()
| int MuonIdHelper::stationNameIndexMax |
( |
| ) |
const |
|
inherited |
◆ stationNameString()
| const std::string & MuonIdHelper::stationNameString |
( |
const int & |
index | ) |
const |
|
inherited |
◆ stationPhi()
◆ stationPhiMax() [1/2]
| int TgcIdHelper::stationPhiMax |
( |
bool |
endcap | ) |
|
|
static |
◆ stationPhiMax() [2/2]
◆ stationPhiMin() [1/2]
| int TgcIdHelper::stationPhiMin |
( |
bool |
endcap | ) |
|
|
static |
◆ stationPhiMin() [2/2]
◆ stationRegion()
Definition at line 719 of file MuonIdHelper.cxx.
722 if (
name.size() >= 2) {
723 if (
'I' ==
name[1] ||
'4' ==
name[1])
return 0;
724 if (
'E' ==
name[1] ||
'1' ==
name[1])
return 1;
725 if (
'M' ==
name[1] ||
'2' ==
name[1])
return 2;
726 if (
'O' ==
name[1] ||
'3' ==
name[1])
return 3;
728 if (
name ==
"CSS" ||
name ==
"CSL")
return 0;
◆ stgc()
◆ stgc_field_value()
| int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
| IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ technology()
◆ technology_context()
| IdContext MuonIdHelper::technology_context |
( |
| ) |
const |
|
inherited |
◆ technologyIndex()
| int MuonIdHelper::technologyIndex |
( |
const std::string & |
name | ) |
const |
|
inherited |
◆ technologyNameIndexMax()
| int MuonIdHelper::technologyNameIndexMax |
( |
| ) |
const |
|
inherited |
◆ technologyString()
| const std::string & MuonIdHelper::technologyString |
( |
const int & |
index | ) |
const |
|
inherited |
◆ test_id()
Definition at line 687 of file MuonIdHelper.cxx.
691 ATH_MSG_ERROR(
"Unable to get expanded id. Compact id " << compact);
699 if (compact != new_compact) {
700 ATH_MSG_ERROR(
"new and old compacts not equal. New/old/expanded ids " << new_compact <<
" " << compact <<
" "
◆ test_module_packing()
| void MuonIdHelper::test_module_packing |
( |
| ) |
const |
|
inherited |
Tests of packing.
Definition at line 656 of file MuonIdHelper.cxx.
666 ATH_MSG_ERROR(
"test_module_packing: Unable to get expanded id. Compact id " << compact);
671 ATH_MSG_ERROR(
"test_module_packing: Unable to get compact id. Expanded id " << std::string(
id));
674 if (compact != new_compact) {
675 ATH_MSG_ERROR(
"test_module_packing: new and old compacts not equal "
676 <<
"New/old/expanded ids " << new_compact <<
" " << compact <<
" " << std::string(
id));
681 ATH_MSG_INFO(
"test_module_packing: Successful tested " << nids <<
" ids. ");
683 ATH_MSG_ERROR(
"Unable to test module is packing - no dictionary has been defined. ");
◆ tgc()
◆ tgc_field_value()
| int AtlasDetectorID::tgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tgcTechnology()
| int TgcIdHelper::tgcTechnology |
( |
| ) |
const |
|
private |
◆ tile()
◆ tile_dm()
| Identifier AtlasDetectorID::tile_dm |
( |
void |
| ) |
const |
|
inherited |
◆ tile_exp()
◆ tile_field_value()
| int AtlasDetectorID::tile_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ to_range()
◆ tripletChamber()
| bool TgcIdHelper::tripletChamber |
( |
int |
stationName | ) |
const |
|
private |
◆ trt()
◆ trt_exp()
◆ trt_field_value()
| int AtlasDetectorID::trt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ valid()
◆ validChannel()
| bool TgcIdHelper::validChannel |
( |
const Identifier & |
id, |
|
|
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi, |
|
|
int |
gasGap, |
|
|
int |
isStrip, |
|
|
int |
channel |
|
) |
| const |
|
private |
◆ validElement() [1/2]
◆ validElement() [2/2]
| bool TgcIdHelper::validElement |
( |
const Identifier & |
id, |
|
|
int |
stationName, |
|
|
int |
stationEta, |
|
|
int |
stationPhi |
|
) |
| const |
|
private |
◆ validStation() [1/2]
| bool MuonIdHelper::validStation |
( |
int |
stationName | ) |
const |
|
protectedinherited |
◆ validStation() [2/2]
| bool MuonIdHelper::validStation |
( |
int |
stationName, |
|
|
int |
technology |
|
) |
| const |
|
protectedinherited |
◆ validTechnology()
| bool MuonIdHelper::validTechnology |
( |
int |
technology | ) |
const |
|
protectedinherited |
◆ 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 |
◆ BAD_NAME
| const std::string MuonIdHelper::BAD_NAME = "UNKNOWN" |
|
staticinherited |
◆ 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_side_impl
◆ m_cha_impl
◆ m_channel_hash_max
| size_type MuonIdHelper::m_channel_hash_max {0} |
|
protectedinherited |
◆ m_CHANNEL_INDEX
◆ m_channel_vec
| id_vec MuonIdHelper::m_channel_vec |
|
protectedinherited |
◆ m_CSC_ID
| int AtlasDetectorID::m_CSC_ID {1} |
|
privateinherited |
◆ m_det_impl
◆ m_DET_INDEX
◆ m_detectorElement_hash_max
| size_type MuonIdHelper::m_detectorElement_hash_max {0} |
|
protectedinherited |
◆ m_DETECTORELEMENT_INDEX
| size_type MuonIdHelper::m_DETECTORELEMENT_INDEX {5} |
|
protectedinherited |
◆ m_detectorElement_vec
| id_vec MuonIdHelper::m_detectorElement_vec |
|
protectedinherited |
◆ 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_channel_range
◆ m_full_detectorElement_range
| MultiRange MuonIdHelper::m_full_detectorElement_range |
|
protectedinherited |
◆ m_full_module_range
◆ m_fwd_dict
◆ m_FWD_ID
| int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_gap_impl
◆ m_GASGAP_INDEX
◆ m_group
| std::string AtlasDetectorID::m_group |
|
protectedinherited |
◆ m_GROUP_INDEX
| size_t MuonIdHelper::m_GROUP_INDEX {6500} |
|
protectedinherited |
◆ m_helper
◆ m_HGTD_ID
| int AtlasDetectorID::m_HGTD_ID {4} |
|
privateinherited |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_indet_dict
◆ m_INDET_ID
| int AtlasDetectorID::m_INDET_ID {2} |
|
privateinherited |
◆ m_indet_part_impl
◆ m_init
| bool MuonIdHelper::m_init {false} |
|
protectedinherited |
◆ m_is_initialized_from_dict
| bool AtlasDetectorID::m_is_initialized_from_dict {} |
|
privateinherited |
◆ m_isBarrel
| std::set<int> MuonIdHelper::m_isBarrel |
|
privateinherited |
◆ m_isForward
| std::set<int> MuonIdHelper::m_isForward |
|
privateinherited |
◆ m_isHighLuminosityLHC
| bool AtlasDetectorID::m_isHighLuminosityLHC {} |
|
privateinherited |
◆ m_isSmall
| std::set<int> MuonIdHelper::m_isSmall |
|
privateinherited |
◆ m_ISSTRIP_INDEX
◆ m_ist_impl
◆ m_lar_dict
◆ m_lar_dm_field
◆ m_LAR_EM_ID
| int AtlasDetectorID::m_LAR_EM_ID {1} |
|
privateinherited |
◆ m_LAR_FCAL_ID
| int AtlasDetectorID::m_LAR_FCAL_ID {3} |
|
privateinherited |
◆ m_lar_fcal_module_impl
◆ m_LAR_FCAL_MODULE_INDEX
| int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999} |
|
privateinherited |
◆ m_LAR_HEC_ID
| int AtlasDetectorID::m_LAR_HEC_ID {2} |
|
privateinherited |
◆ m_LAR_ID
| int AtlasDetectorID::m_LAR_ID {4} |
|
privateinherited |
◆ m_lar_part_impl
◆ m_LUCID_ID
| int AtlasDetectorID::m_LUCID_ID {5} |
|
privateinherited |
◆ m_LUMI_ID
| int AtlasDetectorID::m_LUMI_ID {3} |
|
privateinherited |
◆ m_LUMI_PLR_ID
| int AtlasDetectorID::m_LUMI_PLR_ID {1} |
|
privateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_lvl1_field
◆ m_lvl1_onl_field
◆ m_MDT_ID
| int AtlasDetectorID::m_MDT_ID {0} |
|
privateinherited |
◆ m_MM_ID
| int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_module_hash_max
| size_type MuonIdHelper::m_module_hash_max {0} |
|
protectedinherited |
◆ m_module_hashes
| std::array<unsigned int, s_modHashDim> TgcIdHelper::m_module_hashes {} |
|
private |
◆ m_MODULE_INDEX
◆ m_module_vec
| id_vec MuonIdHelper::m_module_vec |
|
protectedinherited |
◆ 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_channel_range
◆ m_muon_detectorElement_range
| MultiRange MuonIdHelper::m_muon_detectorElement_range |
|
protectedinherited |
◆ m_muon_dict
◆ m_MUON_ID
| int AtlasDetectorID::m_MUON_ID {7} |
|
privateinherited |
◆ m_muon_impl
◆ m_MUON_INDEX
◆ m_muon_mdt_impl
◆ m_muon_range
◆ 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_NAME_INDEX
◆ m_next_eta_module_vec
| hash_vec MuonIdHelper::m_next_eta_module_vec |
|
protectedinherited |
◆ m_next_phi_module_vec
| hash_vec MuonIdHelper::m_next_phi_module_vec |
|
protectedinherited |
◆ 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_prev_eta_module_vec
| hash_vec MuonIdHelper::m_prev_eta_module_vec |
|
protectedinherited |
◆ m_prev_phi_module_vec
| hash_vec MuonIdHelper::m_prev_phi_module_vec |
|
protectedinherited |
◆ m_quiet
| bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_RPC_ID
| int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_SCT_ID
| int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_sta_impl
◆ m_station_region_index
| size_type MuonIdHelper::m_station_region_index {0} |
|
protectedinherited |
◆ m_stationIdxToNameMap
| std::map<int, std::string> MuonIdHelper::m_stationIdxToNameMap |
|
privateinherited |
◆ m_stationIndexMax
| int MuonIdHelper::m_stationIndexMax {-INT_MAX} |
|
privateinherited |
◆ m_stationInTech
| std::set<int> MuonIdHelper::m_stationInTech {} |
|
protectedinherited |
◆ m_stationNameToIdxMap
| std::map<std::string, int> MuonIdHelper::m_stationNameToIdxMap |
|
privateinherited |
◆ m_stationShift
| unsigned int TgcIdHelper::m_stationShift {std::numeric_limits<unsigned int>::max()} |
|
private |
◆ m_STGC_ID
| int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
| size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_tec_impl
◆ m_TECHNOLOGY_INDEX
| size_type MuonIdHelper::m_TECHNOLOGY_INDEX {4} |
|
protectedinherited |
◆ m_technologyIdxToNameMap
| std::map<int, std::string> MuonIdHelper::m_technologyIdxToNameMap |
|
privateinherited |
◆ m_technologyIndexMax
| int MuonIdHelper::m_technologyIndexMax {-INT_MAX} |
|
privateinherited |
◆ m_technologyNameToIdxMap
| std::map<std::string, int> MuonIdHelper::m_technologyNameToIdxMap |
|
privateinherited |
◆ m_TGC_ID
| int AtlasDetectorID::m_TGC_ID {3} |
|
privateinherited |
◆ m_tile_dict
◆ m_tile_dm_field
◆ m_TILE_ID
| int AtlasDetectorID::m_TILE_ID {5} |
|
privateinherited |
◆ m_TRT_ID
| int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_ZDC_ID
| int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
◆ NOT_VALID_HASH
| constexpr int MuonIdHelper::NOT_VALID_HASH = 64000 |
|
staticconstexprprotectedinherited |
◆ s_etaDim
| constexpr unsigned int TgcIdHelper::s_etaDim = 10 |
|
staticconstexprprivate |
Except T2E all stations have 4 associated eta stations.
Definition at line 148 of file TgcIdHelper.h.
◆ s_modHashDim
◆ s_phiDim
| constexpr unsigned int TgcIdHelper::s_phiDim = 48 |
|
staticconstexprprivate |
◆ s_stDim
| constexpr unsigned int TgcIdHelper::s_stDim = 8 |
|
staticconstexprprivate |
T1F-> 41 ; T1E->42 , T2F -> 43, T2E->44, T3F->45, T3E->46, T4E->48.
Definition at line 146 of file TgcIdHelper.h.
The documentation for this class was generated from the following files:
static int stationPhiMin(bool endcap)
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
hash_vec m_next_eta_module_vec
bool validStation(int stationName, int technology) const
int stationNameIndex(const std::string &name) const
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
IdContext detectorElement_context() const
id for detector element
IdDictFieldImplementation m_ist_impl
std::map< int, std::string > m_technologyIdxToNameMap
Mapping int -> string.
bool is_forward(Identifier id) const
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Identifier parentID(const Identifier &id) const
bool is_rpc(Identifier id) const
hash_vec m_prev_eta_module_vec
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
std::set< int > m_isSmall
Scalar phi() const
phi method
static int chamberType(const std::string &stationName, int stationEta)
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
int technologyIndex(const std::string &name) const
bool is_csc(Identifier id) const
const std::string & version() const
Dictionary version.
int gasGap(const Identifier &id) const override
get the hashes
bool is_lar_fcal(Identifier id) const
hash_vec m_next_phi_module_vec
std::set< int > m_stationInTech
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
const IdDictRegion & region(size_t i) const
Region at index i.
void add(const Range &range)
element_type get_minimum() const
Query the values.
size_type m_detectorElement_hash_max
IdDictFieldImplementation m_sta_impl
size_type end_index() const
int calo_field_value() const
size_type m_channel_hash_max
std::map< std::string, int > m_technologyNameToIdxMap
Mapping string -> int.
bool validElement(const Identifier &id) const
void add(element_type value)
Append a value into a new field.
unsigned int moduleHashIdx(const Identifier &id) const
bool is_mm(Identifier id) const
value_type get_compact() const
Get the compact id.
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
IMessageSvc * m_msgSvc
pointer to the message service
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.
static constexpr value_type MAX_BIT
hash_vec m_prev_phi_module_vec
int stationName(const Identifier &id) const
const std::string & name() const
Dictionary name.
#define ATH_MSG_VERBOSE(x)
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
IdDictFieldImplementation m_phi_impl
int lar_field_value() const
virtual bool isStNameInTech(const std::string &stationName) const =0
The valid element checks converted the identifier to a stationName string in order to assess whether ...
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.
MultiRange m_full_channel_range
const std::string & file_name() const
Access to file name.
int stationNameIndexMax() const
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
int pack32(const ExpandedIdentifier &id, size_t index1, size_t index2, Identifier &packedId) const
Pack to 32bits the subset of id between (inclusive) index1 and index2 - this is generic,...
@ u
Enums for curvilinear frames.
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
bool is_tgc(const Identifier &id) const
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
bool isSmall(const Identifier &id) const
void reset(Identifier &id) const
int channel(const Identifier &id) const override
std::map< int, std::string > m_stationIdxToNameMap
Mapping int -> string.
const IdDictFieldImplementation & implementation(size_t i) const
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
unsigned int m_stationShift
Minimal station index found.
Range::field m_tile_dm_field
size_type begin_index() const
std::map< std::string, int > m_stationNameToIdxMap
Mapping string -> int.
IdDictGroup * find_group(const std::string &group_name) const
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
static int stationEtaMin()
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
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
bool is_tgc(Identifier id) const
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_cha_impl
static int stationPhiMax(bool endcap)
IdDictFieldImplementation m_lar_fcal_module_impl
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const override
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const
bool is_tile_dm(Identifier id) const
bool tripletChamber(int stationName) const
MultiRange m_full_detectorElement_range
IdDictDictionary * m_fwd_dict
bool isForward(const Identifier &id) const
bool get_next(element_type current, element_type &next) const
int tgc_field_value() const
id_vec::const_iterator id_vec_it
bool is_tile(Identifier id) const
const std::string & group() const
Group name for this helper.
virtual int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const
MultiRange m_full_module_range
MuonIdHelper(const std::string &logName, const std::string &group)
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
Create expanded id from compact id (return == 0 for OK)
Range::field m_lvl1_onl_field
virtual int get_hash_calc(const Identifier &compact_id, IdentifierHash &hash_id, const IdContext *context) const
const std::vector< IdDictRegion * > & regions()
int technologyNameIndexMax() const
bool m_quiet
If true, suppress DEBUG/INFO messages.
IdDictFieldImplementation m_eta_impl
MsgStream & msg() const
The standard message stream.
int isStrip(const Identifier &id) const
isStrip corresponds to measuresPhi
static int gasGapMax(bool triplet)
IdDictFieldImplementation m_muon_impl
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.
void clear()
Reset to invalid state.
Identifier elementID(int stationName, int stationEta, int stationPhi) const
bool is_calo(Identifier id) const
int stationPhi(const Identifier &id) const
int tile_field_value() const
int get_label_value(const std::string &field, const std::string &label, int &value) const
const std::string & stationNameString(const int &index) const
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...
const ExpandedIdentifier & prefix_id() const
Accessors.
A MultiRange combines several Ranges.
IdDictDictionary * m_indet_dict
IdDictFieldImplementation m_calo_side_impl
id_vec m_detectorElement_vec
bool is_indet(Identifier id) const
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
bool isBarrel(const Identifier &id) const
Range::field m_lar_dm_field
ExpandedIdentifier muon_exp(void) const
int stationEta(const Identifier &id) const
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
std::array< unsigned int, s_modHashDim > m_module_hashes
ExpandedIdentifier fwd_exp(void) const
IdDictFieldImplementation m_muon_station_name_impl
std::set< int > m_isBarrel
size_type module_hash_max() const
the maximum hash value
bool validChannel(const Identifier &id, int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
size_type m_module_hash_max
bool isEndcap(const Identifier &id) const
virtual int init_detectorElement_hashes()
static constexpr unsigned int s_phiDim
48 phi stations
size_type m_station_region_index
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.
size_type m_TECHNOLOGY_INDEX
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool empty() const noexcept
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
Data object for each calorimeter readout cell.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
const std::string & dict_tag() const
Access to the dictionary tag.
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override
Create hash id from compact id (return == 0 for OK)
int technology(const Identifier &id) const
std::string m_nm
Message source name.
Identifier muon(void) const
int get_expanded_id_calc(const Identifier &compact_id, ExpandedIdentifier &id, const IdContext *context) const
IdContext module_context() const
id for module
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
void resetAndSet(const IdDictFieldImplementation &dict, const int new_val, Identifier &id) const
size_type m_DETECTORELEMENT_INDEX
bool get_previous(element_type current, element_type &previous) const
Returns false if previous/next is at end of range, or not possible.
std::vector< Identifier >::const_iterator const_id_iterator
IdDictDictionary * m_lar_dict
IdDictFieldImplementation m_tec_impl
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
bool is_stgc(Identifier id) const
Identifier channelID(int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
static constexpr int NOT_VALID_HASH
void initMessaging() const
Initialize our message level and MessageSvc.
size_type cardinality() const
Computes a possible cardinality from all ranges.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
std::set< int > m_isForward
int get_compact_id(const ExpandedIdentifier &id, Identifier &compact_id, const IdContext *context) const
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
static int stationEtaMax()
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
size_type m_ISSTRIP_INDEX
bool validTechnology(int technology) const
static constexpr unsigned int s_etaDim
Except T2E all stations have 4 associated eta stations.
IdDictFieldImplementation m_gap_impl
bool is_mdt(Identifier id) const
Range::field m_lvl1_field
bool valid(const Identifier &id) const
size_type m_CHANNEL_INDEX
static const std::string BAD_NAME
const IdDictDictionary * m_dict