|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DETECTORDESCRIPTION_MUONIDHELPER_H
6 #define DETECTORDESCRIPTION_MUONIDHELPER_H
190 const std::vector<Identifier>&
idVector()
const;
311 dict.
pack(new_val,
id);
351 #endif // DETECTORDESCRIPTION_MUONIDHELPER_H
bool is_muon(const Identifier &id) 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)
hash_vec m_next_eta_module_vec
virtual bool measuresPhi(const Identifier &id) const =0
bool validStation(int stationName, int technology) const
int stationNameIndex(const std::string &name) const
IdContext detectorElement_context() const
id for detector element
std::map< int, std::string > m_technologyIdxToNameMap
Mapping int -> string.
hash_vec m_prev_eta_module_vec
void test_id(const Identifier &id, const IdContext &context) const
int stationRegion(const Identifier &id) const
const_id_iterator detectorElement_begin() const
Iterators over full set of ids.
std::set< int > m_isSmall
bool is_rpc(const Identifier &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)
int technologyIndex(const std::string &name) const
hash_vec m_next_phi_module_vec
std::set< int > m_stationInTech
const MultiRange & multiRange() const
multirange
IdContext channel_context() const
id for channel
bool is_mdt(const Identifier &id) const
size_type detectorElement_hash_max() const
size_type m_detectorElement_hash_max
const_id_iterator channel_end() const
IdDictFieldImplementation m_sta_impl
size_type m_channel_hash_max
std::map< std::string, int > m_technologyNameToIdxMap
Mapping string -> int.
MuonIdHelper(const MuonIdHelper &other)=delete
bool is_csc(const Identifier &id) const
void pack(int value, Identifier &id) const
const std::string & technologyString(const int &index) const
const_id_iterator module_end() const
std::vector< Identifier > id_vec
hash_vec m_prev_phi_module_vec
int stationName(const Identifier &id) const
const_id_iterator detectorElement_end() const
IdDictFieldImplementation m_phi_impl
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 ...
MultiRange m_muon_detectorElement_range
MultiRange m_full_channel_range
int stationNameIndexMax() const
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
bool is_tgc(const Identifier &id) const
bool isSmall(const Identifier &id) const
void reset(Identifier &id) const
std::map< int, std::string > m_stationIdxToNameMap
Mapping int -> string.
Identifier::size_type size_type
bool is_stgc(const Identifier &id) const
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
std::map< std::string, int > m_stationNameToIdxMap
Mapping string -> int.
std::vector< unsigned short > hash_vec
void addStationID(Identifier &id, int stationName, int stationEta, int stationPhi, int technology) const
virtual int gasGap(const Identifier &id) const =0
get the hashes
hash_vec::const_iterator hash_vec_it
int get_prev_in_eta(const IdentifierHash &id, IdentifierHash &prev) const
MuonIdHelper & operator=(const MuonIdHelper &right)
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const
MultiRange m_full_detectorElement_range
MultiRange::const_identifier_factory const_expanded_id_iterator
bool isForward(const Identifier &id) const
id_vec::const_iterator id_vec_it
virtual int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const
MultiRange m_full_module_range
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
Create expanded id from compact id (return == 0 for OK)
bool is_mm(const Identifier &id) const
virtual int get_hash_calc(const Identifier &compact_id, IdentifierHash &hash_id, const IdContext *context) const
int technologyNameIndexMax() const
IdDictFieldImplementation m_eta_impl
MuonIdHelper(const std::string &logName)
IdDictFieldImplementation m_muon_impl
int nStationNames() const
int get_next_in_phi(const IdentifierHash &id, IdentifierHash &next) const
int stationPhi(const Identifier &id) const
const std::string & stationNameString(const int &index) const
MultiRange m_muon_channel_range
virtual int get_channel_hash(const Identifier &id, IdentifierHash &hash_id) const
A MultiRange combines several Ranges.
id_vec m_detectorElement_vec
bool isBarrel(const Identifier &id) const
int stationEta(const Identifier &id) const
std::set< int > m_isBarrel
size_type module_hash_max() const
the maximum hash value
size_type m_module_hash_max
bool isEndcap(const Identifier &id) const
virtual int init_detectorElement_hashes()
size_type m_station_region_index
size_type m_TECHNOLOGY_INDEX
void test_module_packing() const
Tests of packing.
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
Identifier::size_type size_type
int get_expanded_id_calc(const Identifier &compact_id, ExpandedIdentifier &id, const IdContext *context) const
const_id_iterator channel_begin() const
Iterators over full set of ids.
IdContext module_context() const
id for module
void resetAndSet(const IdDictFieldImplementation &dict, const int new_val, Identifier &id) const
size_type m_DETECTORELEMENT_INDEX
std::vector< Identifier >::const_iterator const_id_iterator
IdDictFieldImplementation m_tec_impl
int get_next_in_eta(const IdentifierHash &id, IdentifierHash &next) const
int init_channel_hashes()
const std::vector< Identifier > & idVector() const
the id's
static constexpr int NOT_VALID_HASH
virtual ~MuonIdHelper()=default
unsigned long long size_type
const_id_iterator module_begin() const
Iterators over full set of ids.
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::set< int > m_isForward
int get_compact_id(const ExpandedIdentifier &id, Identifier &compact_id, const IdContext *context) const
virtual int channel(const Identifier &id) const =0
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
macros to associate a CLID to a type
bool validTechnology(int technology) const
IdContext technology_context() const
access to IdContext's which define which levels or fields are contained in the Muon id
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
bool isInitialized() const
size_type m_CHANNEL_INDEX
static const std::string BAD_NAME
size_type channel_hash_max() const
const IdDictDictionary * m_dict