![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/Bootstrap.h"
7 #include "GaudiKernel/ISvcLocator.h"
8 #include "GaudiKernel/IMessageSvc.h"
9 #include "GaudiKernel/StatusCode.h"
10 #include "GaudiKernel/MsgStream.h"
19 ISvcLocator* svcLoc = Gaudi::svcLocator( );
21 if (
sc.isFailure()) std::cout <<
"Fail to locate Message Service" << std::endl;
23 MsgStream
log(
msgSvc,
"CscRawDataCollectionIdHash" );
29 if (
sc != StatusCode::SUCCESS ) {
30 log << MSG::ERROR <<
" Cannot get CSC cabling Service " <<
endmsg;
46 if ( id < m_cabling->nROD() )
93 std::map<ID,int>::const_iterator
it =
m_lookup.find(
id);
int operator()(const ID &id) const
Convert ID to int.
uint16_t rodId(unsigned int i) const
reverse conversion : ROD ID
int m_size
total number of IDs
CSCcablingSvc * m_cabling
unsigned int maxId() const
unsigned int nROD() const
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
ID identifier(int i) const
reverse conversion
CscRawDataCollectionIdHash()
std::vector< uint16_t > m_int2subDetectorId
reverse lookup for SubDetectorID and ROD ID
std::vector< ID > m_int2id
reverse lookup
std::vector< uint16_t > m_int2rodId
uint16_t subDetectorId(int i) const
reverse conversion for SubDetectorID and ROD ID
std::map< ID, int > m_lookup
lookup table