Hash function for Mdt module Identifier to be used in MdtDigitContainer (IdentifiableContainer)
More...
#include <MdtCsmIdHash.h>
Hash function for Mdt module Identifier to be used in MdtDigitContainer (IdentifiableContainer)
- Author
- Hong Ma
- Version
- 00-00-01 , Aug 28, 2002
Definition at line 17 of file MdtCsmIdHash.h.
◆ ID
◆ MdtCsmIdHash()
MdtCsmIdHash::MdtCsmIdHash |
( |
| ) |
|
Definition at line 22 of file MdtCsmIdHash.cxx.
25 ISvcLocator* svcLoc = Gaudi::svcLocator( );
28 if (
sc.isFailure()) std::cout <<
"Fail to locate Message Service" << std::endl;
30 MsgStream
log(
msgSvc,
"MuonDigitContainer" );
36 sc = svcLoc->service(
"DetectorStore",
detStore);
39 sc =
detStore->retrieve( mdtHelper,
"MDTIDHELPER" );
41 log << MSG::ERROR <<
" Cannot retrieve MdtIdHelper " <<
endmsg;
43 log << MSG::ERROR <<
" MdtIdHelper not found in DetectorStore " <<
endmsg;
45 if (!
sc.isSuccess())
throw GaudiException(
"can not get MdtIdHelper",
46 "MdtCsmIdHash::MdtCsmIdHash()",
sc);
62 }
else log << MSG::ERROR <<
"MDT hash constructor failed!" <<
endmsg;
◆ ~MdtCsmIdHash()
virtual MdtCsmIdHash::~MdtCsmIdHash |
( |
| ) |
|
|
inlinevirtual |
◆ identifier()
reverse conversion
Definition at line 69 of file MdtCsmIdHash.cxx.
75 std::cout <<
" MdtCsmIdHash::ERROR : identifier invalid ID "<<std::endl;
◆ max()
int MdtCsmIdHash::max |
( |
| ) |
const |
◆ offset()
int MdtCsmIdHash::offset |
( |
| ) |
|
|
static |
◆ operator()()
int MdtCsmIdHash::operator() |
( |
const ID & |
id | ) |
const |
◆ m_int2id
std::vector<ID> MdtCsmIdHash::m_int2id |
|
private |
◆ m_lookup
◆ m_size
The documentation for this class was generated from the following files:
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)