Tool providing vertex parameters of ToF detectors from the conditions database.
More...
#include <ToFVtxParamDBTool.h>
Tool providing vertex parameters of ToF detectors from the conditions database.
Definition at line 33 of file ToFVtxParamDBTool.h.
◆ ToFVtxParamDBTool()
AFP::ToFVtxParamDBTool::ToFVtxParamDBTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~ToFVtxParamDBTool()
virtual AFP::ToFVtxParamDBTool::~ToFVtxParamDBTool |
( |
| ) |
|
|
inlineoverridevirtual |
◆ finalize()
StatusCode AFP::ToFVtxParamDBTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode AFP::ToFVtxParamDBTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ parameters()
Definition at line 52 of file ToFVtxParamDBTool.cxx.
54 ATH_MSG_DEBUG(
"will get vertex ToF parameters for station "<<stationID);
61 int st=paramdata[
"stationID"];
64 ATH_MSG_DEBUG(
"channel guessed correctly, stationID "<<st<<
", channel guess "<<guess_ch);
65 return ToFVtxParamData(st, paramdata[
"timeGlobalOffset"], paramdata[
"timeOffset"], paramdata[
"timeSlope"], paramdata[
"trainEdge"]);
69 ATH_MSG_DEBUG(
"channel was not guessed correctly, stationID "<<st<<
", channel guess "<<guess_ch);
73 for(
auto&
chan : channeldata.items())
78 int st=paramdata[
"stationID"];
82 return ToFVtxParamData(st, paramdata[
"timeGlobalOffset"], paramdata[
"timeOffset"], paramdata[
"timeSlope"], paramdata[
"trainEdge"]);
86 ATH_MSG_WARNING(
"vertex ToF parameters data stationID "<<stationID<<
" not found in any channels, returning zeros");
87 return ToFVtxParamData(stationID);
◆ parametersData()
Provide ToF parameters for a given station. Returns zeros if no data available.
Definition at line 30 of file ToFVtxParamDBTool.cxx.
32 ATH_MSG_DEBUG(
"will get vertex 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(
"vertex ToF parameters data for key " <<
m_rch_vtx.fullKey() <<
" not found, returning empty string");
42 if(attrLocList->size()>1)
ATH_MSG_INFO(
"there should be only one real channel in "<<
m_rch_vtx.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_vtx
The documentation for this class was generated from the following files: