Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PmtData Class Reference

#include <TofData.h>

List of all members.

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
PmtDataoperator= (const PmtData &source)
PmtDataoperator= (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

Adcm_adc
Adcm_adc
unsigned int m_iden_value
unsigned int m_quality
Tdcm_tdc
Tdcm_tdc
unsigned int m_times


Constructor & Destructor Documentation

PmtData::PmtData  ) 
 

00149                  {
00150   m_iden_value = 0;
00151   m_times      = 0;
00152   m_quality    = 0;
00153   m_adc        = 0;
00154   m_tdc        = 0;
00155 }

PmtData::~PmtData  ) 
 

00158                   {
00159   PmtData::clear();
00160 }

PmtData::PmtData  ) 
 

PmtData::~PmtData  ) 
 


Member Function Documentation

double PmtData::adc  ) 
 

double PmtData::adc  ) 
 

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 }

int PmtData::adcChannel  ) 
 

int PmtData::adcChannel  ) 
 

00173                         {
00174   int channel = -999;
00175   if( m_adc ) {
00176     channel = m_adc->channel();
00177   }
00178   return channel;
00179 }

void PmtData::calculate bool  barrel,
int  tofid,
bool  east
 

void PmtData::calculate bool  barrel,
int  tofid,
bool  east
 

00182                                                            {
00183   if( m_adc ) {
00184     m_adc->calculate( barrel, tofid, east );
00185   }
00186   return;
00187 }

void PmtData::clear  ) 
 

void PmtData::clear  ) 
 

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 }

unsigned int PmtData::iden  )  const [inline]
 

00076 { return  m_iden_value;        }

unsigned int PmtData::iden  )  const [inline]
 

00076 { return  m_iden_value;        }

PmtData& PmtData::operator= const PmtData source  ) 
 

PmtData & PmtData::operator= const PmtData source  ) 
 

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 }

int PmtData::qclock  ) 
 

int PmtData::qclock  ) 
 

00218                     {
00219   int clock = -999;
00220   if( m_adc ) {
00221     clock = m_adc->clock();
00222   }
00223   return clock;
00224 }

int PmtData::qnumber  ) 
 

int PmtData::qnumber  ) 
 

00316                      {
00317   int number = 0;
00318   if( m_adc ) {
00319     number = m_adc->number();
00320   }
00321   return number;
00322 }

double PmtData::qtc  ) 
 

double PmtData::qtc  ) 
 

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 }

int PmtData::qtimes  ) 
 

int PmtData::qtimes  ) 
 

00298                     {
00299   int times = -1;
00300   if( m_adc ) {
00301     times = m_adc->times();
00302   }
00303   return times;
00304 }

void PmtData::qtimesmm  ) 
 

void PmtData::qtimesmm  ) 
 

00274                        {
00275   if( m_adc ) {
00276     m_adc->timesmm();
00277   }
00278   return;
00279 }

void PmtData::qtimespp  ) 
 

void PmtData::qtimespp  ) 
 

00266                        {
00267   if( m_adc ) {
00268     m_adc->timespp();
00269   }
00270   return;
00271 }

unsigned int PmtData::quality  )  const [inline]
 

00086 { return  m_quality;           }

unsigned int PmtData::quality  )  const [inline]
 

00086 { return  m_quality;           }

bool PmtData::qused  ) 
 

bool PmtData::qused  ) 
 

00334                     {
00335   bool used = false;
00336   if( m_adc ) {
00337     used = m_adc->used();
00338   }
00339   return used;
00340 }

void PmtData::setAdc Adc adc  ) 
 

void PmtData::setAdc Adc adc  ) 
 

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 }

void PmtData::setIdentify unsigned int  iden  )  [inline]
 

00104 { m_iden_value = iden; }

void PmtData::setIdentify unsigned int  iden  )  [inline]
 

00104 { m_iden_value = iden; }

void PmtData::setTdc Tdc tdc  ) 
 

void PmtData::setTdc Tdc tdc  ) 
 

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 }

void PmtData::setUsed  ) 
 

void PmtData::setUsed  ) 
 

00384                       {
00385   if( m_adc ) {
00386     m_adc->setUsed( true );
00387   }
00388   if( m_tdc ) {
00389     m_tdc->setUsed( true );
00390   }
00391   return;
00392 }

int PmtData::tclock  ) 
 

int PmtData::tclock  ) 
 

00245                     {
00246   int clock = -999;
00247   if( m_tdc ) {
00248     clock = m_tdc->clock();
00249   }
00250   return clock;
00251 }

double PmtData::tdc  ) 
 

double PmtData::tdc  ) 
 

00236                     {
00237   double value = -999.;
00238   if( m_tdc ) {
00239     value = m_tdc->value();
00240   }
00241   return value;
00242 }

int PmtData::tdcChannel  ) 
 

int PmtData::tdcChannel  ) 
 

00227                         {
00228   int channel = -999;
00229   if( m_tdc ) {
00230     channel = m_tdc->channel();
00231   }
00232   return channel;
00233 }

unsigned int PmtData::times  )  const [inline]
 

00077 { return  m_times;             }

unsigned int PmtData::times  )  const [inline]
 

00077 { return  m_times;             }

void PmtData::timesmm  ) 
 

void PmtData::timesmm  ) 
 

00260                       {
00261   m_times = m_times - 1;
00262   return;
00263 }

void PmtData::timespp  ) 
 

void PmtData::timespp  ) 
 

00254                       {
00255   m_times = m_times + 1;
00256   return;
00257 }

int PmtData::tnumber  ) 
 

int PmtData::tnumber  ) 
 

00325                      {
00326   int number = 0;
00327   if( m_tdc ) {
00328     number = m_tdc->number();
00329   }
00330   return number;
00331 }

int PmtData::ttimes  ) 
 

int PmtData::ttimes  ) 
 

00307                     {
00308   int times = -1;
00309   if( m_tdc ) {
00310     times = m_tdc->times();
00311   }
00312   return times;
00313 }

void PmtData::ttimesmm  ) 
 

void PmtData::ttimesmm  ) 
 

00290                        {
00291   if( m_tdc ) {
00292     m_tdc->timesmm();
00293   }
00294   return;
00295 }

void PmtData::ttimespp  ) 
 

void PmtData::ttimespp  ) 
 

00282                        {
00283   if( m_tdc ) {
00284     m_tdc->timespp();
00285   }
00286   return;
00287 }

bool PmtData::tused  ) 
 

bool PmtData::tused  ) 
 

00343                     {
00344   bool used = false;
00345   if( m_tdc ) {
00346     used = m_tdc->used();
00347   }
00348   return used;
00349 }

bool PmtData::used  ) 
 

bool PmtData::used  ) 
 

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 }


Member Data Documentation

Adc* PmtData::m_adc [private]
 

Adc* PmtData::m_adc [private]
 

unsigned int PmtData::m_iden_value [private]
 

unsigned int PmtData::m_quality [private]
 

Tdc* PmtData::m_tdc [private]
 

Tdc* PmtData::m_tdc [private]
 

unsigned int PmtData::m_times [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:40:57 2011 for BOSS6.5.5 by  doxygen 1.3.9.1