DBObject containing parameters used in KLMTrigger module.
More...
#include <KLMTriggerParameters.h>
DBObject containing parameters used in KLMTrigger module.
Definition at line 31 of file KLMTriggerParameters.h.
◆ KLMTriggerParameters() [1/2]
◆ KLMTriggerParameters() [2/2]
Constructor.
- Parameters
-
[in] | nLayers | Number of layers used in the trigger logic. |
[in] | whichLayers | Pattern of layers used in the trigger logic. |
Definition at line 47 of file KLMTriggerParameters.h.
47 :
48 m_nLayers{nLayers},
49 m_whichLayers{whichLayers}
50 {
51 }
◆ ~KLMTriggerParameters()
◆ getGeometryDataSize()
size_t getGeometryDataSize |
( |
| ) |
const |
|
inline |
◆ getLayer()
int32_t getLayer |
( |
int32_t | i | ) |
const |
|
inline |
◆ getNLayers()
int32_t getNLayers |
( |
| ) |
const |
|
inline |
Get the number of layers used in the trigger logic.
Definition at line 96 of file KLMTriggerParameters.h.
97 {
98 return m_nLayers;
99 }
◆ getOffsetX()
double getOffsetX |
( |
int32_t | i | ) |
const |
|
inline |
◆ getOffsetY()
double getOffsetY |
( |
int32_t | i | ) |
const |
|
inline |
◆ getPlane()
int32_t getPlane |
( |
int32_t | i | ) |
const |
|
inline |
◆ getSection()
int32_t getSection |
( |
int32_t | i | ) |
const |
|
inline |
◆ getSector()
int32_t getSector |
( |
int32_t | i | ) |
const |
|
inline |
◆ getSlopeX()
double getSlopeX |
( |
int32_t | i | ) |
const |
|
inline |
◆ getSlopeY()
double getSlopeY |
( |
int32_t | i | ) |
const |
|
inline |
◆ getSubdetector()
int32_t getSubdetector |
( |
int32_t | i | ) |
const |
|
inline |
◆ getWhichLayers()
std::string getWhichLayers |
( |
| ) |
const |
|
inline |
Get the pattern of layers used in the trigger logic.
Definition at line 104 of file KLMTriggerParameters.h.
105 {
106 return m_whichLayers;
107 }
◆ pushGeometryData()
void pushGeometryData |
( |
int32_t | Subdetector, |
|
|
int32_t | section, |
|
|
int32_t | sector, |
|
|
int32_t | layer, |
|
|
int32_t | plane, |
|
|
double | slopeX, |
|
|
double | offsetX, |
|
|
double | slopeY, |
|
|
double | offsetY ) |
|
inline |
Definition at line 156 of file KLMTriggerParameters.h.
159 {
160
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);
170 }
◆ setNLayers()
void setNLayers |
( |
int32_t | nLayers | ) |
|
|
inline |
Set the number of layers used in the trigger logic.
- Parameters
-
[in] | nLayers | Max number of CDC hits for an event. |
Definition at line 64 of file KLMTriggerParameters.h.
65 {
66
67
68 int32_t threshold{static_cast<int32_t>(EKLMElementNumbers::Instance().getMaximalDetectorLayerNumber(EKLMElementNumbers::c_BackwardSection))};
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)
76 );
77 }
78 m_nLayers = nLayers;
79 }
◆ setWhichLayers()
void setWhichLayers |
( |
const std::string & | whichLayers | ) |
|
|
inline |
Set the pattern of layers used in the trigger logic.
- Parameters
-
[in] | whichLayers | Pattern of layers used in the trigger logic. |
Definition at line 85 of file KLMTriggerParameters.h.
86 {
87 if (whichLayers.empty())
88 B2FATAL("The string passed to 'setWhichLayers' is empty."
89 << LogVar("string", whichLayers));
90 m_whichLayers = whichLayers;
91 }
◆ m_layer
std::vector<int32_t> m_layer |
|
private |
◆ m_nLayers
◆ m_offsetX
std::vector<double> m_offsetX |
|
private |
◆ m_offsetY
std::vector<double> m_offsetY |
|
private |
◆ m_plane
std::vector<int32_t> m_plane |
|
private |
◆ m_section
std::vector<int32_t> m_section |
|
private |
◆ m_sector
std::vector<int32_t> m_sector |
|
private |
◆ m_slopeX
std::vector<double> m_slopeX |
|
private |
◆ m_slopeY
std::vector<double> m_slopeY |
|
private |
◆ m_Subdetector
std::vector<int32_t> m_Subdetector |
|
private |
◆ m_whichLayers
std::string m_whichLayers |
|
private |
The documentation for this class was generated from the following file: