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

Class to store the calibrated EventT0 offsets of other detector components The offsets are measured relative to TOP EventT0 (e.g CDC - TOP etc) More...

#include <TOPCalEventT0Offset.h>

Inheritance diagram for TOPCalEventT0Offset:
Collaboration diagram for TOPCalEventT0Offset:

Classes

struct  OffsetData
 Calibration constants of a detector component. More...
 

Public Member Functions

 TOPCalEventT0Offset ()
 Default class constructor.
 
void set (Const::EDetector detector, double offset, double sigma)
 Setter. More...
 
const OffsetDataget (Const::EDetector detector) const
 Getter. More...
 
bool isAvailable (Const::EDetector detector) const
 Is calibration available for a given detector component? More...
 
bool isEmpty () const
 Is object empty? More...
 

Private Member Functions

void set () const
 Set the cache.
 
 ClassDef (TOPCalEventT0Offset, 1)
 do not write out More...
 

Private Attributes

std::vector< OffsetDatam_data
 calibration data
 
std::map< Const::EDetector, OffsetDatam_calibrations
 cache
 

Detailed Description

Class to store the calibrated EventT0 offsets of other detector components The offsets are measured relative to TOP EventT0 (e.g CDC - TOP etc)

Definition at line 27 of file TOPCalEventT0Offset.h.

Member Function Documentation

◆ ClassDef()

ClassDef ( TOPCalEventT0Offset  ,
 
)
private

do not write out

ClassDef

◆ get()

const OffsetData& get ( Const::EDetector  detector) const
inline

Getter.

Parameters
detectordetector component
Returns
calibration constants

Definition at line 82 of file TOPCalEventT0Offset.h.

83  {
84  if (m_calibrations.empty()) set();
85  return m_calibrations[detector];
86  }
std::map< Const::EDetector, OffsetData > m_calibrations
cache
void set() const
Set the cache.

◆ isAvailable()

bool isAvailable ( Const::EDetector  detector) const
inline

Is calibration available for a given detector component?

Parameters
detectordetector component
Returns
true if available

Definition at line 93 of file TOPCalEventT0Offset.h.

◆ isEmpty()

bool isEmpty ( ) const
inline

Is object empty?

Returns
true if empty

Definition at line 103 of file TOPCalEventT0Offset.h.

◆ set()

void set ( Const::EDetector  detector,
double  offset,
double  sigma 
)
inline

Setter.

Parameters
detectordetector component
offsetoffset relative to TOP
sigmatime resolution of the detector component (must be a positive value)

Definition at line 67 of file TOPCalEventT0Offset.h.


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