#include <TofData.h>
◆ Adc() [1/2]
Definition at line 68 of file TofData.cxx.
68 {
69 m_corr = false;
70 m_elec = false;
71 m_calculated = false;
72 m_qtc = -999.0;
73}
◆ Adc() [2/2]
◆ calculate() [1/2]
void Adc::calculate |
( |
bool |
barrel, |
|
|
int |
tofid, |
|
|
bool |
east, |
|
|
int |
identify |
|
) |
| |
Definition at line 122 of file TofData.cxx.
122 {
123
126
127
128
129 if( m_calculated ) return;
130
131 if( m_corr ) {
132 if( barrel ) {
133 if( east ) {
135 }
136 else {
138 }
139 }
140 else {
141 if(is_mrpc==false)
143 else
145
146 }
147 }
148 else {
150
151 }
152
153 if( m_elec ) {
154 if( barrel ) {
155 if( east ) {
157 }
158 else {
160 }
161 }
162 else {
163 if(is_mrpc==false)
165 else
166 {
168 }
169
170
171
172 }
173 }
174 else {
176
177 }
178 m_calculated = true;
179 return;
180}
ITofQElecSvc * tofQElecSvc
ITofQCorrSvc * tofQCorrSvc
virtual const double BQRaw1(int id, double q)=0
virtual const double EQRaw(int id, double q)=0
virtual const double BQRaw2(int id, double q)=0
virtual const double BQTC2(int id, double q)=0
virtual const double BQTC1(int id, double q)=0
virtual const double EQTC(int id, double q)=0
static double TofTime(unsigned int timeChannel)
static Identifier cell_id(int barrel_ec, int layer, int phi_module, int end)
For a single crystal.
static bool is_mymrpc(const Identifier &id)
Referenced by PmtData::calculate().
◆ calculate() [2/2]
void Adc::calculate |
( |
bool |
barrel, |
|
|
int |
tofid, |
|
|
bool |
east, |
|
|
int |
identify |
|
) |
| |
◆ qtc() [1/2]
double Adc::qtc |
( |
| ) |
const |
|
inline |
◆ qtc() [2/2]
double Adc::qtc |
( |
| ) |
const |
|
inline |
◆ setCorr() [1/2]
◆ setCorr() [2/2]
◆ setElec() [1/2]
◆ setElec() [2/2]
◆ setValue() [1/2]
void Adc::setValue |
( |
int |
value | ) |
|
|
virtual |
Implements TofValue.
Definition at line 85 of file TofData.cxx.
85 {
87 if(
value == 0x7fffffff ) {
90 m_qtc = 10000.0;
92 m_calculated = true;
93 }
94 else if(
value == -999 ) {
96 m_qtc = -999.0;
98 m_calculated = true;
99 }
100 else {
101 if( m_corr ) {
105 }
106 }
107 else {
109
110
111 if( (
value & 0x80000 ) != 0 ) {
113
114 }
115 }
116 }
117
118 return;
119}
Referenced by TofRawDataProvider::tofDataMapFull().
◆ setValue() [2/2]
void Adc::setValue |
( |
int |
value | ) |
|
|
virtual |
◆ setValue_mrpc() [1/2]
void Adc::setValue_mrpc |
( |
int |
value, |
|
|
int |
clock |
|
) |
| |
◆ setValue_mrpc() [2/2]
void Adc::setValue_mrpc |
( |
int |
value, |
|
|
int |
clock |
|
) |
| |
The documentation for this class was generated from the following files: