Tool providing local parameters of ToF detectors from the conditions database.  
 More...
#include <ToFLocParamDBTool.h>
Tool providing local parameters of ToF detectors from the conditions database. 
Definition at line 33 of file ToFLocParamDBTool.h.
◆ ToFLocParamDBTool()
      
        
          | AFP::ToFLocParamDBTool::ToFLocParamDBTool | ( | const std::string & | type, | 
        
          |  |  | const std::string & | name, | 
        
          |  |  | const IInterface * | parent | 
        
          |  | ) |  |  | 
      
 
 
◆ ~ToFLocParamDBTool()
  
  | 
        
          | virtual AFP::ToFLocParamDBTool::~ToFLocParamDBTool | ( |  | ) |  |  | inlineoverridevirtual | 
 
 
◆ finalize()
  
  | 
        
          | StatusCode AFP::ToFLocParamDBTool::finalize | ( |  | ) |  |  | overridevirtual | 
 
 
◆ initialize()
  
  | 
        
          | StatusCode AFP::ToFLocParamDBTool::initialize | ( |  | ) |  |  | overridevirtual | 
 
 
◆ parameters()
Definition at line 52 of file ToFLocParamDBTool.cxx.
   54     ATH_MSG_DEBUG(
"will get local ToF parameters for station "<<stationID<<
", trainID "<<trainID<<
", barID "<<barID);
 
   58     int guess_ch=(
stationID/3)*16+trainID*4+barID;
 
   61     int st=paramdata[
"stationID"];
 
   62     int tr=paramdata[
"trainID"];
 
   63     int ba=paramdata[
"barID"];
 
   64     if(stationID==
st && trainID==tr && barID==ba)
 
   66       ATH_MSG_DEBUG(
"channel guessed correctly, stationID "<<
st<<
", trainID "<<trainID<<
", barID "<<barID<<
", channel guess "<<guess_ch);
 
   67       return ToFLocParamData(
st, tr, ba, paramdata[
"barWeight"], paramdata[
"barTimeOffset"]);
 
   71       ATH_MSG_DEBUG(
"channel was not guessed correctly, stationID "<<
st<<
", trainID "<<trainID<<
", barID "<<barID<<
", channel guess "<<guess_ch);
 
   75     for(
auto& 
chan : channeldata.items())
 
   80       int st=paramdata[
"stationID"];
 
   81       int tr=paramdata[
"trainID"];
 
   82       int ba=paramdata[
"barID"];
 
   84       if(stationID==
st && trainID==tr && barID==ba)
 
   86         ATH_MSG_DEBUG(
"channel found for stationID "<<
st<<
", trainID "<<trainID<<
", barID "<<barID<<
", channel nr. "<<
chan.key());
 
   87         return ToFLocParamData(
st, tr, ba, paramdata[
"barWeight"], paramdata[
"barTimeOffset"]);
 
   91     ATH_MSG_WARNING(
"local ToF parameters data stationID "<<stationID<<
", trainID "<<trainID<<
", barID "<<barID<<
" not found in any channels, returning zeros");
 
   92     return ToFLocParamData(stationID, trainID, barID);
 
 
 
 
◆ parametersData()
Provide ToF parameters for a given bar. Returns zeros if no data available. 
Definition at line 30 of file ToFLocParamDBTool.cxx.
   32     ATH_MSG_DEBUG(
"will get local ToF parameters for run "<<ctx.eventID().run_number()<<
", lb "<<ctx.eventID().lumi_block()<<
", event "<<ctx.eventID().event_number());
 
   36     if ( attrLocList == 
nullptr )
 
   38         ATH_MSG_WARNING(
"local ToF parameters data for key " << 
m_rch_loc.fullKey() << 
" not found, returning empty string");
 
   42     if(attrLocList->size()>1) 
ATH_MSG_INFO(
"there should be only one real channel in "<< 
m_rch_loc.fullKey() <<
", there are "<<attrLocList->size()<<
" real channels, only the first one will be used ");
 
   46     std::string 
data = *(
static_cast<const std::string *
>((atr[
"data"]).addressOfData()));
 
 
 
 
◆ m_rch_loc
The documentation for this class was generated from the following files: