5#ifndef ITKPIXELCLUSTERERRORDATA_H
6#define ITKPIXELCLUSTERERRORDATA_H
10#include "Identifier/Identifier.h"
46 int sizePhi,
double angle,
47 int sizeZ,
double eta)
const;
49 const std::array<float,kNParam> &values =
m_constmap.at(idHash);
53 float period_phi,
float period_sinheta,
54 float delta_x_slope,
float delta_x_offset,
float error_x,
55 float delta_y_slope,
float delta_y_offset,
float error_y );
60 std::array<float,kNParam> &dest=
m_constmap.at(idHash);
61 if (param.size() != dest.size())
throw std::range_error(
"Parameter sizes do not match");
62 std::copy(param.begin(),param.end(), dest.begin());
64 void print(
const std::string&
file)
const;
69 unsigned int load(
const std::string&
file);
Scalar eta() const
pseudorapidity method
macros to associate a CLID to a type
This is an Identifier helper class for the Pixel subdetector.
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
std::pair< double, double > getDeltaError(IdentifierHash idHash) const
void setDeltaError(IdentifierHash idHash, std::span< double > param)
void print(const std::string &file) const
IdentifierHash getIdentifierHash(Identifier identifier) 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)
const PixelID * m_pixelID
Identifier getIdentifier(IdentifierHash idHash) const
unsigned int load(const std::string &file)
load cluster error data from ascii file
std::pair< double, double > getDelta(IdentifierHash idHash, int sizePhi, double angle, int sizeZ, double eta) const
Methods to access the calibration data.
const std::vector< std::array< float, kNParam > > & getConstMap() const
std::vector< std::array< float, kNParam > > m_constmap
void setDeltaError(IdentifierHash idHash, const std::array< float, kNParam > ¶m)
This is a "hash" representation of an Identifier.
This is an Identifier helper class for the Pixel subdetector.