CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TofValue Class Referenceabstract

#include <TofData.h>

+ Inheritance diagram for TofValue:

Public Member Functions

 TofValue ()
 
virtual ~TofValue ()
 
TofValueoperator= (const TofValue &source)
 
int channel () const
 
int times () const
 
int number () const
 
int clock () const
 
double value () const
 
bool used () const
 
void timespp ()
 
void timesmm ()
 
void setNumber (int number)
 
virtual void setValue (int value)=0
 
void setUsed (bool used)
 

Protected Attributes

int m_clock
 
int m_channel
 
double m_value
 

Detailed Description

Definition at line 9 of file TofData.h.

Constructor & Destructor Documentation

◆ TofValue()

TofValue::TofValue ( )

Definition at line 11 of file TofData.cxx.

11 {
12 m_channel = -999;
13 m_value = -999.0;
14 m_times = -1;
15 m_number = 0;
16 m_clock = -999;
17 m_used = false;
18 return;
19}
double m_value
Definition TofData.h:33
int m_channel
Definition TofData.h:32
int m_clock
Definition TofData.h:31

◆ ~TofValue()

TofValue::~TofValue ( )
virtual

Definition at line 22 of file TofData.cxx.

22{}

Member Function Documentation

◆ channel()

int TofValue::channel ( ) const
inline

Definition at line 17 of file TofData.h.

17{ return m_channel; }

Referenced by PmtData::adcChannel(), and PmtData::tdcChannel().

◆ clock()

int TofValue::clock ( ) const
inline

Definition at line 20 of file TofData.h.

20{ return m_clock; }

Referenced by PmtData::qclock(), Adc::setValue_mrpc(), and PmtData::tclock().

◆ number()

int TofValue::number ( ) const
inline

Definition at line 19 of file TofData.h.

19{ return m_number; }

Referenced by PmtData::qnumber(), setNumber(), and PmtData::tnumber().

◆ operator=()

TofValue & TofValue::operator= ( const TofValue & source)

Definition at line 25 of file TofData.cxx.

25 {
26 m_channel = source.m_channel;
27 m_value = source.m_value;
28 m_times = source.m_times;
29 m_number = source.m_number;
30 m_clock = source.m_clock;
31 m_used = source.m_used;
32 return *this;
33}

◆ setNumber()

void TofValue::setNumber ( int number)
inline

Definition at line 26 of file TofData.h.

26{ m_number = number; }
int number() const
Definition TofData.h:19

Referenced by TofRawDataProvider::tofDataMapFull().

◆ setUsed()

void TofValue::setUsed ( bool used)
inline

Definition at line 28 of file TofData.h.

28{ m_used = used; }
bool used() const
Definition TofData.h:22

Referenced by PmtData::setUsed().

◆ setValue()

virtual void TofValue::setValue ( int value)
pure virtual

Implemented in Adc, and Tdc.

◆ times()

int TofValue::times ( ) const
inline

Definition at line 18 of file TofData.h.

18{ return m_times; }

Referenced by PmtData::clear(), PmtData::qtimes(), PmtData::setAdc(), PmtData::setTdc(), and PmtData::ttimes().

◆ timesmm()

void TofValue::timesmm ( )

Definition at line 42 of file TofData.cxx.

42 {
43 m_times = m_times - 1;
44 return;
45}

Referenced by PmtData::clear(), PmtData::qtimesmm(), and PmtData::ttimesmm().

◆ timespp()

void TofValue::timespp ( )

Definition at line 36 of file TofData.cxx.

36 {
37 m_times = m_times + 1;
38 return;
39}

Referenced by PmtData::qtimespp(), PmtData::setAdc(), PmtData::setTdc(), and PmtData::ttimespp().

◆ used()

bool TofValue::used ( ) const
inline

Definition at line 22 of file TofData.h.

22{ return m_used; }

Referenced by PmtData::qused(), setUsed(), PmtData::tused(), and PmtData::used().

◆ value()

double TofValue::value ( ) const
inline

Definition at line 21 of file TofData.h.

21{ return m_value; }

Referenced by PmtData::adc(), Adc::setValue(), Tdc::setValue(), Adc::setValue_mrpc(), and PmtData::tdc().

Member Data Documentation

◆ m_channel

int TofValue::m_channel
protected

◆ m_clock

int TofValue::m_clock
protected

Definition at line 31 of file TofData.h.

Referenced by clock(), operator=(), Adc::setValue(), Tdc::setValue(), Adc::setValue_mrpc(), and TofValue().

◆ m_value

double TofValue::m_value
protected

Definition at line 33 of file TofData.h.

Referenced by Adc::calculate(), operator=(), Adc::setValue(), Tdc::setValue(), TofValue(), and value().


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