#include <TofData.h>
Public Member Functions | |
double | adc () |
double | adc () |
int | adcChannel () |
int | adcChannel () |
void | calculate (bool barrel, int tofid, bool east) |
void | calculate (bool barrel, int tofid, bool east) |
void | clear () |
void | clear () |
unsigned int | iden () const |
unsigned int | iden () const |
PmtData & | operator= (const PmtData &source) |
PmtData & | operator= (const PmtData &source) |
PmtData () | |
PmtData () | |
int | qclock () |
int | qclock () |
int | qnumber () |
int | qnumber () |
double | qtc () |
double | qtc () |
int | qtimes () |
int | qtimes () |
void | qtimesmm () |
void | qtimesmm () |
void | qtimespp () |
void | qtimespp () |
unsigned int | quality () const |
unsigned int | quality () const |
bool | qused () |
bool | qused () |
void | setAdc (Adc *adc) |
void | setAdc (Adc *adc) |
void | setIdentify (unsigned int iden) |
void | setIdentify (unsigned int iden) |
void | setTdc (Tdc *tdc) |
void | setTdc (Tdc *tdc) |
void | setUsed () |
void | setUsed () |
int | tclock () |
int | tclock () |
double | tdc () |
double | tdc () |
int | tdcChannel () |
int | tdcChannel () |
unsigned int | times () const |
unsigned int | times () const |
void | timesmm () |
void | timesmm () |
void | timespp () |
void | timespp () |
int | tnumber () |
int | tnumber () |
int | ttimes () |
int | ttimes () |
void | ttimesmm () |
void | ttimesmm () |
void | ttimespp () |
void | ttimespp () |
bool | tused () |
bool | tused () |
bool | used () |
bool | used () |
~PmtData () | |
~PmtData () | |
Private Attributes | |
Adc * | m_adc |
Adc * | m_adc |
unsigned int | m_iden_value |
unsigned int | m_quality |
Tdc * | m_tdc |
Tdc * | m_tdc |
unsigned int | m_times |
|
00149 { 00150 m_iden_value = 0; 00151 m_times = 0; 00152 m_quality = 0; 00153 m_adc = 0; 00154 m_tdc = 0; 00155 }
|
|
00158 { 00159 PmtData::clear(); 00160 }
|
|
|
|
|
|
|
|
00204 { 00205 double value = -999.0; 00206 if( m_adc ) { 00207 value = m_adc->value(); 00208 } 00209 else { 00210 if( m_tdc ) { 00211 value = 10000.0; 00212 } 00213 } 00214 return value; 00215 }
|
|
|
|
00173 { 00174 int channel = -999; 00175 if( m_adc ) { 00176 channel = m_adc->channel(); 00177 } 00178 return channel; 00179 }
|
|
|
|
00182 { 00183 if( m_adc ) { 00184 m_adc->calculate( barrel, tofid, east ); 00185 } 00186 return; 00187 }
|
|
|
|
00395 { 00396 if( m_adc ) { 00397 if( m_adc->times() <= 1 ) { 00398 delete m_adc; 00399 m_adc = 0; 00400 } 00401 else { 00402 m_adc->timesmm(); 00403 } 00404 } 00405 if( m_tdc ) { 00406 if( m_tdc->times() <= 1 ) { 00407 delete m_tdc; 00408 m_tdc = 0; 00409 } 00410 else { 00411 m_tdc->timesmm(); 00412 } 00413 } 00414 return; 00415 }
|
|
00076 { return m_iden_value; }
|
|
00076 { return m_iden_value; }
|
|
|
|
00163 { 00164 m_iden_value = source.m_iden_value; 00165 m_times = source.m_times; 00166 m_quality = source.m_quality; 00167 m_adc = source.m_adc; 00168 m_tdc = source.m_tdc; 00169 return *this; 00170 }
|
|
|
|
00218 { 00219 int clock = -999; 00220 if( m_adc ) { 00221 clock = m_adc->clock(); 00222 } 00223 return clock; 00224 }
|
|
|
|
00316 { 00317 int number = 0; 00318 if( m_adc ) { 00319 number = m_adc->number(); 00320 } 00321 return number; 00322 }
|
|
|
|
00190 { 00191 double value = -999.0; 00192 if( m_adc ) { 00193 value = m_adc->qtc(); 00194 } 00195 else { 00196 if( m_tdc ) { 00197 value = 10000.0; 00198 } 00199 } 00200 return value; 00201 }
|
|
|
|
00298 { 00299 int times = -1; 00300 if( m_adc ) { 00301 times = m_adc->times(); 00302 } 00303 return times; 00304 }
|
|
|
|
|
|
|
|
|
|
00086 { return m_quality; }
|
|
00086 { return m_quality; }
|
|
|
|
00334 { 00335 bool used = false; 00336 if( m_adc ) { 00337 used = m_adc->used(); 00338 } 00339 return used; 00340 }
|
|
|
|
00364 { 00365 m_adc = adc; 00366 if( adc->channel() != -999 ) { 00367 if( m_adc->times() == -1 ) { m_adc->timespp(); } 00368 m_quality = ( m_quality | 0x2 ); 00369 } 00370 return; 00371 }
|
|
00104 { m_iden_value = iden; }
|
|
00104 { m_iden_value = iden; }
|
|
|
|
00374 { 00375 m_tdc = tdc; 00376 if( tdc->channel() != -999 ) { 00377 if( m_tdc->times() == -1 ) { m_tdc->timespp(); } 00378 m_quality = ( m_quality | 0x1 ); 00379 } 00380 return; 00381 }
|
|
|
|
00384 { 00385 if( m_adc ) { 00386 m_adc->setUsed( true ); 00387 } 00388 if( m_tdc ) { 00389 m_tdc->setUsed( true ); 00390 } 00391 return; 00392 }
|
|
|
|
00245 { 00246 int clock = -999; 00247 if( m_tdc ) { 00248 clock = m_tdc->clock(); 00249 } 00250 return clock; 00251 }
|
|
|
|
00236 { 00237 double value = -999.; 00238 if( m_tdc ) { 00239 value = m_tdc->value(); 00240 } 00241 return value; 00242 }
|
|
|
|
00227 { 00228 int channel = -999; 00229 if( m_tdc ) { 00230 channel = m_tdc->channel(); 00231 } 00232 return channel; 00233 }
|
|
00077 { return m_times; }
|
|
00077 { return m_times; }
|
|
|
|
|
|
|
|
|
|
|
|
00325 { 00326 int number = 0; 00327 if( m_tdc ) { 00328 number = m_tdc->number(); 00329 } 00330 return number; 00331 }
|
|
|
|
00307 { 00308 int times = -1; 00309 if( m_tdc ) { 00310 times = m_tdc->times(); 00311 } 00312 return times; 00313 }
|
|
|
|
|
|
|
|
|
|
|
|
00343 { 00344 bool used = false; 00345 if( m_tdc ) { 00346 used = m_tdc->used(); 00347 } 00348 return used; 00349 }
|
|
|
|
00352 { 00353 bool used = false; 00354 if( m_adc ) { 00355 used = ( used || m_adc->used() ); 00356 } 00357 if( m_tdc ) { 00358 used = ( used || m_tdc->used() ); 00359 } 00360 return used; 00361 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|