CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::ValSig Class Reference

#include <RangeBase.h>

Public Member Functions

 ValSig (float val=-1, float sig=-1)
 
 ValSig (const ValSig &other)
 
bool isDefined () const
 
float getVal () const
 
float getSig () const
 
void setUndefined ()
 

Public Attributes

float m_val
 
float m_sig
 

Detailed Description

Generally speaking each value in a calorimeter calibration comes with an associated uncertainty. Put them together with this little class

Definition at line 36 of file RangeBase.h.

Constructor & Destructor Documentation

◆ ValSig() [1/2]

CalibData::ValSig::ValSig ( float val = -1,
float sig = -1 )
inline

Definition at line 38 of file RangeBase.h.

38: m_val(val), m_sig(sig) {}

◆ ValSig() [2/2]

CalibData::ValSig::ValSig ( const ValSig & other)
inline

Definition at line 39 of file RangeBase.h.

39{m_val = other.m_val; m_sig = other.m_sig;}
Index other(Index i, Index j)

Member Function Documentation

◆ getSig()

float CalibData::ValSig::getSig ( ) const
inline

Definition at line 42 of file RangeBase.h.

42{return m_sig;}

◆ getVal()

float CalibData::ValSig::getVal ( ) const
inline

Definition at line 41 of file RangeBase.h.

41{return m_val;}

◆ isDefined()

bool CalibData::ValSig::isDefined ( ) const
inline

Definition at line 40 of file RangeBase.h.

40{return (m_sig >= 0.0); }

◆ setUndefined()

void CalibData::ValSig::setUndefined ( )
inline

Definition at line 44 of file RangeBase.h.

44{m_val= -1.0; m_sig = -1;}

Member Data Documentation

◆ m_sig

float CalibData::ValSig::m_sig

Definition at line 46 of file RangeBase.h.

Referenced by getSig(), isDefined(), XmlBaseCnv::processValSig(), setUndefined(), and ValSig().

◆ m_val

float CalibData::ValSig::m_val

Definition at line 45 of file RangeBase.h.

Referenced by getVal(), XmlBaseCnv::processValSig(), setUndefined(), and ValSig().


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