|  | ATLAS Offline Software
    | 
 
 
 
#include <SCT_CablingTool.h>
|  | 
|  | SCT_CablingTool (const std::string &type, const std::string &name, const IInterface *parent) | 
|  | 
| virtual | ~SCT_CablingTool ()=default | 
|  | 
| virtual StatusCode | initialize () override | 
|  | 
| virtual unsigned int | size (const EventContext &ctx) const override | 
|  | size of the data structure (for the SCT should be 8176, one for each module side)  More... 
 | 
|  | 
| virtual unsigned int | size () const override | 
|  | 
| virtual bool | empty (const EventContext &ctx) const override | 
|  | is the data structure empty?  More... 
 | 
|  | 
| virtual bool | empty () const override | 
|  | 
| virtual IdentifierHash | getHashFromOnlineId (const SCT_OnlineId &onlineId, const EventContext &ctx, const bool withWarnings=true) const override | 
|  | return offline hash, given the online Id (used by decoders)  More... 
 | 
|  | 
| virtual IdentifierHash | getHashFromOnlineId (const SCT_OnlineId &onlineId, const bool withWarnings=true) const override | 
|  | 
| virtual SCT_OnlineId | getOnlineIdFromHash (const IdentifierHash &hash, const EventContext &ctx) const override | 
|  | return the online Id, given a hash (used by simulation encoders)  More... 
 | 
|  | 
| virtual SCT_OnlineId | getOnlineIdFromHash (const IdentifierHash &hash) const override | 
|  | 
| virtual SCT_OnlineId | getOnlineIdFromOfflineId (const Identifier &offlineId, const EventContext &ctx) const override | 
|  | return the online Id, given an offlineId  More... 
 | 
|  | 
| virtual SCT_OnlineId | getOnlineIdFromOfflineId (const Identifier &offlineId) const override | 
|  | 
| virtual std::uint32_t | getRobIdFromHash (const IdentifierHash &hash, const EventContext &ctx) const override | 
|  | return the rob/rod Id, given a hash (used by simulation encoders)  More... 
 | 
|  | 
| virtual std::uint32_t | getRobIdFromHash (const IdentifierHash &hash) const override | 
|  | 
| virtual std::uint32_t | getRobIdFromOfflineId (const Identifier &offlineId, const EventContext &ctx) const override | 
|  | return the rob/rod Id, given an offlineId (used by simulation encoders)  More... 
 | 
|  | 
| virtual std::uint32_t | getRobIdFromOfflineId (const Identifier &offlineId) const override | 
|  | 
| virtual IdentifierHash | getHashFromSerialNumber (const SCT_SerialNumber &sn, const EventContext &ctx) const override | 
|  | get hash from a module serial number, needed in the conditions service because configurations are stored by module s/n  More... 
 | 
|  | 
| virtual IdentifierHash | getHashFromSerialNumber (const SCT_SerialNumber &sn) const override | 
|  | 
| virtual SCT_SerialNumber | getSerialNumberFromHash (const IdentifierHash &hash, const EventContext &ctx) const override | 
|  | get module serial number from hash, needed during filling of data structure  More... 
 | 
|  | 
| virtual SCT_SerialNumber | getSerialNumberFromHash (const IdentifierHash &hash) const override | 
|  | 
| virtual void | getAllRods (std::vector< std::uint32_t > &usersVector, const EventContext &ctx) const override | 
|  | fill a users vector with all the RodIds  More... 
 | 
|  | 
| virtual void | getAllRods (std::vector< std::uint32_t > &usersVector) const override | 
|  | 
| virtual void | getHashesForRod (std::vector< IdentifierHash > &usersVector, const std::uint32_t rodId, const EventContext &ctx) const override | 
|  | fill a user's vector with all the hash ids which belong to a given rod  More... 
 | 
