| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RawDataEvent::PmtChannel Class Reference

sub-class of PMT channel More...

#include <RawDataEvent.h>

List of all members.


Public Member Functions

 PmtChannel ()
bool filled ()
DayaBay::FeeGain::FeeGain_t feeGain ()
void clear ()
void print ()

Public Attributes

int m_channel
std::vector< int > m_adc
std::vector< int > m_adcPeakingCycle
std::vector< int > m_adcRange
std::vector< int > m_tdc
std::vector< int > m_tdcHitCount
std::vector< int > m_pedestal

Detailed Description

sub-class of PMT channel

Definition at line 61 of file RawDataEvent.h.


Constructor & Destructor Documentation

RawDataEvent::PmtChannel::PmtChannel (  )  [inline]

Definition at line 73 of file RawDataEvent.h.

00073                      {
00074           m_channel = -1;
00075         }


Member Function Documentation

bool RawDataEvent::PmtChannel::filled (  )  [inline]

Definition at line 77 of file RawDataEvent.h.

00077                       {
00078           return m_channel != -1;
00079         }

DayaBay::FeeGain::FeeGain_t RawDataEvent::PmtChannel::feeGain (  )  [inline]

Definition at line 81 of file RawDataEvent.h.

00081 { return (DayaBay::FeeGain::FeeGain_t) (m_adc.size()==0 ? 0 : 1+m_adcRange[0]); }

void RawDataEvent::PmtChannel::clear (  )  [inline]

Definition at line 83 of file RawDataEvent.h.

00083                      {
00084           m_channel = -1;
00085           m_adc.clear();
00086           m_adcPeakingCycle.clear();
00087           m_adcRange.clear();
00088           m_tdc.clear();
00089           m_tdcHitCount.clear();
00090           m_pedestal.clear();
00091         }

void RawDataEvent::PmtChannel::print (  ) 

Definition at line 53 of file RawDataEvent.cc.

00054 {
00055   GaudiMsgStreams log("RawDataEvent");
00056   log.verbose() << std::endl
00057                 << DYBINDENT << "PmtChannel: id=" << m_channel;
00058   if (m_tdc.size() != m_adc.size()) {
00059     log.verbose() 
00060       << DYBINDENT 
00061       << "sizes of TDC and ADC not same: tdc.size=" << m_tdc.size() 
00062       << " adc.size=" << m_adc.size();
00063   } 
00064   else {
00065     log.verbose() << DYBINDENT << "(TDC(hit), ADC(cycle, range)):";
00066     for (unsigned int i = 0; i < m_tdc.size(); i++) {
00067       log.verbose() 
00068         << " (" << m_tdc[i] << "(" << m_tdcHitCount[i] << "), "
00069         << m_adc[i] << "(" << m_adcPeakingCycle[i] << ", " << m_adcRange[i] << "))";
00070     }
00071   }
00072   log.verbose() << endreq;
00073 }


Member Data Documentation

int RawDataEvent::PmtChannel::m_channel

Definition at line 65 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_adc

Definition at line 66 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_adcPeakingCycle

Definition at line 67 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_adcRange

Definition at line 68 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_tdc

Definition at line 69 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_tdcHitCount

Definition at line 70 of file RawDataEvent.h.

std::vector<int> RawDataEvent::PmtChannel::m_pedestal

Definition at line 71 of file RawDataEvent.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:27:04 2011 for RawDataIO by doxygen 1.4.7