Belle II Software  release-08-01-10
EKLMAlignment Class Reference

Class to store EKLM alignment data in the database. More...

#include <EKLMAlignment.h>

Inheritance diagram for EKLMAlignment:
Collaboration diagram for EKLMAlignment:

Public Member Functions

 EKLMAlignment ()
 Constructor.
 
 ~EKLMAlignment ()
 Destructor.
 
void setModuleAlignment (KLMModuleNumber module, KLMAlignmentData *dat)
 Set module alignment data. More...
 
const KLMAlignmentDatagetModuleAlignment (KLMModuleNumber module) const
 Get module alignment data. More...
 
double getGlobalParam (unsigned short element, unsigned short param) const
 Get global parameter. More...
 
void setGlobalParam (double value, unsigned short element, unsigned short param)
 Set global parameter. More...
 
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams ()
 Get a list of stored global parameters.
 

Static Public Member Functions

static unsigned short getGlobalUniqueID ()
 Get global unique identifier. More...
 

Private Member Functions

 ClassDef (Belle2::EKLMAlignment, 3)
 Class version.
 

Private Attributes

std::map< KLMModuleNumber, KLMAlignmentDatam_ModuleAlignment
 Module alignment.
 

Detailed Description

Class to store EKLM alignment data in the database.

Definition at line 30 of file EKLMAlignment.h.

Member Function Documentation

◆ getGlobalParam()

double getGlobalParam ( unsigned short  element,
unsigned short  param 
) const

Get global parameter.

Parameters
[in]elementElement number (KLM module number).
[in]paramParameter number.
Returns
Global parameter value.

Definition at line 45 of file EKLMAlignment.cc.

47 {
48  const KLMAlignmentData* alignmentData = getModuleAlignment(element);
49  if (alignmentData == nullptr)
50  return 0;
51  return alignmentData->getParameter(
52  static_cast<enum KLMAlignmentData::ParameterNumbers>(param));
53 }
const KLMAlignmentData * getModuleAlignment(KLMModuleNumber module) const
Get module alignment data.
KLM 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.

64  {
65  return 40;
66  }

◆ getModuleAlignment()

const KLMAlignmentData * getModuleAlignment ( KLMModuleNumber  module) const

Get module alignment data.

Parameters
[in]moduleModule number.

Definition at line 35 of file EKLMAlignment.cc.

◆ setGlobalParam()

void setGlobalParam ( double  value,
unsigned short  element,
unsigned short  param 
)

Set global parameter.

Parameters
[in]valueParameter value.
[in]elementElement number (KLM module number).
[in]paramParameter number.

Definition at line 55 of file EKLMAlignment.cc.

◆ setModuleAlignment()

void setModuleAlignment ( KLMModuleNumber  module,
KLMAlignmentData dat 
)

Set module alignment data.

Parameters
[in]moduleModule number.
[in]datAlignment data.

Definition at line 22 of file EKLMAlignment.cc.


The documentation for this class was generated from the following files: