MuonIdHelper Class Reference

Inheritance diagram for MuonIdHelper:
CscIdHelper MdtIdHelper MmIdHelper RpcIdHelper sTgcIdHelper TgcIdHelper

List of all members.

Public Types

typedef Identifier::size_type size_type
typedef
MultiRange::const_identifier_factory 
const_expanded_id_iterator
typedef std::vector
< Identifier >::const_iterator 
const_id_iterator

Public Member Functions

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 isEndcap (const Identifier &id) const
bool isForward (const Identifier &id) const
bool isSmall (const Identifier &id) const
bool isBarrel (const int &stationNameIndex) const
bool isEndcap (const int &stationNameIndex) const
bool isForward (const int &stationNameIndex) 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
void print (const Identifier &id) const
virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr)
 Initialization from the identifier dictionary.
IdContext technology_context (void) const
IdContext module_context (void) const
 id for module
IdContext detectorElement_context (void) const
 id for detector element
IdContext channel_context (void) const
 id for channel
virtual int gasGap (const Identifier &id) const =0
 get the hashes
virtual int channel (const Identifier &id) const =0
virtual bool measuresPhi (const Identifier &id) const =0
virtual int get_module_hash (const Identifier &id, IdentifierHash &hash_id) const
virtual int get_detectorElement_hash (const Identifier &id, IdentifierHash &hash_id) const
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
 Create compact id from hash id (return == 0 for OK).
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).
int get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
 Create expanded id from compact id (return == 0 for OK).
int get_id (const ExpandedIdentifier &old_id, Identifier &new_id) const
MultiRange multiRange (void) const
 multirange
size_type module_hash_max (void) const
 the maximum hash value
size_type detectorElement_hash_max (void) const
size_type channel_hash_max (void) const
std::vector< Identifier > idVector (void) const
 the id's
const_id_iterator module_begin (void) const
const_id_iterator module_end (void) const
const_id_iterator detectorElement_begin (void) const
const_id_iterator detectorElement_end (void) const
const_id_iterator channel_begin (void) const
const_id_iterator channel_end (void) const
int get_prev_in_phi (const IdentifierHash &id, IdentifierHash &prev) const
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 (void) const
 Tests of packing.
void test_id (const Identifier &id, const IdContext &context) const
int stationNameIndexMax () const
int technologyNameIndexMax () const

Static Public Attributes

static const std::string BAD_NAME = "UNKNOWN"

Protected Types

enum  { NOT_VALID_HASH = 64000 }
typedef std::vector< Identifier > id_vec
typedef id_vec::const_iterator id_vec_it
typedef std::vector< unsigned
short > 
hash_vec
typedef hash_vec::const_iterator hash_vec_it

Protected Member Functions

int initLevelsFromDict (void)
int init_hashes (void)
virtual int init_detectorElement_hashes (void)
int init_channel_hashes (void)
int init_neighbors (void)
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
void addStationID (Identifier &id, int stationName, int stationEta, int stationPhi, int technology) const
void addStationID (ExpandedIdentifier &id, int stationName, int stationEta, int stationPhi, int technology) const
virtual void create_mlog () const

Protected Attributes

size_type m_station_region_index
size_type m_MUON_INDEX
size_t m_GROUP_INDEX
size_type m_NAME_INDEX
size_type m_ETA_INDEX
size_type m_PHI_INDEX
size_type m_TECHNOLOGY_INDEX
size_type m_MODULE_INDEX
size_type m_DETECTORELEMENT_INDEX
size_type m_CHANNEL_INDEX
const IdDictDictionary * m_dict
MultiRange m_muon_range
MultiRange m_full_module_range
size_type m_module_hash_max
id_vec m_module_vec
MultiRange m_muon_channel_range
MultiRange m_full_channel_range
size_type m_channel_hash_max
id_vec m_channel_vec
MultiRange m_muon_detectorElement_range
MultiRange m_full_detectorElement_range
size_type m_detectorElement_hash_max
id_vec m_detectorElement_vec
hash_vec m_prev_phi_module_vec
hash_vec m_next_phi_module_vec
hash_vec m_prev_eta_module_vec
hash_vec m_next_eta_module_vec
IdDictFieldImplementation m_muon_impl
IdDictFieldImplementation m_sta_impl
IdDictFieldImplementation m_eta_impl
IdDictFieldImplementation m_phi_impl
IdDictFieldImplementation m_tec_impl
IMessageSvc * m_msgSvc
MsgStream * m_Log

Member Function Documentation

MuonIdHelper::const_id_iterator MuonIdHelper::channel_begin ( void   )  const [inline]

Iterators over full set of ids. Channel iterator is sorted

MuonIdHelper::const_id_iterator MuonIdHelper::detectorElement_begin ( void   )  const [inline]

Iterators over full set of ids. detector element iterator is sorted

int MuonIdHelper::get_id ( const ExpandedIdentifier &  old_id,
Identifier &  new_id 
) const

Create Identifier from expanded id, which is returned by the id_iterators

int MuonIdHelper::get_prev_in_phi ( const IdentifierHash &  id,
IdentifierHash &  prev 
) const

Access to hashes for neighbors in phi and eta (return == 0 for neighbor found)

MuonIdHelper::const_id_iterator MuonIdHelper::module_begin ( void   )  const [inline]

Iterators over full set of ids. Module iterator is sorted

IdContext MuonIdHelper::technology_context ( void   )  const [inline]

access to IdContext's which define which levels or fields are contained in the Muon id

id for technology


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1