12#include <framework/logging/Logger.h>
13#include <klm/dataobjects/eklm/EKLMElementNumbers.h>
69 if (nLayers > threshold) {
70 B2FATAL(
"The value passed to 'setNLayers' exceed the maximum allowed number of layers."
71 <<
LogVar(
"nLayers", nLayers)
72 <<
LogVar(
"layers threshold", threshold));
73 }
else if (nLayers < 0) {
74 B2FATAL(
"The value passed to 'setNLayers' is smaller than zero."
75 <<
LogVar(
"nLayers", nLayers)
87 if (whichLayers.empty())
88 B2FATAL(
"The string passed to 'setWhichLayers' is empty."
89 <<
LogVar(
"string", whichLayers));
109 int32_t getSubdetector(int32_t i)
const
111 return m_Subdetector[i];
114 int32_t getSection(int32_t i)
const
118 int32_t getSector(int32_t i)
const
122 int32_t getLayer(int32_t i)
const
127 int32_t getPlane(int32_t i)
const
132 double getSlopeX(int32_t i)
const
136 double getOffsetX(int32_t i)
const
141 double getSlopeY(int32_t i)
const
145 double getOffsetY(int32_t i)
const
151 size_t getGeometryDataSize()
const
153 return m_Subdetector.size();
156 void pushGeometryData(int32_t Subdetector, int32_t section, int32_t sector, int32_t layer, int32_t plane,
double slopeX,
158 double slopeY,
double offsetY)
161 m_Subdetector.push_back(Subdetector);
162 m_section.push_back(section);
163 m_sector.push_back(sector);
164 m_layer.push_back(layer);
165 m_plane.push_back(plane);
166 m_slopeX.push_back(slopeX);
167 m_offsetX.push_back(offsetX);
168 m_slopeY.push_back(slopeY);
169 m_offsetY.push_back(offsetY);
180 std::vector<int32_t> m_Subdetector;
181 std::vector<int32_t> m_section;
182 std::vector<int32_t> m_sector;
183 std::vector<int32_t> m_layer;
184 std::vector<int32_t> m_plane;
185 std::vector<double> m_slopeX;
186 std::vector<double> m_offsetX;
187 std::vector<double> m_slopeY;
188 std::vector<double> m_offsetY;
int getMaximalDetectorLayerNumber(int section) const
Get maximal detector layer number.
static const EKLMElementNumbers & Instance()
Instantiation.
@ c_BackwardSection
Backward.
DBObject containing parameters used in KLMTrigger module.
int32_t getNLayers() const
Get the number of layers used in the trigger logic.
void setNLayers(int32_t nLayers)
Set the number of layers used in the trigger logic.
int32_t m_nLayers
Number of layers used in the trigger logic.
std::string m_whichLayers
Pattern of layers used in the trigger logic.
void setWhichLayers(const std::string &whichLayers)
Set the pattern of layers used in the trigger logic.
KLMTriggerParameters(int32_t nLayers, const std::string &whichLayers)
Constructor.
ClassDef(KLMTriggerParameters, 2)
Class version.
~KLMTriggerParameters()
Destructor.
std::string getWhichLayers() const
Get the pattern of layers used in the trigger logic.
KLMTriggerParameters()
Default constructor.
Class to store variables with their name which were sent to the logging service.
Abstract base class for different kinds of events.