#include <ElecFeeChannel.h>
Public Member Functions | |
ElecFeeChannel () | |
Default Constructor. | |
virtual | ~ElecFeeChannel () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const DayaBay::DigitalSignal & | hit () const |
Retrieve const Discriminator signal. | |
void | setHit (const DayaBay::DigitalSignal &value) |
Update Discriminator signal. | |
const DayaBay::DigitalSignal & | adcHigh () const |
Retrieve const High-Gain ADC signal. | |
void | setAdcHigh (const DayaBay::DigitalSignal &value) |
Update High-Gain ADC signal. | |
const DayaBay::DigitalSignal & | adcLow () const |
Retrieve const Low-Gain ADC signal. | |
void | setAdcLow (const DayaBay::DigitalSignal &value) |
Update Low-Gain ADC signal. | |
const DayaBay::AnalogSignal & | energy () const |
Retrieve const Channel contribution to analog esum. | |
DayaBay::AnalogSignal & | energy () |
Retrieve Channel contribution to analog esum. | |
void | setEnergy (const DayaBay::AnalogSignal &value) |
Update Channel contribution to analog esum. | |
const std::vector< int > & | tdc () const |
Retrieve const Vector of TDC values [in clock cycles]. | |
void | setTdc (const std::vector< int > &value) |
Update Vector of TDC values [in clock cycles]. | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
DayaBay::DigitalSignal | m_hit |
Discriminator signal. | |
DayaBay::DigitalSignal | m_adcHigh |
High-Gain ADC signal. | |
DayaBay::DigitalSignal | m_adcLow |
Low-Gain ADC signal. | |
DayaBay::AnalogSignal | m_energy |
Channel contribution to analog esum. | |
std::vector< int > | m_tdc |
Vector of TDC values [in clock cycles]. |
Definition at line 42 of file ElecFeeChannel.h.
DayaBay::ElecFeeChannel::ElecFeeChannel | ( | ) | [inline] |
virtual DayaBay::ElecFeeChannel::~ElecFeeChannel | ( | ) | [inline, virtual] |
std::ostream & DayaBay::ElecFeeChannel::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Definition at line 161 of file ElecFeeChannel.h.
00162 { 00163 s << "{ " << "hit : " << m_hit << std::endl 00164 << "adcHigh : " << m_adcHigh << std::endl 00165 << "adcLow : " << m_adcLow << std::endl 00166 << "energy : " << m_energy << std::endl 00167 << "tdc : " << m_tdc << std::endl << " }"; 00168 return s; 00169 }
const DayaBay::DigitalSignal & DayaBay::ElecFeeChannel::hit | ( | ) | const [inline] |
Retrieve const Discriminator signal.
Definition at line 172 of file ElecFeeChannel.h.
00173 { 00174 return m_hit; 00175 }
void DayaBay::ElecFeeChannel::setHit | ( | const DayaBay::DigitalSignal & | value | ) | [inline] |
Update Discriminator signal.
Definition at line 177 of file ElecFeeChannel.h.
00178 { 00179 m_hit = value; 00180 }
const DayaBay::DigitalSignal & DayaBay::ElecFeeChannel::adcHigh | ( | ) | const [inline] |
Retrieve const High-Gain ADC signal.
Definition at line 182 of file ElecFeeChannel.h.
00183 { 00184 return m_adcHigh; 00185 }
void DayaBay::ElecFeeChannel::setAdcHigh | ( | const DayaBay::DigitalSignal & | value | ) | [inline] |
Update High-Gain ADC signal.
Definition at line 187 of file ElecFeeChannel.h.
00188 { 00189 m_adcHigh = value; 00190 }
const DayaBay::DigitalSignal & DayaBay::ElecFeeChannel::adcLow | ( | ) | const [inline] |
Retrieve const Low-Gain ADC signal.
Definition at line 192 of file ElecFeeChannel.h.
00193 { 00194 return m_adcLow; 00195 }
void DayaBay::ElecFeeChannel::setAdcLow | ( | const DayaBay::DigitalSignal & | value | ) | [inline] |
Update Low-Gain ADC signal.
Definition at line 197 of file ElecFeeChannel.h.
00198 { 00199 m_adcLow = value; 00200 }
const DayaBay::AnalogSignal & DayaBay::ElecFeeChannel::energy | ( | ) | const [inline] |
Retrieve const Channel contribution to analog esum.
Definition at line 202 of file ElecFeeChannel.h.
00203 { 00204 return m_energy; 00205 }
DayaBay::AnalogSignal & DayaBay::ElecFeeChannel::energy | ( | ) | [inline] |
Retrieve Channel contribution to analog esum.
Definition at line 207 of file ElecFeeChannel.h.
00208 { 00209 return m_energy; 00210 }
void DayaBay::ElecFeeChannel::setEnergy | ( | const DayaBay::AnalogSignal & | value | ) | [inline] |
Update Channel contribution to analog esum.
Definition at line 212 of file ElecFeeChannel.h.
00213 { 00214 m_energy = value; 00215 }
const std::vector< int > & DayaBay::ElecFeeChannel::tdc | ( | ) | const [inline] |
Retrieve const Vector of TDC values [in clock cycles].
Definition at line 217 of file ElecFeeChannel.h.
00218 { 00219 return m_tdc; 00220 }
void DayaBay::ElecFeeChannel::setTdc | ( | const std::vector< int > & | value | ) | [inline] |
Update Vector of TDC values [in clock cycles].
Definition at line 222 of file ElecFeeChannel.h.
00223 { 00224 m_tdc = value; 00225 }
static void* DayaBay::ElecFeeChannel::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Definition at line 106 of file ElecFeeChannel.h.
00107 { 00108 return ( sizeof(ElecFeeChannel) == size ? 00109 boost::singleton_pool<ElecFeeChannel, sizeof(ElecFeeChannel)>::malloc() : 00110 ::operator new(size) ); 00111 }
static void* DayaBay::ElecFeeChannel::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Definition at line 116 of file ElecFeeChannel.h.
static void DayaBay::ElecFeeChannel::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Definition at line 122 of file ElecFeeChannel.h.
00123 { 00124 boost::singleton_pool<ElecFeeChannel, sizeof(ElecFeeChannel)>::is_from(p) ? 00125 boost::singleton_pool<ElecFeeChannel, sizeof(ElecFeeChannel)>::free(p) : 00126 ::operator delete(p); 00127 }
static void DayaBay::ElecFeeChannel::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Definition at line 131 of file ElecFeeChannel.h.
00132 { 00133 ::operator delete (p, pObj); 00134 }
std::vector<int> DayaBay::ElecFeeChannel::m_tdc [private] |