#include <Readout.h>
Inheritance diagram for DayaBay::Readout:
Public Member Functions | |
Readout (const DayaBay::Detector &detector, unsigned int triggerNumber, const TimeStamp &triggerTime, const DayaBay::Trigger::TriggerType_t &triggerType) | |
standard constructor | |
Readout () | |
Default Constructor. | |
Readout (const Readout &rh) | |
Copy Constructor. | |
Readout & | operator= (const Readout &rh) |
Assignment operator. | |
virtual | ~Readout () |
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::RawEvent * | rawEvent () const |
Retrieve const The raw data block for this readout. | |
DayaBay::RawEvent * | rawEvent () |
Retrieve The raw data block for this readout. | |
void | setRawEvent (DayaBay::RawEvent *value) |
Update The raw data block for this readout. | |
const DybDaq::EventReadout * | eventReadout () const |
Retrieve const The raw data block for this readout. | |
void | setEventReadout (DybDaq::EventReadout *value) |
Update The raw data block for this readout. | |
const DayaBay::ReadoutHeader * | header () const |
Retrieve const The readout header associated with this readout. | |
void | setHeader (DayaBay::ReadoutHeader *value) |
Update The 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::RawEvent * | m_rawEvent |
The raw data block for this readout. | |
DybDaq::EventReadout * | m_eventReadout |
The raw data block for this readout. | |
DayaBay::ReadoutHeader * | m_header |
The readout header associated with this readout. |
Definition at line 45 of file Readout.h.
DayaBay::Readout::Readout | ( | const DayaBay::Detector & | detector, | |
unsigned int | triggerNumber, | |||
const TimeStamp & | triggerTime, | |||
const DayaBay::Trigger::TriggerType_t & | triggerType | |||
) | [inline] |
standard constructor
Definition at line 50 of file Readout.h.
00053 : m_detector(detector), 00054 m_triggerNumber(triggerNumber), 00055 m_triggerTime(triggerTime), 00056 m_triggerType(triggerType), 00057 m_rawEvent(0), 00058 m_header(0) {}
DayaBay::Readout::Readout | ( | ) | [inline] |
Default Constructor.
Definition at line 61 of file Readout.h.
00061 : m_detector(0), 00062 m_triggerNumber(0), 00063 m_triggerTime(0), 00064 m_triggerType(), 00065 m_rawEvent(0), 00066 m_eventReadout(0), 00067 m_header(0) {}
DayaBay::Readout::Readout | ( | const Readout & | rh | ) | [inline] |
Copy Constructor.
Definition at line 203 of file Readout.h.
00203 : 00204 m_detector( rh.m_detector ), 00205 m_triggerNumber( rh.m_triggerNumber ), 00206 m_triggerTime( rh.m_triggerTime ), 00207 m_triggerType( rh.m_triggerType ), 00208 m_rawEvent( rh.m_rawEvent ), 00209 m_eventReadout( rh.m_eventReadout ), 00210 m_header( rh.m_header ) 00211 {}
DayaBay::Readout::~Readout | ( | ) | [inline, virtual] |
destructor
Definition at line 226 of file Readout.h.
00227 { 00228 00229 delete m_rawEvent; 00230 m_rawEvent = 0; 00231 00232 }
DayaBay::Readout & DayaBay::Readout::operator= | ( | const Readout & | rh | ) | [inline] |
Assignment operator.
Definition at line 213 of file Readout.h.
00213 { 00214 if ( this != &rh ) { 00215 m_detector = rh.m_detector; 00216 m_triggerNumber = rh.m_triggerNumber; 00217 m_triggerTime = rh.m_triggerTime; 00218 m_triggerType = rh.m_triggerType; 00219 m_rawEvent = rh.m_rawEvent; 00220 m_eventReadout = rh.m_eventReadout; 00221 m_header = rh.m_header; 00222 } 00223 return *this; 00224 }
std::ostream & DayaBay::Readout::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented in DayaBay::ReadoutPmtCrate, and DayaBay::ReadoutRpcCrate.
Definition at line 234 of file Readout.h.
00235 { 00236 s << "{ " << "detector : " << m_detector << std::endl 00237 << "triggerNumber : " << m_triggerNumber << std::endl 00238 << "triggerTime : " << m_triggerTime << std::endl 00239 << "triggerType : " << m_triggerType << std::endl 00240 << "rawEvent : " << m_rawEvent << std::endl 00241 << "eventReadout : " << m_eventReadout << std::endl 00242 << "header : " << m_header << std::endl << " }"; 00243 return s; 00244 }
const DayaBay::Detector & DayaBay::Readout::detector | ( | ) | const [inline] |
Retrieve const The detector associated with this readout.
Definition at line 247 of file Readout.h.
00248 { 00249 return m_detector; 00250 }
void DayaBay::Readout::setDetector | ( | const DayaBay::Detector & | value | ) | [inline] |
Update The detector associated with this readout.
Definition at line 252 of file Readout.h.
00253 { 00254 m_detector = value; 00255 }
unsigned int DayaBay::Readout::triggerNumber | ( | ) | const [inline] |
Retrieve const The count of the trigger command from this detector.
Definition at line 257 of file Readout.h.
00258 { 00259 return m_triggerNumber; 00260 }
void DayaBay::Readout::setTriggerNumber | ( | unsigned int | value | ) | [inline] |
Update The count of the trigger command from this detector.
Definition at line 262 of file Readout.h.
00263 { 00264 m_triggerNumber = value; 00265 }
const TimeStamp & DayaBay::Readout::triggerTime | ( | ) | const [inline] |
Retrieve const The absolute time of the trigger command.
Definition at line 267 of file Readout.h.
00268 { 00269 return m_triggerTime; 00270 }
void DayaBay::Readout::setTriggerTime | ( | const TimeStamp & | value | ) | [inline] |
Update The absolute time of the trigger command.
Definition at line 272 of file Readout.h.
00273 { 00274 m_triggerTime = value; 00275 }
const DayaBay::Trigger::TriggerType_t & DayaBay::Readout::triggerType | ( | ) | const [inline] |
Retrieve const The type of trigger conditions which produced this readout.
Definition at line 277 of file Readout.h.
00278 { 00279 return m_triggerType; 00280 }
void DayaBay::Readout::setTriggerType | ( | const DayaBay::Trigger::TriggerType_t & | value | ) | [inline] |
Update The type of trigger conditions which produced this readout.
Definition at line 282 of file Readout.h.
00283 { 00284 m_triggerType = value; 00285 }
const DayaBay::RawEvent * DayaBay::Readout::rawEvent | ( | ) | const [inline] |
Retrieve const The raw data block for this readout.
Definition at line 287 of file Readout.h.
00288 { 00289 return m_rawEvent; 00290 }
DayaBay::RawEvent * DayaBay::Readout::rawEvent | ( | ) | [inline] |
Retrieve The raw data block for this readout.
Definition at line 292 of file Readout.h.
00293 { 00294 return m_rawEvent; 00295 }
void DayaBay::Readout::setRawEvent | ( | DayaBay::RawEvent * | value | ) | [inline] |
Update The raw data block for this readout.
Definition at line 297 of file Readout.h.
00298 { 00299 m_rawEvent = value; 00300 }
const DybDaq::EventReadout * DayaBay::Readout::eventReadout | ( | ) | const [inline] |
Retrieve const The raw data block for this readout.
Definition at line 302 of file Readout.h.
00303 { 00304 return m_eventReadout; 00305 }
void DayaBay::Readout::setEventReadout | ( | DybDaq::EventReadout * | value | ) | [inline] |
Update The raw data block for this readout.
Definition at line 307 of file Readout.h.
00308 { 00309 m_eventReadout = value; 00310 }
const DayaBay::ReadoutHeader * DayaBay::Readout::header | ( | ) | const [inline] |
void DayaBay::Readout::setHeader | ( | DayaBay::ReadoutHeader * | value | ) | [inline] |
static void* DayaBay::Readout::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented in DayaBay::ReadoutPmtCrate, and DayaBay::ReadoutRpcCrate.
Definition at line 144 of file Readout.h.
00145 { 00146 return ( sizeof(Readout) == size ? 00147 boost::singleton_pool<Readout, sizeof(Readout)>::malloc() : 00148 ::operator new(size) ); 00149 }
static void* DayaBay::Readout::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::ReadoutPmtCrate, and DayaBay::ReadoutRpcCrate.
Definition at line 154 of file Readout.h.
00155 { 00156 return ::operator new (size,pObj); 00157 }
static void DayaBay::Readout::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented in DayaBay::ReadoutPmtCrate, and DayaBay::ReadoutRpcCrate.
Definition at line 160 of file Readout.h.
00161 { 00162 boost::singleton_pool<Readout, sizeof(Readout)>::is_from(p) ? 00163 boost::singleton_pool<Readout, sizeof(Readout)>::free(p) : 00164 ::operator delete(p); 00165 }
static void DayaBay::Readout::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented in DayaBay::ReadoutPmtCrate, and DayaBay::ReadoutRpcCrate.
Definition at line 169 of file Readout.h.
00170 { 00171 ::operator delete (p, pObj); 00172 }
unsigned int DayaBay::Readout::m_triggerNumber [private] |
TimeStamp DayaBay::Readout::m_triggerTime [private] |
DayaBay::RawEvent* DayaBay::Readout::m_rawEvent [private] |
DayaBay::ReadoutHeader* DayaBay::Readout::m_header [private] |