Tool providing local alignment of silicon detectors from the conditions database.
More...
#include <SiLocAlignDBTool.h>
Tool providing local alignment of silicon detectors from the conditions database.
Definition at line 33 of file SiLocAlignDBTool.h.
◆ SiLocAlignDBTool()
AFP::SiLocAlignDBTool::SiLocAlignDBTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SiLocAlignDBTool()
virtual AFP::SiLocAlignDBTool::~SiLocAlignDBTool |
( |
| ) |
|
|
inlineoverridevirtual |
◆ alignment()
Definition at line 52 of file SiLocAlignDBTool.cxx.
54 ATH_MSG_DEBUG(
"will get local alignment for station "<<stationID<<
", layerID "<<layerID);
61 int st=aligndata[
"stationID"];
62 int la=aligndata[
"layerID"];
63 if(stationID==st && layerID==la)
65 ATH_MSG_DEBUG(
"channel guessed correctly, stationID "<<st<<
", layerId "<<la<<
", channel guess "<<guess_ch);
66 return SiLocAlignData(st, la, aligndata[
"shiftX"], aligndata[
"shiftY"], aligndata[
"shiftZ"], aligndata[
"alpha"], aligndata[
"beta"], aligndata[
"gamma"]);
70 ATH_MSG_DEBUG(
"channel was not guessed correctly, stationID "<<st<<
", layerId "<<la<<
", channel guess "<<guess_ch);
74 for(
auto&
chan : channeldata.items())
79 int st=aligndata[
"stationID"];
80 int la=aligndata[
"layerID"];
82 if(stationID==st && layerID==la)
84 ATH_MSG_DEBUG(
"channel found for stationID "<<st<<
", layerId "<<la<<
", channel nr. "<<
chan.key());
85 return SiLocAlignData(st, la, aligndata[
"shiftX"], aligndata[
"shiftY"], aligndata[
"shiftZ"], aligndata[
"alpha"], aligndata[
"beta"], aligndata[
"gamma"]);
89 ATH_MSG_WARNING(
"local alignment data stationID "<<stationID<<
", layerId "<<layerID<<
" not found in any channels, returning zeros");
90 return SiLocAlignData(stationID,layerID);
◆ alignmentData()
Provide alignment parameters for a given plane. Returns zeros if no data available.
Definition at line 30 of file SiLocAlignDBTool.cxx.
32 ATH_MSG_DEBUG(
"will get local alignment for run "<<ctx.eventID().run_number()<<
", lb "<<ctx.eventID().lumi_block()<<
", event "<<ctx.eventID().event_number());
36 if ( attrLocList ==
nullptr )
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()));
◆ finalize()
StatusCode AFP::SiLocAlignDBTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode AFP::SiLocAlignDBTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_rch_loc
The documentation for this class was generated from the following files: