#include <CalibReadout.h>
Inheritance diagram for DayaBay::CalibReadout:
Public Member Functions | |
CalibReadout (const DayaBay::Detector &detector, unsigned int triggerNumber, const TimeStamp &triggerTime, const DayaBay::Trigger::TriggerType_t &triggerType) | |
standard constructor | |
CalibReadout () | |
Default Constructor. | |
CalibReadout (const CalibReadout &rh) | |
Copy Constructor. | |
CalibReadout & | operator= (const CalibReadout &rh) |
Assignment operator. | |
virtual | ~CalibReadout () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const DayaBay::Detector & | detector () const |
Retrieve const The detector associated with this readout. | |
void | setDetector (const DayaBay::Detector &value) |
Update The detector associated with this readout. | |
unsigned int | triggerNumber () const |
Retrieve const The count of the trigger command from this detector. | |
void | setTriggerNumber (unsigned int value) |
Update The count of the trigger command from this detector. | |
const TimeStamp & | triggerTime () const |
Retrieve const The absolute time of the trigger command. | |
void | setTriggerTime (const TimeStamp &value) |
Update The absolute time of the trigger command. | |
const DayaBay::Trigger::TriggerType_t & | triggerType () const |
Retrieve const The type of trigger conditions which produced this readout. | |
void | setTriggerType (const DayaBay::Trigger::TriggerType_t &value) |
Update The type of trigger conditions which produced this readout. | |
const DayaBay::CalibReadoutHeader * | header () const |
Retrieve const The calib readout header associated with this readout. | |
void | setHeader (DayaBay::CalibReadoutHeader *value) |
Update The calib readout header associated with this readout. | |
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::Detector | m_detector |
The detector associated with this readout. | |
unsigned int | m_triggerNumber |
The count of the trigger command from this detector. | |
TimeStamp | m_triggerTime |
The absolute time of the trigger command. | |
DayaBay::Trigger::TriggerType_t | m_triggerType |
The type of trigger conditions which produced this readout. | |
DayaBay::CalibReadoutHeader * | m_header |
The calib readout header associated with this readout. |
Definition at line 43 of file CalibReadout.h.
DayaBay::CalibReadout::CalibReadout | ( | const DayaBay::Detector & | detector, | |
unsigned int | triggerNumber, | |||
const TimeStamp & | triggerTime, | |||
const DayaBay::Trigger::TriggerType_t & | triggerType | |||
) | [inline] |
standard constructor
Definition at line 48 of file CalibReadout.h.
00051 : m_detector(detector), 00052 m_triggerNumber(triggerNumber), 00053 m_triggerTime(triggerTime), 00054 m_triggerType(triggerType) {}
DayaBay::CalibReadout::CalibReadout | ( | ) | [inline] |
Default Constructor.
Definition at line 57 of file CalibReadout.h.
00057 : m_detector(0), 00058 m_triggerNumber(0), 00059 m_triggerTime(0), 00060 m_triggerType(), 00061 m_header(0) {}
DayaBay::CalibReadout::CalibReadout | ( | const CalibReadout & | rh | ) | [inline] |
Copy Constructor.
Definition at line 175 of file CalibReadout.h.
00175 : 00176 m_detector( rh.m_detector ), 00177 m_triggerNumber( rh.m_triggerNumber ), 00178 m_triggerTime( rh.m_triggerTime ), 00179 m_triggerType( rh.m_triggerType ), 00180 m_header( rh.m_header ) 00181 {}
virtual DayaBay::CalibReadout::~CalibReadout | ( | ) | [inline, virtual] |
DayaBay::CalibReadout & DayaBay::CalibReadout::operator= | ( | const CalibReadout & | rh | ) | [inline] |
Assignment operator.
Definition at line 183 of file CalibReadout.h.
00183 { 00184 if ( this != &rh ) { 00185 m_detector = rh.m_detector; 00186 m_triggerNumber = rh.m_triggerNumber; 00187 m_triggerTime = rh.m_triggerTime; 00188 m_triggerType = rh.m_triggerType; 00189 m_header = rh.m_header; 00190 } 00191 return *this; 00192 }
std::ostream & DayaBay::CalibReadout::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented in DayaBay::CalibReadoutPmtCrate, and DayaBay::CalibReadoutRpcCrate.
Definition at line 194 of file CalibReadout.h.
00195 { 00196 s << "{ " << "detector : " << m_detector << std::endl 00197 << "triggerNumber : " << m_triggerNumber << std::endl 00198 << "triggerTime : " << m_triggerTime << std::endl 00199 << "triggerType : " << m_triggerType << std::endl 00200 << "header : " << m_header << std::endl << " }"; 00201 return s; 00202 }
const DayaBay::Detector & DayaBay::CalibReadout::detector | ( | ) | const [inline] |
Retrieve const The detector associated with this readout.
Definition at line 205 of file CalibReadout.h.
00206 { 00207 return m_detector; 00208 }
void DayaBay::CalibReadout::setDetector | ( | const DayaBay::Detector & | value | ) | [inline] |
Update The detector associated with this readout.
Definition at line 210 of file CalibReadout.h.
00211 { 00212 m_detector = value; 00213 }
unsigned int DayaBay::CalibReadout::triggerNumber | ( | ) | const [inline] |
Retrieve const The count of the trigger command from this detector.
Definition at line 215 of file CalibReadout.h.
00216 { 00217 return m_triggerNumber; 00218 }
void DayaBay::CalibReadout::setTriggerNumber | ( | unsigned int | value | ) | [inline] |
Update The count of the trigger command from this detector.
Definition at line 220 of file CalibReadout.h.
00221 { 00222 m_triggerNumber = value; 00223 }
const TimeStamp & DayaBay::CalibReadout::triggerTime | ( | ) | const [inline] |
Retrieve const The absolute time of the trigger command.
Definition at line 225 of file CalibReadout.h.
00226 { 00227 return m_triggerTime; 00228 }
void DayaBay::CalibReadout::setTriggerTime | ( | const TimeStamp & | value | ) | [inline] |
Update The absolute time of the trigger command.
Definition at line 230 of file CalibReadout.h.
00231 { 00232 m_triggerTime = value; 00233 }
const DayaBay::Trigger::TriggerType_t & DayaBay::CalibReadout::triggerType | ( | ) | const [inline] |
Retrieve const The type of trigger conditions which produced this readout.
Definition at line 235 of file CalibReadout.h.
00236 { 00237 return m_triggerType; 00238 }
void DayaBay::CalibReadout::setTriggerType | ( | const DayaBay::Trigger::TriggerType_t & | value | ) | [inline] |
Update The type of trigger conditions which produced this readout.
Definition at line 240 of file CalibReadout.h.
00241 { 00242 m_triggerType = value; 00243 }
const DayaBay::CalibReadoutHeader * DayaBay::CalibReadout::header | ( | ) | const [inline] |
Retrieve const The calib readout header associated with this readout.
Definition at line 245 of file CalibReadout.h.
00246 { 00247 return m_header; 00248 }
void DayaBay::CalibReadout::setHeader | ( | DayaBay::CalibReadoutHeader * | value | ) | [inline] |
Update The calib readout header associated with this readout.
Definition at line 250 of file CalibReadout.h.
00251 { 00252 m_header = value; 00253 }
static void* DayaBay::CalibReadout::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented in DayaBay::CalibReadoutPmtCrate, and DayaBay::CalibReadoutRpcCrate.
Definition at line 118 of file CalibReadout.h.
00119 { 00120 return ( sizeof(CalibReadout) == size ? 00121 boost::singleton_pool<CalibReadout, sizeof(CalibReadout)>::malloc() : 00122 ::operator new(size) ); 00123 }
static void* DayaBay::CalibReadout::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
Reimplemented in DayaBay::CalibReadoutPmtCrate, and DayaBay::CalibReadoutRpcCrate.
Definition at line 128 of file CalibReadout.h.
static void DayaBay::CalibReadout::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented in DayaBay::CalibReadoutPmtCrate, and DayaBay::CalibReadoutRpcCrate.
Definition at line 134 of file CalibReadout.h.
00135 { 00136 boost::singleton_pool<CalibReadout, sizeof(CalibReadout)>::is_from(p) ? 00137 boost::singleton_pool<CalibReadout, sizeof(CalibReadout)>::free(p) : 00138 ::operator delete(p); 00139 }
static void DayaBay::CalibReadout::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented in DayaBay::CalibReadoutPmtCrate, and DayaBay::CalibReadoutRpcCrate.
Definition at line 143 of file CalibReadout.h.
00144 { 00145 ::operator delete (p, pObj); 00146 }
unsigned int DayaBay::CalibReadout::m_triggerNumber [private] |
The type of trigger conditions which produced this readout.
Definition at line 155 of file CalibReadout.h.
The calib readout header associated with this readout.
Definition at line 156 of file CalibReadout.h.