Belle II Software development
TOPCalFillPatternOffset Class Reference

Class to store the offset of reconstructed fill pattern. More...

#include <TOPCalFillPatternOffset.h>

Inheritance diagram for TOPCalFillPatternOffset:

Public Member Functions

 TOPCalFillPatternOffset ()
 Default constructor.
 
void set (int offset, double fraction=0)
 Setter.
 
void setUnusable ()
 Switch calibration status to uncalibrated.
 
int get () const
 Getter for offset.
 
double getFraction () const
 Getter for fraction.
 
bool isCalibrated () const
 Is calibrated?
 

Private Member Functions

 ClassDef (TOPCalFillPatternOffset, 2)
 ClassDef.
 

Private Attributes

int m_offset = 0
 offset [RF clock]
 
float m_fraction = 0
 fraction of reconstructed buckets matched with filled ones
 
bool m_calibrated = false
 calibration status
 

Detailed Description

Class to store the offset of reconstructed fill pattern.

Definition at line 22 of file TOPCalFillPatternOffset.h.

Constructor & Destructor Documentation

◆ TOPCalFillPatternOffset()

Default constructor.

Definition at line 29 of file TOPCalFillPatternOffset.h.

30 {}

Member Function Documentation

◆ get()

int get ( ) const
inline

Getter for offset.

Returns
offset

Definition at line 53 of file TOPCalFillPatternOffset.h.

53{return m_offset;}

◆ getFraction()

double getFraction ( ) const
inline

Getter for fraction.

Returns
fraction of reconstructed buckets matched with filled ones

Definition at line 59 of file TOPCalFillPatternOffset.h.

59{return m_fraction;}
float m_fraction
fraction of reconstructed buckets matched with filled ones

◆ isCalibrated()

bool isCalibrated ( ) const
inline

Is calibrated?

Returns
true, if calibrated

Definition at line 65 of file TOPCalFillPatternOffset.h.

65{return m_calibrated;}

◆ set()

void set ( int  offset,
double  fraction = 0 
)
inline

Setter.

Parameters
offsetvalue to be set
fractionfraction of reconstructed buckets which are matched with filled ones

Definition at line 37 of file TOPCalFillPatternOffset.h.

38 {
39 m_offset = offset;
40 m_fraction = fraction;
41 m_calibrated = true;
42 }

◆ setUnusable()

void setUnusable ( )
inline

Switch calibration status to uncalibrated.

Definition at line 47 of file TOPCalFillPatternOffset.h.

47{m_calibrated = false;}

Member Data Documentation

◆ m_calibrated

bool m_calibrated = false
private

calibration status

Definition at line 71 of file TOPCalFillPatternOffset.h.

◆ m_fraction

float m_fraction = 0
private

fraction of reconstructed buckets matched with filled ones

Definition at line 70 of file TOPCalFillPatternOffset.h.

◆ m_offset

int m_offset = 0
private

offset [RF clock]

Definition at line 69 of file TOPCalFillPatternOffset.h.


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