|  | 
| virtual void | getHashesForRod (std::vector< IdentifierHash > &usersVector, const std::uint32_t rodId) const override | 
|  | 
of online and offline identifiers and also serial numbers 
Definition at line 39 of file SCT_CablingTool.h.
◆ SCT_CablingTool()
      
        
          | SCT_CablingTool::SCT_CablingTool | ( | const std::string & | type, | 
        
          |  |  | const std::string & | name, | 
        
          |  |  | const IInterface * | parent | 
        
          |  | ) |  |  | 
      
 
 
◆ ~SCT_CablingTool()
  
  | 
        
          | virtual SCT_CablingTool::~SCT_CablingTool | ( |  | ) |  |  | virtualdefault | 
 
 
◆ empty() [1/2]
  
  | 
        
          | bool SCT_CablingTool::empty | ( |  | ) | const |  | overridevirtual | 
 
Definition at line 85 of file SCT_CablingTool.cxx.
   86   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ empty() [2/2]
  
  | 
        
          | bool SCT_CablingTool::empty | ( | const EventContext & | ctx | ) | const |  | overridevirtual | 
 
 
◆ getAllRods() [1/2]
  
  | 
        
          | void SCT_CablingTool::getAllRods | ( | std::vector< std::uint32_t > & | usersVector | ) | const |  | overridevirtual | 
 
Definition at line 229 of file SCT_CablingTool.cxx.
  230   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getAllRods() [2/2]
  
  | 
        
          | void SCT_CablingTool::getAllRods | ( | std::vector< std::uint32_t > & | usersVector, |  
          |  |  | const EventContext & | ctx |  
          |  | ) |  | const |  | overridevirtual | 
 
 
◆ getData()
◆ getHashesForRod() [1/2]
  
  | 
        
          | void SCT_CablingTool::getHashesForRod | ( | std::vector< IdentifierHash > & | usersVector, |  
          |  |  | const std::uint32_t | rodId |  
          |  | ) |  | const |  | overridevirtual | 
 
Definition at line 247 of file SCT_CablingTool.cxx.
  248   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getHashesForRod() [2/2]
  
  | 
        
          | void SCT_CablingTool::getHashesForRod | ( | std::vector< IdentifierHash > & | usersVector, |  
          |  |  | const std::uint32_t | rodId, |  
          |  |  | const EventContext & | ctx |  
          |  | ) |  | const |  | overridevirtual | 
 
