7 #include "GaudiKernel/ISvcLocator.h"
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");
35 int sizePhi,
double angle,
36 int sizeZ,
double eta)
const
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);
60 double delta_x_error =
value[4];
61 double delta_y_error =
value[7];
63 return std::make_pair(delta_x_error,delta_y_error);
71 double period_phi,
double period_sinheta,
72 double delta_x_slope,
double delta_x_offset,
double error_x,
73 double delta_y_slope,
double delta_y_offset,
double error_y)
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};
93 std::vector<double>
value =
x.second;
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.");