Class to store EKLM alignment data in the database.
More...
#include <EKLMAlignment.h>
Class to store EKLM alignment data in the database.
Definition at line 30 of file EKLMAlignment.h.
◆ EKLMAlignment()
◆ ~EKLMAlignment()
◆ getGlobalParam()
double getGlobalParam |
( |
unsigned short |
element, |
|
|
unsigned short |
param |
|
) |
| const |
Get global parameter.
- Parameters
-
[in] | element | Element number (KLM module number). |
[in] | param | Parameter number. |
- Returns
- Global parameter value.
Definition at line 45 of file EKLMAlignment.cc.
47{
49 if (alignmentData == nullptr)
50 return 0;
51 return alignmentData->getParameter(
53}
const KLMAlignmentData * getModuleAlignment(KLMModuleNumber module) const
Get module alignment data.
ParameterNumbers
Alignment parameter numbers.
◆ getGlobalUniqueID()
static unsigned short getGlobalUniqueID |
( |
| ) |
|
|
inlinestatic |
Get global unique identifier.
- Returns
- Global unique identifier.
Definition at line 63 of file EKLMAlignment.h.
◆ getModuleAlignment()
Get module alignment data.
- Parameters
-
Definition at line 35 of file EKLMAlignment.cc.
37{
38 std::map<KLMModuleNumber, KLMAlignmentData>::const_iterator it;
41 return nullptr;
42 return &(it->second);
43}
std::map< KLMModuleNumber, KLMAlignmentData > m_ModuleAlignment
Module alignment.
◆ listGlobalParams()
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams |
( |
| ) |
|
◆ setGlobalParam()
void setGlobalParam |
( |
double |
value, |
|
|
unsigned short |
element, |
|
|
unsigned short |
param |
|
) |
| |
Set global parameter.
- Parameters
-
[in] | value | Parameter value. |
[in] | element | Element number (KLM module number). |
[in] | param | Parameter number. |
Definition at line 55 of file EKLMAlignment.cc.
57{
60
61
62
63
64 if (alignmentData == nullptr) {
66 newAlignmentData.setParameter(
69 std::pair<KLMModuleNumber, KLMAlignmentData>(element, newAlignmentData));
70 } else {
71 alignmentData->setParameter(
73 }
74}
◆ setModuleAlignment()
Set module alignment data.
- Parameters
-
[in] | module | Module number. |
[in] | dat | Alignment data. |
Definition at line 22 of file EKLMAlignment.cc.
24{
25 std::map<KLMModuleNumber, KLMAlignmentData>::iterator it;
29 std::pair<KLMModuleNumber, KLMAlignmentData>(module, *dat));
30 } else {
31 it->second = *dat;
32 }
33}
◆ m_ModuleAlignment
The documentation for this class was generated from the following files: