BOSS 7.0.9
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 60 of file TofData.h.

Member Function Documentation

◆ setValue()

void Tdc::setValue ( int  value)

Definition at line 49 of file TofData.cxx.

49 {
50 m_clock = ( ( value & 0x7e000 ) >> 13 );
51 if( value == 0x7fffffff ) {
52 m_clock = 100;
53 m_channel = 10000;
54 m_value = 10000.0;
55 }
56 else if( value == -999 ) {
57 m_channel = -999;
58 m_value = -999.0;
59 }
60 else {
63 }
64
65 return;
66}
static double TofTime(unsigned int timeChannel)
Definition: RawDataUtil.h:63
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: