#include <TofData.h>
Inheritance diagram for Tdc:
Public Member Functions | |
void | setValue (int value) |
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 |
Definition at line 60 of file TofData.h.
int TofValue::channel | ( | ) | const [inline, inherited] |
Definition at line 17 of file TofData.h.
References TofValue::m_channel.
Referenced by PmtData::adc(), PmtData::adcChannel(), and PmtData::tdcChannel().
00017 { return m_channel; }
int TofValue::clock | ( | ) | const [inline, inherited] |
Definition at line 20 of file TofData.h.
References TofValue::m_clock.
Referenced by PmtData::qclock(), and PmtData::tclock().
00020 { return m_clock; }
int TofValue::number | ( | void | ) | const [inline, inherited] |
Definition at line 19 of file TofData.h.
References TofValue::m_number.
Referenced by PmtData::qnumber(), and PmtData::tnumber().
00019 { return m_number; }
void TofValue::setNumber | ( | int | number | ) | [inline, inherited] |
Definition at line 26 of file TofData.h.
References TofValue::m_number.
Referenced by TofRawDataProvider::tofDataMapFull().
void TofValue::setUsed | ( | bool | used | ) | [inline, inherited] |
Definition at line 28 of file TofData.h.
References TofValue::m_used.
Referenced by PmtData::setUsed().
void Tdc::setValue | ( | int | value | ) |
Definition at line 49 of file TofData.cxx.
References TofValue::m_channel, TofValue::m_clock, TofValue::m_value, and RawDataUtil::TofTime().
Referenced by TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapOnlineMode().
00049 { 00050 m_clock = ( ( value & 0x7e000 ) >> 13 ); 00051 if( value == 0x7fffffff ) { 00052 m_clock = 100; 00053 m_channel = 10000; 00054 m_value = 10000.0; 00055 } 00056 else if( value == -999 ) { 00057 m_channel = -999; 00058 m_value = -999.0; 00059 } 00060 else { 00061 m_channel = value; 00062 m_value = RawDataUtil::TofTime( value ); 00063 } 00064 00065 return; 00066 }
int TofValue::times | ( | ) | const [inline, inherited] |
Definition at line 18 of file TofData.h.
References TofValue::m_times.
Referenced by PmtData::clear(), PmtData::qtimes(), PmtData::setAdc(), PmtData::setTdc(), and PmtData::ttimes().
00018 { return m_times; }
void TofValue::timesmm | ( | ) | [inherited] |
Definition at line 43 of file TofData.cxx.
References TofValue::m_times.
Referenced by PmtData::clear(), PmtData::qtimesmm(), and PmtData::ttimesmm().
void TofValue::timespp | ( | ) | [inherited] |
Definition at line 37 of file TofData.cxx.
References TofValue::m_times.
Referenced by PmtData::qtimespp(), PmtData::setAdc(), PmtData::setTdc(), and PmtData::ttimespp().
bool TofValue::used | ( | ) | const [inline, inherited] |
Definition at line 22 of file TofData.h.
References TofValue::m_used.
Referenced by PmtData::qused(), PmtData::tused(), and PmtData::used().
00022 { return m_used; }
double TofValue::value | ( | ) | const [inline, inherited] |
Definition at line 21 of file TofData.h.
References TofValue::m_value.
Referenced by PmtData::adc(), and PmtData::tdc().
00021 { return m_value; }
int TofValue::m_channel [protected, inherited] |
Definition at line 32 of file TofData.h.
Referenced by TofValue::channel(), TofValue::operator=(), Adc::setValue(), setValue(), and TofValue::TofValue().
int TofValue::m_clock [protected, inherited] |
Definition at line 31 of file TofData.h.
Referenced by TofValue::clock(), TofValue::operator=(), Adc::setValue(), setValue(), and TofValue::TofValue().
double TofValue::m_value [protected, inherited] |
Definition at line 33 of file TofData.h.
Referenced by TofValue::operator=(), Adc::setValue(), setValue(), TofValue::TofValue(), and TofValue::value().