DBObject containing parameters used in KLMTrigger module.
More...
#include <KLMTriggerParameters.h>
|
| | KLMTriggerParameters () |
| | Default constructor.
|
| |
| | KLMTriggerParameters (int32_t nPlanes, int32_t nLayers, int32_t countPlanes, const std::string &whichLayers) |
| | Constructor.
|
| |
| | ~KLMTriggerParameters () |
| | Destructor.
|
| |
| void | setNPlanes (int32_t nPlanes) |
| | Set the number of planes used in the trigger logic.
|
| |
| void | setNLayers (int32_t nLayers) |
| | Set the number of layers used in the trigger logic.
|
| |
| void | setCountPlanes (int32_t countPlanes) |
| | Set the parameter to control counting Layers=0 or Planes=1.
|
| |
| void | setWhichLayers (const std::string &whichLayers) |
| | Set the pattern of layers used in the trigger logic.
|
| |
| int32_t | getNPlanes () const |
| | Get the number of planes used in the trigger logic.
|
| |
| int32_t | getNLayers () const |
| | Get the number of layers used in the trigger logic.
|
| |
| int32_t | getcountPlanes () const |
| | Get the number of layers used in the trigger logic.
|
| |
| std::string | getWhichLayers () const |
| | Get the pattern of layers used in the trigger logic.
|
| |
| int32_t | getSubdetector (int32_t i) const |
| |
| int32_t | getSection (int32_t i) const |
| |
| int32_t | getSector (int32_t i) const |
| |
| int32_t | getLayer (int32_t i) const |
| |
| int32_t | getPlane (int32_t i) const |
| |
| double | getSlopeX (int32_t i) const |
| |
| double | getOffsetX (int32_t i) const |
| |
| double | getSlopeY (int32_t i) const |
| |
| double | getOffsetY (int32_t i) const |
| |
| size_t | getGeometryDataSize () const |
| |
| 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) |
| |
DBObject containing parameters used in KLMTrigger module.
Definition at line 31 of file KLMTriggerParameters.h.
◆ KLMTriggerParameters() [1/2]
◆ KLMTriggerParameters() [2/2]
| KLMTriggerParameters |
( |
int32_t | nPlanes, |
|
|
int32_t | nLayers, |
|
|
int32_t | countPlanes, |
|
|
const std::string & | whichLayers ) |
|
inline |
Constructor.
- Parameters
-
| [in] | nPlanes | Number of planes used in the trigger logic. |
| [in] | nLayers | Number of layers used in the trigger logic. |
| [in] | countPlanes | Parameter to define when the algorithm changed from counting Layers to Planes |
| [in] | whichLayers | Pattern of layers used in the trigger logic. |
Definition at line 49 of file KLMTriggerParameters.h.
49 :
50 m_nPlanes{nPlanes},
51 m_nLayers{nLayers},
52 m_countPlanes{countPlanes},
53 m_whichLayers{whichLayers}
54 {
55 }
◆ ~KLMTriggerParameters()
◆ getcountPlanes()
| int32_t getcountPlanes |
( |
| ) |
const |
|
inline |
Get the number of layers used in the trigger logic.
Definition at line 152 of file KLMTriggerParameters.h.
153 {
154 return m_countPlanes;
155 }
◆ 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 144 of file KLMTriggerParameters.h.
145 {
146 return m_nLayers;
147 }
◆ getNPlanes()
| int32_t getNPlanes |
( |
| ) |
const |
|
inline |
Get the number of planes used in the trigger logic.
Definition at line 135 of file KLMTriggerParameters.h.
136 {
137 return m_nPlanes;
138 }
◆ 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 160 of file KLMTriggerParameters.h.
161 {
162 return m_whichLayers;
163 }
◆ 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 212 of file KLMTriggerParameters.h.
215 {
216
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);
226 }
◆ setCountPlanes()
| void setCountPlanes |
( |
int32_t | countPlanes | ) |
|
|
inline |
Set the parameter to control counting Layers=0 or Planes=1.
- Parameters
-
| [in] | nLayers | Max number of CDC hits for an event. |
Definition at line 113 of file KLMTriggerParameters.h.
114 {
115 m_countPlanes = countPlanes;
116 }
◆ 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 91 of file KLMTriggerParameters.h.
92 {
93
94
95 int32_t threshold{static_cast<int32_t>(EKLMElementNumbers::Instance().getMaximalDetectorLayerNumber(EKLMElementNumbers::c_BackwardSection))};
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)
103 );
104 }
105 m_nLayers = nLayers;
106 }
◆ setNPlanes()
| void setNPlanes |
( |
int32_t | nPlanes | ) |
|
|
inline |
Set the number of planes used in the trigger logic.
- Parameters
-
| [in] | nPlanes | Max number of active KLM planes for an event. |
Definition at line 69 of file KLMTriggerParameters.h.
70 {
71
72
73 int32_t threshold{static_cast<int32_t>(EKLMElementNumbers::Instance().getMaximalDetectorLayerNumber(EKLMElementNumbers::c_BackwardSection)) * 2};
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)
81 );
82 }
83 m_nPlanes = nPlanes;
84 }
◆ 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 123 of file KLMTriggerParameters.h.
124 {
125 if (whichLayers.empty())
126 B2FATAL("The string passed to 'setWhichLayers' is empty."
127 << LogVar("string", whichLayers));
128 m_whichLayers = whichLayers;
129 }
◆ m_countPlanes
| int32_t m_countPlanes {1} |
|
private |
◆ m_layer
| std::vector<int32_t> m_layer |
|
private |
◆ m_nLayers
◆ m_nPlanes
◆ 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: