49 KLMTriggerParameters(int32_t nPlanes, int32_t nLayers, int32_t countPlanes,
const std::string& whichLayers) :
52 m_countPlanes{countPlanes},
74 if (nPlanes > threshold) {
75 B2FATAL(
"The value passed to 'setNPlanes' exceed the maximum allowed number of layers."
76 <<
LogVar(
"nPlanes", nPlanes)
77 <<
LogVar(
"layers threshold", threshold));
78 }
else if (nPlanes < 0) {
79 B2FATAL(
"The value passed to 'setNPlanes' is smaller than zero."
80 <<
LogVar(
"nPlanes", nPlanes)
96 if (nLayers > threshold) {
97 B2FATAL(
"The value passed to 'setNLayers' exceed the maximum allowed number of layers."
98 <<
LogVar(
"nLayers", nLayers)
99 <<
LogVar(
"layers threshold", threshold));
100 }
else if (nLayers < 0) {
101 B2FATAL(
"The value passed to 'setNLayers' is smaller than zero."
102 <<
LogVar(
"nLayers", nLayers)
115 m_countPlanes = countPlanes;
125 if (whichLayers.empty())
126 B2FATAL(
"The string passed to 'setWhichLayers' is empty."
127 <<
LogVar(
"string", whichLayers));
154 return m_countPlanes;
165 int32_t getSubdetector(int32_t i)
const
167 return m_Subdetector[i];
170 int32_t getSection(int32_t i)
const
174 int32_t getSector(int32_t i)
const
178 int32_t getLayer(int32_t i)
const
183 int32_t getPlane(int32_t i)
const
188 double getSlopeX(int32_t i)
const
192 double getOffsetX(int32_t i)
const
197 double getSlopeY(int32_t i)
const
201 double getOffsetY(int32_t i)
const
207 size_t getGeometryDataSize()
const
209 return m_Subdetector.size();
212 void pushGeometryData(int32_t Subdetector, int32_t section, int32_t sector, int32_t layer, int32_t plane,
double slopeX,
214 double slopeY,
double offsetY)
217 m_Subdetector.push_back(Subdetector);
218 m_section.push_back(section);
219 m_sector.push_back(sector);
220 m_layer.push_back(layer);
221 m_plane.push_back(plane);
222 m_slopeX.push_back(slopeX);
223 m_offsetX.push_back(offsetX);
224 m_slopeY.push_back(slopeY);
225 m_offsetY.push_back(offsetY);
235 int32_t m_nLayers{0};
236 int32_t m_countPlanes{1};
238 std::vector<int32_t> m_Subdetector;
239 std::vector<int32_t> m_section;
240 std::vector<int32_t> m_sector;
241 std::vector<int32_t> m_layer;
242 std::vector<int32_t> m_plane;
243 std::vector<double> m_slopeX;
244 std::vector<double> m_offsetX;
245 std::vector<double> m_slopeY;
246 std::vector<double> m_offsetY;