#include <ITkPixelClusterErrorData.h>
|
| PixelClusterErrorData () |
|
| ~PixelClusterErrorData () |
|
std::pair< double, double > | getDelta (IdentifierHash idHash, int sizePhi, double angle, int sizeZ, double eta) const |
| Methods to access the calibration data. More...
|
|
std::pair< double, double > | getDeltaError (IdentifierHash idHash) const |
|
void | setDeltaError (IdentifierHash idHash, float period_phi, float period_sinheta, float delta_x_slope, float delta_x_offset, float error_x, float delta_y_slope, float delta_y_offset, float error_y) |
|
void | setDeltaError (IdentifierHash idHash, const std::array< float, kNParam > ¶m) |
|
void | setDeltaError (IdentifierHash idHash, std::span< double > param) |
|
void | print (const std::string &file) const |
|
unsigned int | load (const std::string &file) |
| load cluster error data from ascii file More...
|
|
IdentifierHash | getIdentifierHash (Identifier identifier) const |
|
Identifier | getIdentifier (IdentifierHash idHash) const |
|
const std::vector< std::array< float, kNParam > > & | getConstMap () const |
|
Definition at line 24 of file ITkPixelClusterErrorData.h.
◆ EParam
Enumerator |
---|
kPeriod_phi | |
kPeriod_sinheta | |
kDelta_x_slope | |
kDelta_x_offset | |
kError_x | |
kDelta_y_slope | |
kDelta_y_offset | |
kError_y | |
kNParam | |
Definition at line 28 of file ITkPixelClusterErrorData.h.
◆ PixelClusterErrorData()
ITk::PixelClusterErrorData::PixelClusterErrorData |
( |
| ) |
|
|
inline |
◆ ~PixelClusterErrorData()
ITk::PixelClusterErrorData::~PixelClusterErrorData |
( |
| ) |
|
|
inline |
◆ getConstMap()
const std::vector< std::array<float, kNParam> >& ITk::PixelClusterErrorData::getConstMap |
( |
| ) |
const |
|
inline |
◆ getDelta()
std::pair< double, double > ITk::PixelClusterErrorData::getDelta |
( |
IdentifierHash |
idHash, |
|
|
int |
sizePhi, |
|
|
double |
angle, |
|
|
int |
sizeZ, |
|
|
double |
eta |
|
) |
| const |
Methods to access the calibration data.
Definition at line 32 of file ITkPixelClusterErrorData.cxx.
45 double delta_x = delta_x_slope * fabs(
angle - period_phi*(sizePhi-2)) + delta_x_offset;
46 double delta_y = delta_y_slope * fabs(sinh(fabs(eta)) - period_sinheta*(sizeZ-2)) + delta_y_offset;
47 return std::make_pair(delta_x,delta_y);
◆ getDeltaError()
std::pair<double,double> ITk::PixelClusterErrorData::getDeltaError |
( |
IdentifierHash |
idHash | ) |
const |
|
inline |
◆ getIdentifier()
◆ getIdentifierHash()
◆ initialize()
void ITk::PixelClusterErrorData::initialize |
( |
| ) |
|
|
private |
Definition at line 18 of file ITkPixelClusterErrorData.cxx.
20 SmartIF<StoreGateSvc>
detStore{Gaudi::svcLocator()->service(
"DetectorStore")};
22 throw std::runtime_error(
"Could not retrieve DetectorStore");
26 throw std::runtime_error(
"Could not retrieve PixelID");
◆ load()
unsigned int ITk::PixelClusterErrorData::load |
( |
const std::string & |
file | ) |
|
load cluster error data from ascii file
- Parameters
-
file | name of the ascii file |
- Returns
- number of entries read from the file.
Definition at line 83 of file ITkPixelClusterErrorData.cxx.
86 unsigned int n_entries=0;
96 double period_sinheta;
98 double delta_x_offset;
100 double delta_y_slope;
101 double delta_y_offset;
102 double delta_error_y;
106 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;
110 period_phi, period_sinheta,
111 delta_x_slope, delta_x_offset, delta_error_x,
112 delta_y_slope, delta_y_offset, delta_error_y);
120 throw std::runtime_error(
"ITkAnalogueClusteringConstantsFile \"" +
file +
"\" can not be read. Unable to proceed.");
◆ print()
void ITk::PixelClusterErrorData::print |
( |
const std::string & |
file | ) |
const |
◆ setDeltaError() [1/3]
◆ setDeltaError() [2/3]
void ITk::PixelClusterErrorData::setDeltaError |
( |
IdentifierHash |
idHash, |
|
|
float |
period_phi, |
|
|
float |
period_sinheta, |
|
|
float |
delta_x_slope, |
|
|
float |
delta_x_offset, |
|
|
float |
error_x, |
|
|
float |
delta_y_slope, |
|
|
float |
delta_y_offset, |
|
|
float |
error_y |
|
) |
| |
Definition at line 56 of file ITkPixelClusterErrorData.cxx.
61 setDeltaError(idHash, std::array<float, kNParam>{period_phi, period_sinheta,
62 delta_x_slope, delta_x_offset, error_x,
63 delta_y_slope, delta_y_offset, error_y});
◆ setDeltaError() [3/3]
void ITk::PixelClusterErrorData::setDeltaError |
( |
IdentifierHash |
idHash, |
|
|
std::span< double > |
param |
|
) |
| |
|
inline |
◆ m_constmap
std::vector< std::array<float, kNParam> > 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(IdentifierHash idHash, float period_phi, float period_sinheta, float delta_x_slope, float delta_x_offset, float error_x, float delta_y_slope, float delta_y_offset, float error_y)