Belle II Software development
SVDCalibrationsVector< T > Class Template Reference

template class for vector (one per strip) calibrations More...

#include <SVDCalibrationsVector.h>

Public Types

typedef T calibrationType
 typedef of the calibration type class
 
typedef std::vector< calibrationTypepayloadContainerType
 typedef of the payload container, one per strip
 

Public Member Functions

 SVDCalibrationsVector ()
 default constructor
 
 ~SVDCalibrationsVector ()
 default destructor
 

Static Public Member Functions

static calibrationType get (const payloadContainerType &svdVector, unsigned int strip)
 get the calibration of the strip
 
static const calibrationTypegetReference (const payloadContainerType &svdVector, unsigned int strip)
 get a reference to the calibration of the strip
 
static void set (payloadContainerType &svdVector, unsigned int strip, calibrationType value)
 set the calibration of the strip
 
static void init (payloadContainerType &svdVector, unsigned int layer, unsigned int, unsigned int, unsigned int side, const T &defaultT)
 initialize the calibration vector
 

Detailed Description

template<class T>
class Belle2::SVDCalibrationsVector< T >

template class for vector (one per strip) calibrations

Definition at line 22 of file SVDCalibrationsVector.h.

Member Typedef Documentation

◆ calibrationType

typedef T calibrationType

typedef of the calibration type class

Definition at line 25 of file SVDCalibrationsVector.h.

◆ payloadContainerType

typedef std::vector< calibrationType > payloadContainerType

typedef of the payload container, one per strip

Definition at line 26 of file SVDCalibrationsVector.h.

Constructor & Destructor Documentation

◆ SVDCalibrationsVector()

default constructor

Definition at line 29 of file SVDCalibrationsVector.h.

29{};

◆ ~SVDCalibrationsVector()

~SVDCalibrationsVector ( )
inline

default destructor

Definition at line 32 of file SVDCalibrationsVector.h.

32{};

Member Function Documentation

◆ get()

static calibrationType get ( const payloadContainerType svdVector,
unsigned int  strip 
)
inlinestatic

get the calibration of the strip

Definition at line 35 of file SVDCalibrationsVector.h.

36 {
37 return svdVector.at(strip);
38 }

◆ getReference()

static const calibrationType & getReference ( const payloadContainerType svdVector,
unsigned int  strip 
)
inlinestatic

get a reference to the calibration of the strip

Definition at line 41 of file SVDCalibrationsVector.h.

42 {
43 return svdVector.at(strip);
44 }

◆ init()

static void init ( payloadContainerType svdVector,
unsigned int  layer,
unsigned int  ,
unsigned int  ,
unsigned int  side,
const T &  defaultT 
)
inlinestatic

initialize the calibration vector

Definition at line 54 of file SVDCalibrationsVector.h.

57 {
58 unsigned int numberOfStrips = 0;
59
60 if (layer < 3)
61 return;
62
63 switch (side) {
64 case SVDCalibrationsBase< SVDCalibrationsVector >::Uindex :
65 numberOfStrips = 768;
66 break;
67
68 case SVDCalibrationsBase< SVDCalibrationsVector >::Vindex :
69 numberOfStrips = layer == 3 ? 768 : 512;
70 }
71
72 svdVector.resize(numberOfStrips, defaultT);
73
74
75 }

◆ set()

static void set ( payloadContainerType svdVector,
unsigned int  strip,
calibrationType  value 
)
inlinestatic

set the calibration of the strip

Definition at line 47 of file SVDCalibrationsVector.h.

49 {
50 svdVector.at(strip) = value;
51 }

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