TofValue Class Reference

#include <TofData.h>

Inheritance diagram for TofValue:

Adc Tdc List of all members.

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)
void setUsed (bool used)

Protected Attributes

int m_clock
int m_channel
double m_value

Private Attributes

int m_times
int m_number
bool m_used

Detailed Description

Definition at line 9 of file TofData.h.


Constructor & Destructor Documentation

TofValue::TofValue (  ) 

Definition at line 12 of file TofData.cxx.

References m_channel, m_clock, m_number, m_times, m_used, and m_value.

00012                    {
00013   m_channel = -999;
00014   m_value  = -999.0;
00015   m_times  = -1;
00016   m_number = 0;
00017   m_clock  = -999;
00018   m_used   = false;
00019   return;
00020 }

TofValue::~TofValue (  )  [virtual]

Definition at line 23 of file TofData.cxx.

00023 {}


Member Function Documentation

int TofValue::channel (  )  const [inline]

Definition at line 17 of file TofData.h.

References m_channel.

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

00017 { return  m_channel;     }

int TofValue::clock (  )  const [inline]

Definition at line 20 of file TofData.h.

References m_clock.

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

00020 { return  m_clock;       }

int TofValue::number ( void   )  const [inline]

Definition at line 19 of file TofData.h.

References m_number.

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

00019 { return  m_number;      }

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

Definition at line 26 of file TofData.cxx.

References m_channel, m_clock, m_number, m_times, m_used, and m_value.

00026                                                    {
00027   m_channel = source.m_channel;
00028   m_value  = source.m_value;
00029   m_times  = source.m_times;
00030   m_number = source.m_number;
00031   m_clock  = source.m_clock;
00032   m_used   = source.m_used;
00033   return *this;
00034 }

void TofValue::setNumber ( int  number  )  [inline]

Definition at line 26 of file TofData.h.

References m_number.

Referenced by TofRawDataProvider::tofDataMapFull().

00026 { m_number = number;     }

void TofValue::setUsed ( bool  used  )  [inline]

Definition at line 28 of file TofData.h.

References m_used.

Referenced by PmtData::setUsed().

00028 { m_used   = used;       }

int TofValue::times (  )  const [inline]

Definition at line 18 of file TofData.h.

References m_times.

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

00018 { return  m_times;       }

void TofValue::timesmm (  ) 

Definition at line 43 of file TofData.cxx.

References m_times.

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

00043                        {
00044   m_times = m_times - 1;
00045   return;
00046 }

void TofValue::timespp (  ) 

Definition at line 37 of file TofData.cxx.

References m_times.

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

00037                        {
00038   m_times = m_times + 1;
00039   return;
00040 }

bool TofValue::used (  )  const [inline]

Definition at line 22 of file TofData.h.

References m_used.

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

00022 { return  m_used;        }

double TofValue::value (  )  const [inline]

Definition at line 21 of file TofData.h.

References m_value.

Referenced by PmtData::adc(), and PmtData::tdc().

00021 { return  m_value;       }


Member Data Documentation

int TofValue::m_channel [protected]

Definition at line 32 of file TofData.h.

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

int TofValue::m_clock [protected]

Definition at line 31 of file TofData.h.

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

int TofValue::m_number [private]

Definition at line 37 of file TofData.h.

Referenced by number(), operator=(), setNumber(), and TofValue().

int TofValue::m_times [private]

Definition at line 36 of file TofData.h.

Referenced by operator=(), times(), timesmm(), timespp(), and TofValue().

bool TofValue::m_used [private]

Definition at line 38 of file TofData.h.

Referenced by operator=(), setUsed(), TofValue(), and used().

double TofValue::m_value [protected]

Definition at line 33 of file TofData.h.

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


Generated on Tue Nov 29 23:36:08 2016 for BOSS_7.0.2 by  doxygen 1.4.7