#include <RawDataEvent.h>
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 |
Definition at line 61 of file RawDataEvent.h.
RawDataEvent::PmtChannel::PmtChannel | ( | ) | [inline] |
bool RawDataEvent::PmtChannel::filled | ( | ) | [inline] |
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 }
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.