The ITk::PixelOfflineCalibData is a class that designed to hold the data used by ITk pixel offline algorithms.
More...
#include <ITkPixelOfflineCalibData.h>
The ITk::PixelOfflineCalibData is a class that designed to hold the data used by ITk pixel offline algorithms.
Definition at line 27 of file ITkPixelOfflineCalibData.h.
◆ PixelOfflineCalibData() [1/2]
| ITk::PixelOfflineCalibData::PixelOfflineCalibData |
( |
| ) |
|
|
inline |
◆ PixelOfflineCalibData() [2/2]
◆ ~PixelOfflineCalibData()
| ITk::PixelOfflineCalibData::~PixelOfflineCalibData |
( |
| ) |
|
|
default |
◆ dump()
| void PixelOfflineCalibData::dump |
( |
| ) |
|
◆ getClusterErrorData() [1/2]
◆ getClusterErrorData() [2/2]
◆ getConstants()
| std::vector< float > PixelOfflineCalibData::getConstants |
( |
| ) |
const |
Definition at line 17 of file ITkPixelOfflineCalibData.cxx.
17 {
18 const std::vector< std::array<float, ITk::PixelClusterErrorData::kNParam> > &constMap =
m_clusterErrorData->getConstMap();
19 std::vector<float> constants;
21
22 for(
unsigned int id_hash=0;
const std::array<float, ITk::PixelClusterErrorData::kNParam>&
values : constMap){
24 constants.push_back(pixelId);
25 constants.insert(constants.end(),
values.begin(),
values.end());
26 }
27 return constants;
28 }
◆ operator=()
◆ setConstants()
| void PixelOfflineCalibData::setConstants |
( |
const std::vector< float > & | constants | ) |
|
Definition at line 35 of file ITkPixelOfflineCalibData.cxx.
35 {
36
37 int entry_size = 9;
38 int map_size = constants.size()/entry_size;
39
40 for(
int i=0;
i<map_size;
i++){
41
42 long long pixelId_long = constants[
i*entry_size];
43 std::ostringstream
ss;
44 ss <<
"0x" << std::hex << pixelId_long;
45 std::string pixelId_str(
ss.str());
46 Identifier pixelId;
47 pixelId.
set(pixelId_str);
48
49 double period_phi = constants[
i*entry_size + 1];
50 double period_sinheta = constants[
i*entry_size + 2];
51 double delta_x_slope = constants[
i*entry_size + 3];
52 double delta_x_offset = constants[
i*entry_size + 4];
53 double delta_err_x = constants[
i*entry_size + 5];
54 double delta_y_slope = constants[
i*entry_size + 6];
55 double delta_y_offset = constants[
i*entry_size + 7];
56 double delta_err_y = constants[
i*entry_size + 8];
57
59 delta_x_slope, delta_x_offset, delta_err_x,
60 delta_y_slope, delta_y_offset, delta_err_y);
61
62 }
63 }
void set(const std::string &id)
build from a string form - hexadecimal
◆ update()
◆ m_clusterErrorData
The documentation for this class was generated from the following files: