5#ifndef MUONIDHELPERS_TGCIDHELPER_H
6#define MUONIDHELPERS_TGCIDHELPER_H
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
This is a "hash" representation of an Identifier.
int stationEta(const Identifier &id) const
int stationPhi(const Identifier &id) const
int stationName(const Identifier &id) const
Identifier::size_type size_type
MuonIdHelper(const std::string &logName, const std::string &group)
static constexpr unsigned int s_stDim
T1F-> 41 ; T1E->42 , T2F -> 43, T2E->44, T3F->45, T3E->46, T4E->48.
Identifier elementID(int stationName, int stationEta, int stationPhi) const
virtual ~TgcIdHelper()=default
bool tripletChamber(int stationName) const
static int stationEtaMin()
int tgcTechnology() const
Utility methods.
Identifier parentID(const Identifier &id) const
IdDictFieldImplementation m_ist_impl
int channel(const Identifier &id) const override
unsigned int m_stationShift
Minimal station index found.
static int gasGapMax(bool triplet)
static int stationPhiMin(bool endcap)
bool validChannel(const Identifier &id, int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
void idChannels(const Identifier &id, std::vector< Identifier > &vect) const
int gasGap(const Identifier &id) const override
get the hashes
virtual int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const override
static constexpr unsigned int s_etaDim
Except T2E all stations have 4 associated eta stations.
bool valid(const Identifier &id) const
IdDictFieldImplementation m_cha_impl
bool measuresPhi(const Identifier &id) const override
IdDictFieldImplementation m_gap_impl
bool endcapChamber(int stationName) const
static int stationPhiMax(bool endcap)
size_type m_ISSTRIP_INDEX
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const override
std::array< unsigned int, s_modHashDim > m_module_hashes
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
unsigned int moduleHashIdx(const Identifier &id) const
static int chamberType(const std::string &stationName, int stationEta)
int isStrip(const Identifier &id) const
isStrip corresponds to measuresPhi
static constexpr unsigned int s_phiDim
48 phi stations
static constexpr unsigned int s_modHashDim
static int stationEtaMax()
Identifier channelID(int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
bool validElement(const Identifier &id) const
bool isStNameInTech(const std::string &stationName) const override
The valid element checks converted the identifier to a stationName string in order to assess whether ...