fill a user's vector with all the hash ids which belong to a given rod 
Definition at line 235 of file SCT_CablingTool.cxx.
  237   const bool withWarnings{
false};
 
  240     if (thisHash != invalidHash) {
 
  241       usersVector.push_back(thisHash);
 
 
 
 
◆ getHashFromOnlineId() [1/2]
Definition at line 115 of file SCT_CablingTool.cxx.
  116   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getHashFromOnlineId() [2/2]
return offline hash, given the online Id (used by decoders) 
Definition at line 92 of file SCT_CablingTool.cxx.
   95     if (withWarnings) 
ATH_MSG_WARNING(
"Invalid online id ("<<std::hex<<onlineId<<
") "<<std::dec);
 
  100     const std::string alternative=
m_usingDatabase?
"text file cabling":
"cabling from database";
 
  101     if (withWarnings) 
ATH_MSG_WARNING(
"Invalid online id ("<<std::hex<<onlineId<<
") try using the "<<alternative<<std::dec);
 
  111   return data->getHashFromOnlineId(onlineId);
 
 
 
 
◆ getHashFromSerialNumber() [1/2]
Definition at line 191 of file SCT_CablingTool.cxx.
  192   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getHashFromSerialNumber() [2/2]
get hash from a module serial number, needed in the conditions service because configurations are stored by module s/n 
Definition at line 178 of file SCT_CablingTool.cxx.
  187   return data->getHashFromSerialNumber(sn);
 
 
 
 
◆ getOnlineIdFromHash() [1/2]
Definition at line 133 of file SCT_CablingTool.cxx.
  134   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getOnlineIdFromHash() [2/2]
return the online Id, given a hash (used by simulation encoders) 
Definition at line 122 of file SCT_CablingTool.cxx.
  129   return data->getOnlineIdFromHash(
hash);
 
 
 
 
◆ getOnlineIdFromOfflineId() [1/2]
Definition at line 147 of file SCT_CablingTool.cxx.
  148   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getOnlineIdFromOfflineId() [2/2]
◆ getRobIdFromHash() [1/2]
Definition at line 159 of file SCT_CablingTool.cxx.
  160   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getRobIdFromHash() [2/2]
return the rob/rod Id, given a hash (used by simulation encoders) 
Definition at line 154 of file SCT_CablingTool.cxx.
 
 
◆ getRobIdFromOfflineId() [1/2]
  
  | 
        
          | std::uint32_t SCT_CablingTool::getRobIdFromOfflineId | ( | const Identifier & | offlineId | ) | const |  | overridevirtual | 
 
Definition at line 171 of file SCT_CablingTool.cxx.
  172   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getRobIdFromOfflineId() [2/2]
  
  | 
        
          | std::uint32_t SCT_CablingTool::getRobIdFromOfflineId | ( | const Identifier & | offlineId, |  
          |  |  | const EventContext & | ctx |  
          |  | ) |  | const |  | overridevirtual | 
 
return the rob/rod Id, given an offlineId (used by simulation encoders) 
Definition at line 166 of file SCT_CablingTool.cxx.
 
 
◆ getSerialNumberFromHash() [1/2]
Definition at line 212 of file SCT_CablingTool.cxx.
  213   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ getSerialNumberFromHash() [2/2]
get module serial number from hash, needed during filling of data structure 
Definition at line 197 of file SCT_CablingTool.cxx.
  198   if (not 
hash.is_valid()) 
return invalidSn;
 
  208   return data->getSerialNumberFromHash(evenHash);
 
 
 
 
◆ initialize()
  
  | 
        
          | StatusCode SCT_CablingTool::initialize | ( |  | ) |  |  | overridevirtual | 
 
Definition at line 51 of file SCT_CablingTool.cxx.
   54   m_usingDatabase=(cablingDataSource == coracool) or (cablingDataSource == coolVectorPayload) or (cablingDataSource == 
file);
 
   57   return StatusCode::SUCCESS;
 
 
 
 
◆ size() [1/2]
  
  | 
        
          | unsigned int SCT_CablingTool::size | ( |  | ) | const |  | overridevirtual | 
 
Definition at line 73 of file SCT_CablingTool.cxx.
   74   const EventContext& ctx{Gaudi::Hive::currentContext()};
 
 
 
 
◆ size() [2/2]
  
  | 
        
          | unsigned int SCT_CablingTool::size | ( | const EventContext & | ctx | ) | const |  | overridevirtual | 
 
size of the data structure (for the SCT should be 8176, one for each module side) 
Definition at line 62 of file SCT_CablingTool.cxx.
   69   return data->getHashEntries();
 
 
 
 
◆ m_cablingDataSource
  
  | 
        
          | StringProperty SCT_CablingTool::m_cablingDataSource |  | private | 
 
 
◆ m_data
◆ m_idHelper
◆ m_usingDatabase
  
  | 
        
          | bool SCT_CablingTool::m_usingDatabase {true} |  | private | 
 
 
The documentation for this class was generated from the following files:
 
def retrieve(aClass, aKey=None)
char data[hepevt_bytes_allocation_ATLAS]
bool is_valid() const
Check if id is in a valid state.
bool is_valid(const bool usingDbCabling) const
Check whether the onlineId is valid, with flag to switch between validity from the database or text f...
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StatusCode initialize(bool used=true)
bool isWellFormed() const
Cursory check on whether the serial number is well formed N.B.
#define ATH_MSG_WARNING(x)
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::uint32_t rod() const
Return the rod/rob Id.