#include <RawLtbFrameUTC.h>
Inheritance diagram for DayaBay::RawLtbFrameUTC:
Public Member Functions | |
RawLtbFrameUTC () | |
Default Constructor. | |
virtual | ~RawLtbFrameUTC () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
int | day () const |
Retrieve const the number of day from Jan 1 of current year in binary code. | |
void | setDay (int value) |
Update the number of day from Jan 1 of current year in binary code. | |
int | hour () const |
Retrieve const the hour of current day in BCD code. | |
void | setHour (int value) |
Update the hour of current day in BCD code. | |
int | minute () const |
Retrieve const the minute of current hour in BCD code. | |
void | setMinute (int value) |
Update the minute of current hour in BCD code. | |
int | second () const |
Retrieve const the second of current minute in BCD code. | |
void | setSecond (int value) |
Update the second of current minute in BCD code. | |
bool | accStat () const |
Retrieve const Accumulation status. | |
void | setAccStat (bool value) |
Update Accumulation status. | |
bool | gpsValid () const |
Retrieve const GPS valid. | |
void | setGPSValid (bool value) |
Update GPS valid. | |
bool | timestampType () const |
Retrieve const Timestamp type 1: UTC, 0: UNIX. | |
void | setTimestampType (bool value) |
Update Timestamp type 1: UTC, 0: UNIX. | |
bool | clockSystemValid () const |
Retrieve const Clock system valid. | |
void | setClockSystemValid (bool value) |
Update Clock system valid. | |
int | iltSn () const |
Retrieve const Raw trigger sequence number. | |
void | setIltSn (int value) |
Update Raw trigger sequence number. | |
int | rot () const |
Retrieve const Read Out Type. | |
void | setRot (int value) |
Update Read Out Type. | |
int | triggerSrc () const |
Retrieve const status of 16 trigger sources. | |
void | setTriggerSrc (int value) |
Update status of 16 trigger sources. | |
int | nanoSecondLow () const |
Retrieve const NanoSecond low 4bit. | |
void | setNanoSecondLow (int value) |
Update NanoSecond low 4bit. | |
int | nanoSecondHigh () const |
Retrieve const NanoSecond high 28bit. | |
void | setNanoSecondHigh (int value) |
Update NanoSecond high 28bit. | |
int | accumulationLow () const |
Retrieve const Accumulation low 4bit. | |
void | setAccumulationLow (int value) |
Update Accumulation low 4bit. | |
int | accumulationHigh () const |
Retrieve const Accumulation high 28bit. | |
void | setAccumulationHigh (int value) |
Update Accumulation high 28bit. | |
int | hsum () const |
Retrieve const Sum of hits. | |
void | setHsum (int value) |
Update Sum of hits. | |
int | esumComp () const |
Retrieve const esumComp. | |
void | setEsumComp (int value) |
Update esumComp. | |
int | esumADC () const |
Retrieve const esumADC. | |
void | setEsumADC (int value) |
Update esumADC. | |
int | blockedValidTrigger () const |
Retrieve const the number of local trigger which is blocked by buffer full between two packeged local trigger. | |
void | setBlockedValidTrigger (int value) |
Update the number of local trigger which is blocked by buffer full between two packeged local trigger. | |
int | crossTriggerSrc () const |
Retrieve const crossTriggerSrc. | |
void | setCrossTriggerSrc (int value) |
Update crossTriggerSrc. | |
bool | feeBufferStat () const |
Retrieve const FEE buffer status. | |
void | setFeeBufferStat (bool value) |
Update FEE buffer status. | |
bool | ltbBufferStat () const |
Retrieve const LTB buffer status. | |
void | setLtbBufferStat (bool value) |
Update LTB buffer status. | |
const TimeStamp & | timestamp () const |
Retrieve const Timestamp. | |
void | setTimestamp (const TimeStamp &value) |
Update Timestamp. | |
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 | |
int | m_day |
the number of day from Jan 1 of current year in binary code | |
int | m_hour |
the hour of current day in BCD code | |
int | m_minute |
the minute of current hour in BCD code | |
int | m_second |
the second of current minute in BCD code |
Definition at line 40 of file RawLtbFrameUTC.h.
DayaBay::RawLtbFrameUTC::RawLtbFrameUTC | ( | ) | [inline] |
virtual DayaBay::RawLtbFrameUTC::~RawLtbFrameUTC | ( | ) | [inline, virtual] |
std::ostream & DayaBay::RawLtbFrameUTC::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::RawLtbFrame.
Definition at line 145 of file RawLtbFrameUTC.h.
00146 { 00147 RawLtbFrame::fillStream(s); 00148 s << "{ " << "day : " << m_day << std::endl 00149 << "hour : " << m_hour << std::endl 00150 << "minute : " << m_minute << std::endl 00151 << "second : " << m_second << std::endl << " }"; 00152 return s; 00153 }
int DayaBay::RawLtbFrameUTC::day | ( | ) | const [inline] |
Retrieve const the number of day from Jan 1 of current year in binary code.
Definition at line 156 of file RawLtbFrameUTC.h.
00157 { 00158 return m_day; 00159 }
void DayaBay::RawLtbFrameUTC::setDay | ( | int | value | ) | [inline] |
Update the number of day from Jan 1 of current year in binary code.
Definition at line 161 of file RawLtbFrameUTC.h.
00162 { 00163 m_day = value; 00164 }
int DayaBay::RawLtbFrameUTC::hour | ( | ) | const [inline] |
Retrieve const the hour of current day in BCD code.
Definition at line 166 of file RawLtbFrameUTC.h.
00167 { 00168 return m_hour; 00169 }
void DayaBay::RawLtbFrameUTC::setHour | ( | int | value | ) | [inline] |
Update the hour of current day in BCD code.
Definition at line 171 of file RawLtbFrameUTC.h.
00172 { 00173 m_hour = value; 00174 }
int DayaBay::RawLtbFrameUTC::minute | ( | ) | const [inline] |
Retrieve const the minute of current hour in BCD code.
Definition at line 176 of file RawLtbFrameUTC.h.
00177 { 00178 return m_minute; 00179 }
void DayaBay::RawLtbFrameUTC::setMinute | ( | int | value | ) | [inline] |
Update the minute of current hour in BCD code.
Definition at line 181 of file RawLtbFrameUTC.h.
00182 { 00183 m_minute = value; 00184 }
int DayaBay::RawLtbFrameUTC::second | ( | ) | const [inline] |
Retrieve const the second of current minute in BCD code.
Definition at line 186 of file RawLtbFrameUTC.h.
00187 { 00188 return m_second; 00189 }
void DayaBay::RawLtbFrameUTC::setSecond | ( | int | value | ) | [inline] |
Update the second of current minute in BCD code.
Definition at line 191 of file RawLtbFrameUTC.h.
00192 { 00193 m_second = value; 00194 }
static void* DayaBay::RawLtbFrameUTC::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::RawLtbFrame.
Definition at line 91 of file RawLtbFrameUTC.h.
00092 { 00093 return ( sizeof(RawLtbFrameUTC) == size ? 00094 boost::singleton_pool<RawLtbFrameUTC, sizeof(RawLtbFrameUTC)>::malloc() : 00095 ::operator new(size) ); 00096 }
static void* DayaBay::RawLtbFrameUTC::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 from DayaBay::RawLtbFrame.
Definition at line 101 of file RawLtbFrameUTC.h.
static void DayaBay::RawLtbFrameUTC::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::RawLtbFrame.
Definition at line 107 of file RawLtbFrameUTC.h.
00108 { 00109 boost::singleton_pool<RawLtbFrameUTC, sizeof(RawLtbFrameUTC)>::is_from(p) ? 00110 boost::singleton_pool<RawLtbFrameUTC, sizeof(RawLtbFrameUTC)>::free(p) : 00111 ::operator delete(p); 00112 }
static void DayaBay::RawLtbFrameUTC::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::RawLtbFrame.
Definition at line 116 of file RawLtbFrameUTC.h.
00117 { 00118 ::operator delete (p, pObj); 00119 }
bool DayaBay::RawLtbFrame::accStat | ( | ) | const [inline, inherited] |
Retrieve const Accumulation status.
Definition at line 325 of file RawLtbFrame.h.
00326 { 00327 return m_accStat; 00328 }
void DayaBay::RawLtbFrame::setAccStat | ( | bool | value | ) | [inline, inherited] |
Update Accumulation status.
Definition at line 330 of file RawLtbFrame.h.
00331 { 00332 m_accStat = value; 00333 }
bool DayaBay::RawLtbFrame::gpsValid | ( | ) | const [inline, inherited] |
Retrieve const GPS valid.
Definition at line 335 of file RawLtbFrame.h.
00336 { 00337 return m_GPSValid; 00338 }
void DayaBay::RawLtbFrame::setGPSValid | ( | bool | value | ) | [inline, inherited] |
Update GPS valid.
Definition at line 340 of file RawLtbFrame.h.
00341 { 00342 m_GPSValid = value; 00343 }
bool DayaBay::RawLtbFrame::timestampType | ( | ) | const [inline, inherited] |
Retrieve const Timestamp type 1: UTC, 0: UNIX.
Definition at line 345 of file RawLtbFrame.h.
00346 { 00347 return m_timestampType; 00348 }
void DayaBay::RawLtbFrame::setTimestampType | ( | bool | value | ) | [inline, inherited] |
Update Timestamp type 1: UTC, 0: UNIX.
Definition at line 350 of file RawLtbFrame.h.
00351 { 00352 m_timestampType = value; 00353 }
bool DayaBay::RawLtbFrame::clockSystemValid | ( | ) | const [inline, inherited] |
Retrieve const Clock system valid.
Definition at line 355 of file RawLtbFrame.h.
00356 { 00357 return m_clockSystemValid; 00358 }
void DayaBay::RawLtbFrame::setClockSystemValid | ( | bool | value | ) | [inline, inherited] |
Update Clock system valid.
Definition at line 360 of file RawLtbFrame.h.
00361 { 00362 m_clockSystemValid = value; 00363 }
int DayaBay::RawLtbFrame::iltSn | ( | ) | const [inline, inherited] |
Retrieve const Raw trigger sequence number.
Definition at line 365 of file RawLtbFrame.h.
00366 { 00367 return m_iltSn; 00368 }
void DayaBay::RawLtbFrame::setIltSn | ( | int | value | ) | [inline, inherited] |
Update Raw trigger sequence number.
Definition at line 370 of file RawLtbFrame.h.
00371 { 00372 m_iltSn = value; 00373 }
int DayaBay::RawLtbFrame::rot | ( | ) | const [inline, inherited] |
Retrieve const Read Out Type.
Definition at line 375 of file RawLtbFrame.h.
00376 { 00377 return m_rot; 00378 }
void DayaBay::RawLtbFrame::setRot | ( | int | value | ) | [inline, inherited] |
Update Read Out Type.
Definition at line 380 of file RawLtbFrame.h.
00381 { 00382 m_rot = value; 00383 }
int DayaBay::RawLtbFrame::triggerSrc | ( | ) | const [inline, inherited] |
Retrieve const status of 16 trigger sources.
Definition at line 385 of file RawLtbFrame.h.
00386 { 00387 return m_triggerSrc; 00388 }
void DayaBay::RawLtbFrame::setTriggerSrc | ( | int | value | ) | [inline, inherited] |
Update status of 16 trigger sources.
Definition at line 390 of file RawLtbFrame.h.
00391 { 00392 m_triggerSrc = value; 00393 }
int DayaBay::RawLtbFrame::nanoSecondLow | ( | ) | const [inline, inherited] |
Retrieve const NanoSecond low 4bit.
Definition at line 395 of file RawLtbFrame.h.
00396 { 00397 return m_nanoSecondLow; 00398 }
void DayaBay::RawLtbFrame::setNanoSecondLow | ( | int | value | ) | [inline, inherited] |
Update NanoSecond low 4bit.
Definition at line 400 of file RawLtbFrame.h.
00401 { 00402 m_nanoSecondLow = value; 00403 }
int DayaBay::RawLtbFrame::nanoSecondHigh | ( | ) | const [inline, inherited] |
Retrieve const NanoSecond high 28bit.
Definition at line 405 of file RawLtbFrame.h.
00406 { 00407 return m_nanoSecondHigh; 00408 }
void DayaBay::RawLtbFrame::setNanoSecondHigh | ( | int | value | ) | [inline, inherited] |
Update NanoSecond high 28bit.
Definition at line 410 of file RawLtbFrame.h.
00411 { 00412 m_nanoSecondHigh = value; 00413 }
int DayaBay::RawLtbFrame::accumulationLow | ( | ) | const [inline, inherited] |
Retrieve const Accumulation low 4bit.
Definition at line 415 of file RawLtbFrame.h.
00416 { 00417 return m_accumulationLow; 00418 }
void DayaBay::RawLtbFrame::setAccumulationLow | ( | int | value | ) | [inline, inherited] |
Update Accumulation low 4bit.
Definition at line 420 of file RawLtbFrame.h.
00421 { 00422 m_accumulationLow = value; 00423 }
int DayaBay::RawLtbFrame::accumulationHigh | ( | ) | const [inline, inherited] |
Retrieve const Accumulation high 28bit.
Definition at line 425 of file RawLtbFrame.h.
00426 { 00427 return m_accumulationHigh; 00428 }
void DayaBay::RawLtbFrame::setAccumulationHigh | ( | int | value | ) | [inline, inherited] |
Update Accumulation high 28bit.
Definition at line 430 of file RawLtbFrame.h.
00431 { 00432 m_accumulationHigh = value; 00433 }
int DayaBay::RawLtbFrame::hsum | ( | ) | const [inline, inherited] |
Retrieve const Sum of hits.
Definition at line 435 of file RawLtbFrame.h.
00436 { 00437 return m_hsum; 00438 }
void DayaBay::RawLtbFrame::setHsum | ( | int | value | ) | [inline, inherited] |
Update Sum of hits.
Definition at line 440 of file RawLtbFrame.h.
00441 { 00442 m_hsum = value; 00443 }
int DayaBay::RawLtbFrame::esumComp | ( | ) | const [inline, inherited] |
Retrieve const esumComp.
Definition at line 445 of file RawLtbFrame.h.
00446 { 00447 return m_esumComp; 00448 }
void DayaBay::RawLtbFrame::setEsumComp | ( | int | value | ) | [inline, inherited] |
Update esumComp.
Definition at line 450 of file RawLtbFrame.h.
00451 { 00452 m_esumComp = value; 00453 }
int DayaBay::RawLtbFrame::esumADC | ( | ) | const [inline, inherited] |
Retrieve const esumADC.
Definition at line 455 of file RawLtbFrame.h.
00456 { 00457 return m_esumADC; 00458 }
void DayaBay::RawLtbFrame::setEsumADC | ( | int | value | ) | [inline, inherited] |
Update esumADC.
Definition at line 460 of file RawLtbFrame.h.
00461 { 00462 m_esumADC = value; 00463 }
int DayaBay::RawLtbFrame::blockedValidTrigger | ( | ) | const [inline, inherited] |
Retrieve const the number of local trigger which is blocked by buffer full between two packeged local trigger.
Definition at line 465 of file RawLtbFrame.h.
00466 { 00467 return m_blockedValidTrigger; 00468 }
void DayaBay::RawLtbFrame::setBlockedValidTrigger | ( | int | value | ) | [inline, inherited] |
Update the number of local trigger which is blocked by buffer full between two packeged local trigger.
Definition at line 470 of file RawLtbFrame.h.
00471 { 00472 m_blockedValidTrigger = value; 00473 }
int DayaBay::RawLtbFrame::crossTriggerSrc | ( | ) | const [inline, inherited] |
Retrieve const crossTriggerSrc.
Definition at line 475 of file RawLtbFrame.h.
00476 { 00477 return m_crossTriggerSrc; 00478 }
void DayaBay::RawLtbFrame::setCrossTriggerSrc | ( | int | value | ) | [inline, inherited] |
Update crossTriggerSrc.
Definition at line 480 of file RawLtbFrame.h.
00481 { 00482 m_crossTriggerSrc = value; 00483 }
bool DayaBay::RawLtbFrame::feeBufferStat | ( | ) | const [inline, inherited] |
Retrieve const FEE buffer status.
Definition at line 485 of file RawLtbFrame.h.
00486 { 00487 return m_feeBufferStat; 00488 }
void DayaBay::RawLtbFrame::setFeeBufferStat | ( | bool | value | ) | [inline, inherited] |
Update FEE buffer status.
Definition at line 490 of file RawLtbFrame.h.
00491 { 00492 m_feeBufferStat = value; 00493 }
bool DayaBay::RawLtbFrame::ltbBufferStat | ( | ) | const [inline, inherited] |
Retrieve const LTB buffer status.
Definition at line 495 of file RawLtbFrame.h.
00496 { 00497 return m_ltbBufferStat; 00498 }
void DayaBay::RawLtbFrame::setLtbBufferStat | ( | bool | value | ) | [inline, inherited] |
Update LTB buffer status.
Definition at line 500 of file RawLtbFrame.h.
00501 { 00502 m_ltbBufferStat = value; 00503 }
const TimeStamp & DayaBay::RawLtbFrame::timestamp | ( | ) | const [inline, inherited] |
Retrieve const Timestamp.
Definition at line 505 of file RawLtbFrame.h.
00506 { 00507 return m_timestamp; 00508 }
void DayaBay::RawLtbFrame::setTimestamp | ( | const TimeStamp & | value | ) | [inline, inherited] |
Update Timestamp.
Definition at line 510 of file RawLtbFrame.h.
00511 { 00512 m_timestamp = value; 00513 }
int DayaBay::RawLtbFrameUTC::m_day [private] |
the number of day from Jan 1 of current year in binary code
Definition at line 125 of file RawLtbFrameUTC.h.
int DayaBay::RawLtbFrameUTC::m_hour [private] |
int DayaBay::RawLtbFrameUTC::m_minute [private] |
int DayaBay::RawLtbFrameUTC::m_second [private] |