CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
Tdc Class Reference

#include <TofData.h>

+ Inheritance diagram for Tdc:

Public Member Functions

void setValue (int value)
 
- Public Member Functions inherited from TofValue
 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)
 

Additional Inherited Members

- Protected Attributes inherited from TofValue
int m_clock
 
int m_channel
 
double m_value
 

Detailed Description

Definition at line 63 of file TofData.h.

Member Function Documentation

◆ setValue()

void Tdc::setValue ( int value)
virtual

Implements TofValue.

Definition at line 48 of file TofData.cxx.

48 {
49 m_clock = ( ( value & 0x7e000 ) >> 13 );
50 if( value == 0x7fffffff ) {
51 m_clock = 100;
52 m_channel = 10000;
53 m_value = 10000.0;
54 }
55 else if( value == -999 ) {
56 m_channel = -999;
57 m_value = -999.0;
58 }
59 else {
62 }
63
64 return;
65}
static double TofTime(unsigned int timeChannel)
Definition RawDataUtil.h:69
double value() const
Definition TofData.h:21
double m_value
Definition TofData.h:33
int m_channel
Definition TofData.h:32
int m_clock
Definition TofData.h:31

Referenced by TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapOnlineMode().


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