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

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

#include <EKLMSegmentAlignment.h>

Inheritance diagram for EKLMSegmentAlignment:
Collaboration diagram for EKLMSegmentAlignment:

Public Member Functions

 EKLMSegmentAlignment ()
 Constructor.
 
 ~EKLMSegmentAlignment ()
 Destructor.
 
void setSegmentAlignment (EKLMSegmentNumber segment, KLMAlignmentData *dat)
 Set segment alignment data. More...
 
const KLMAlignmentDatagetSegmentAlignment (EKLMSegmentNumber segment) const
 Get segment 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::EKLMSegmentAlignment, 1)
 Class version.
 

Private Attributes

std::map< EKLMSegmentNumber, KLMAlignmentDatam_SegmentAlignment
 Segment alignment.
 

Detailed Description

Class to store EKLM alignment data in the database.

Definition at line 30 of file EKLMSegmentAlignment.h.

Member Function Documentation

◆ getGlobalParam()

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

Get global parameter.

Parameters
[in]elementElement number (EKLM segment number).
[in]paramParameter number.
Returns
Global parameter value.

Definition at line 44 of file EKLMSegmentAlignment.cc.

46 {
47  const KLMAlignmentData* alignmentData = getSegmentAlignment(element);
48  if (alignmentData == nullptr)
49  return 0;
50  return alignmentData->getParameter(
51  static_cast<enum KLMAlignmentData::ParameterNumbers>(param));
52 }
const KLMAlignmentData * getSegmentAlignment(EKLMSegmentNumber segment) const
Get segment 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 EKLMSegmentAlignment.h.

64  {
65  return 41;
66  }

◆ getSegmentAlignment()

const KLMAlignmentData * getSegmentAlignment ( EKLMSegmentNumber  segment) const

Get segment alignment data.

Parameters
[in]segmentSegment number.

Definition at line 34 of file EKLMSegmentAlignment.cc.

◆ setGlobalParam()

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

Set global parameter.

Parameters
[in]valueParameter value.
[in]elementElement number (EKLM segment number).
[in]paramParameter number.

Definition at line 54 of file EKLMSegmentAlignment.cc.

◆ setSegmentAlignment()

void setSegmentAlignment ( EKLMSegmentNumber  segment,
KLMAlignmentData dat 
)

Set segment alignment data.

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

Definition at line 22 of file EKLMSegmentAlignment.cc.


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