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 :
50 {
51 }
int32_t m_nLayers
Number of layers used in the trigger logic.
std::string m_whichLayers
Pattern of layers used in the trigger logic.
◆ ~KLMTriggerParameters()
◆ getGeometryDataSize()
size_t getGeometryDataSize |
( |
| ) |
const |
|
inline |
◆ getLayer()
int32_t getLayer |
( |
int32_t |
i | ) |
const |
|
inline |
◆ getNLayers()
int32_t getNLayers |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ 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
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 }
79 }
int getMaximalDetectorLayerNumber(int section) const
Get maximal detector layer number.
static const EKLMElementNumbers & Instance()
Instantiation.
@ c_BackwardSection
Backward.
Class to store variables with their name which were sent to the logging service.
◆ 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));
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: