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

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

#include <BKLMAlignment.h>

Inheritance diagram for BKLMAlignment:
Collaboration diagram for BKLMAlignment:

Public Member Functions

 BKLMAlignment ()
 Constructor.
 
 ~BKLMAlignment ()
 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::BKLMAlignment, 3)
 Class version.
 

Private Attributes

std::map< KLMModuleNumber, KLMAlignmentDatam_ModuleAlignment
 Module alignment.
 

Detailed Description

Class to store BKLM alignment data in the database.

Definition at line 30 of file BKLMAlignment.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 BKLMAlignment.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 BKLMAlignment.h.

64  {
65  return 30;
66  }

◆ getModuleAlignment()

const KLMAlignmentData * getModuleAlignment ( KLMModuleNumber  module) const

Get module alignment data.

Parameters
[in]moduleModule number.

Definition at line 35 of file BKLMAlignment.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 BKLMAlignment.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 BKLMAlignment.cc.


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