#include <ITkPixelClusterErrorData.h>
|
| PixelClusterErrorData () |
|
| ~PixelClusterErrorData () |
|
std::pair< double, double > | getDelta (const Identifier *pixelId, int sizePhi, double angle, int sizeZ, double eta) const |
| Methods to access the calibration data. More...
|
|
std::pair< double, double > | getDeltaError (const Identifier *pixelId) const |
|
const std::map< const Identifier, std::vector< double > > & | getConstMap () const |
|
void | setDeltaError (const Identifier *pixelId, double period_phi, double period_sinheta, double delta_x_slope, double delta_x_offset, double error_x, double delta_y_slope, double delta_y_offset, double error_y) |
|
void | print (const std::string &file) const |
|
void | load (const std::string &file) |
|
Definition at line 19 of file ITkPixelClusterErrorData.h.
◆ PixelClusterErrorData()
ITk::PixelClusterErrorData::PixelClusterErrorData |
( |
| ) |
|
|
inline |
◆ ~PixelClusterErrorData()
ITk::PixelClusterErrorData::~PixelClusterErrorData |
( |
| ) |
|
|
inline |
◆ getConstMap()
const std::map< const Identifier, std::vector<double> >& ITk::PixelClusterErrorData::getConstMap |
( |
| ) |
const |
|
inline |
◆ getDelta()
std::pair< double, double > ITk::PixelClusterErrorData::getDelta |
( |
const Identifier * |
pixelId, |
|
|
int |
sizePhi, |
|
|
double |
angle, |
|
|
int |
sizeZ, |
|
|
double |
eta |
|
) |
| const |
Methods to access the calibration data.
Definition at line 34 of file ITkPixelClusterErrorData.cxx.
40 double period_phi =
value[0];
41 double period_sinheta =
value[1];
42 double delta_x_slope =
value[2];
43 double delta_x_offset =
value[3];
44 double delta_y_slope =
value[5];
45 double delta_y_offset =
value[6];
47 double delta_x = delta_x_slope * fabs(
angle - period_phi*(sizePhi-2)) + delta_x_offset;
48 double delta_y = delta_y_slope * fabs(sinh(fabs(eta)) - period_sinheta*(sizeZ-2)) + delta_y_offset;
50 return std::make_pair(delta_x,delta_y);
◆ getDeltaError()
std::pair< double, double > ITk::PixelClusterErrorData::getDeltaError |
( |
const Identifier * |
pixelId | ) |
const |
◆ Initialize()
void ITk::PixelClusterErrorData::Initialize |
( |
| ) |
|
|
private |
Definition at line 20 of file ITkPixelClusterErrorData.cxx.
22 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
24 throw std::runtime_error(
"Could not retrieve DetectorStore");
28 throw std::runtime_error(
"Could not retrieve PixelID");
◆ load()
void ITk::PixelClusterErrorData::load |
( |
const std::string & |
file | ) |
|
Definition at line 104 of file ITkPixelClusterErrorData.cxx.
115 int waferID_hash_int;
117 double period_sinheta;
118 double delta_x_slope;
119 double delta_x_offset;
120 double delta_error_x;
121 double delta_y_slope;
122 double delta_y_offset;
123 double delta_error_y;
127 infile >> waferID_hash_int >> period_phi >> period_sinheta >> delta_x_slope >> delta_x_offset >> delta_error_x >> delta_y_slope >> delta_y_offset >> delta_error_y;
132 period_phi, period_sinheta,
133 delta_x_slope, delta_x_offset, delta_error_x,
134 delta_y_slope, delta_y_offset, delta_error_y);
141 throw std::runtime_error(
"ITkAnalogueClusteringConstantsFile \"" +
file +
"\" can not be read. Unable to proceed.");
◆ print()
void ITk::PixelClusterErrorData::print |
( |
const std::string & |
file | ) |
const |
◆ setDeltaError()
void ITk::PixelClusterErrorData::setDeltaError |
( |
const Identifier * |
pixelId, |
|
|
double |
period_phi, |
|
|
double |
period_sinheta, |
|
|
double |
delta_x_slope, |
|
|
double |
delta_x_offset, |
|
|
double |
error_x, |
|
|
double |
delta_y_slope, |
|
|
double |
delta_y_offset, |
|
|
double |
error_y |
|
) |
| |
Definition at line 70 of file ITkPixelClusterErrorData.cxx.
76 std::vector<double> linevalues = {period_phi, period_sinheta,
77 delta_x_slope, delta_x_offset, error_x,
78 delta_y_slope, delta_y_offset, error_y};
◆ m_constmap
std::map< const Identifier, std::vector<double> > ITk::PixelClusterErrorData::m_constmap |
|
private |
◆ m_pixelID
const PixelID* ITk::PixelClusterErrorData::m_pixelID {nullptr} |
|
private |
The documentation for this class was generated from the following files:
void setDeltaError(const Identifier *pixelId, double period_phi, double period_sinheta, double delta_x_slope, double delta_x_offset, double error_x, double delta_y_slope, double delta_y_offset, double error_y)