| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::RawLtbFrame Class Reference

Ltb frame. More...

#include <RawLtbFrame.h>

Inheritance diagram for DayaBay::RawLtbFrame:

[legend]
Collaboration diagram for DayaBay::RawLtbFrame:
[legend]
List of all members.

Public Member Functions

 RawLtbFrame ()
 Default Constructor.
virtual ~RawLtbFrame ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
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 TimeStamptimestamp () 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

bool m_accStat
 Accumulation status.
bool m_GPSValid
 GPS valid.
bool m_timestampType
 Timestamp type 1: UTC, 0: UNIX.
bool m_clockSystemValid
 Clock system valid.
int m_iltSn
 Raw trigger sequence number.
int m_rot
 Read Out Type.
int m_triggerSrc
 status of 16 trigger sources
int m_nanoSecondLow
 NanoSecond low 4bit.
int m_nanoSecondHigh
 NanoSecond high 28bit.
int m_accumulationLow
 Accumulation low 4bit.
int m_accumulationHigh
 Accumulation high 28bit.
int m_hsum
 Sum of hits.
int m_esumComp
 esumComp
int m_esumADC
 esumADC
int m_blockedValidTrigger
 the number of local trigger which is blocked by buffer full between two packeged local trigger
int m_crossTriggerSrc
 crossTriggerSrc
bool m_feeBufferStat
 FEE buffer status.
bool m_ltbBufferStat
 LTB buffer status.
TimeStamp m_timestamp
 Timestamp.

Detailed Description

Ltb frame.

Author:
He Miao created Mon Apr 11 03:32:12 2011

Definition at line 39 of file RawLtbFrame.h.


Constructor & Destructor Documentation

DayaBay::RawLtbFrame::RawLtbFrame (  )  [inline]

Default Constructor.

Definition at line 44 of file RawLtbFrame.h.

00044                   : m_accStat(false),
00045                     m_GPSValid(false),
00046                     m_timestampType(false),
00047                     m_clockSystemValid(false),
00048                     m_iltSn(0),
00049                     m_rot(0),
00050                     m_triggerSrc(0),
00051                     m_nanoSecondLow(0),
00052                     m_nanoSecondHigh(0),
00053                     m_accumulationLow(0),
00054                     m_accumulationHigh(0),
00055                     m_hsum(0),
00056                     m_esumComp(0),
00057                     m_esumADC(0),
00058                     m_blockedValidTrigger(0),
00059                     m_crossTriggerSrc(0),
00060                     m_feeBufferStat(false),
00061                     m_ltbBufferStat(false),
00062                     m_timestamp(0) {}

virtual DayaBay::RawLtbFrame::~RawLtbFrame (  )  [inline, virtual]

Default Destructor.

Definition at line 65 of file RawLtbFrame.h.

00065 {}


Member Function Documentation

std::ostream & DayaBay::RawLtbFrame::fillStream ( std::ostream &  s  )  const [inline, virtual]

Fill the ASCII output stream.

Reimplemented in DayaBay::RawLtbFrameUnix, and DayaBay::RawLtbFrameUTC.

Definition at line 294 of file RawLtbFrame.h.

00295 {
00296   char l_accStat = (m_accStat) ? 'T' : 'F';
00297   char l_GPSValid = (m_GPSValid) ? 'T' : 'F';
00298   char l_timestampType = (m_timestampType) ? 'T' : 'F';
00299   char l_clockSystemValid = (m_clockSystemValid) ? 'T' : 'F';
00300   char l_feeBufferStat = (m_feeBufferStat) ? 'T' : 'F';
00301   char l_ltbBufferStat = (m_ltbBufferStat) ? 'T' : 'F';
00302   s << "{ " << "accStat :       " << l_accStat << std::endl
00303             << "GPSValid :      " << l_GPSValid << std::endl
00304             << "timestampType : " << l_timestampType << std::endl
00305             << "clockSystemValid :      " << l_clockSystemValid << std::endl
00306             << "iltSn : " << m_iltSn << std::endl
00307             << "rot :   " << m_rot << std::endl
00308             << "triggerSrc :    " << m_triggerSrc << std::endl
00309             << "nanoSecondLow : " << m_nanoSecondLow << std::endl
00310             << "nanoSecondHigh :        " << m_nanoSecondHigh << std::endl
00311             << "accumulationLow :       " << m_accumulationLow << std::endl
00312             << "accumulationHigh :      " << m_accumulationHigh << std::endl
00313             << "hsum :  " << m_hsum << std::endl
00314             << "esumComp :      " << m_esumComp << std::endl
00315             << "esumADC :       " << m_esumADC << std::endl
00316             << "blockedValidTrigger :   " << m_blockedValidTrigger << std::endl
00317             << "crossTriggerSrc :       " << m_crossTriggerSrc << std::endl
00318             << "feeBufferStat : " << l_feeBufferStat << std::endl
00319             << "ltbBufferStat : " << l_ltbBufferStat << std::endl
00320             << "timestamp :     " << m_timestamp << std::endl << " }";
00321   return s;
00322 }

bool DayaBay::RawLtbFrame::accStat (  )  const [inline]

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]

Update Accumulation status.

Definition at line 330 of file RawLtbFrame.h.

00331 {
00332   m_accStat = value;
00333 }

bool DayaBay::RawLtbFrame::gpsValid (  )  const [inline]

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]

Update GPS valid.

Definition at line 340 of file RawLtbFrame.h.

00341 {
00342   m_GPSValid = value;
00343 }

bool DayaBay::RawLtbFrame::timestampType (  )  const [inline]

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]

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]

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]

Update Clock system valid.

Definition at line 360 of file RawLtbFrame.h.

00361 {
00362   m_clockSystemValid = value;
00363 }

int DayaBay::RawLtbFrame::iltSn (  )  const [inline]

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]

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]

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]

Update Read Out Type.

Definition at line 380 of file RawLtbFrame.h.

00381 {
00382   m_rot = value;
00383 }

int DayaBay::RawLtbFrame::triggerSrc (  )  const [inline]

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]

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]

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]

Update NanoSecond low 4bit.

Definition at line 400 of file RawLtbFrame.h.

00401 {
00402   m_nanoSecondLow = value;
00403 }

int DayaBay::RawLtbFrame::nanoSecondHigh (  )  const [inline]

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]

Update NanoSecond high 28bit.

Definition at line 410 of file RawLtbFrame.h.

00411 {
00412   m_nanoSecondHigh = value;
00413 }

int DayaBay::RawLtbFrame::accumulationLow (  )  const [inline]

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]

Update Accumulation low 4bit.

Definition at line 420 of file RawLtbFrame.h.

00421 {
00422   m_accumulationLow = value;
00423 }

int DayaBay::RawLtbFrame::accumulationHigh (  )  const [inline]

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]

Update Accumulation high 28bit.

Definition at line 430 of file RawLtbFrame.h.

00431 {
00432   m_accumulationHigh = value;
00433 }

int DayaBay::RawLtbFrame::hsum (  )  const [inline]

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]

Update Sum of hits.

Definition at line 440 of file RawLtbFrame.h.

00441 {
00442   m_hsum = value;
00443 }

int DayaBay::RawLtbFrame::esumComp (  )  const [inline]

Retrieve const esumComp.

Definition at line 445 of file RawLtbFrame.h.

00446 {
00447   return m_esumComp;
00448 }

void DayaBay::RawLtbFrame::setEsumComp ( int  value  )  [inline]

Update esumComp.

Definition at line 450 of file RawLtbFrame.h.

00451 {
00452   m_esumComp = value;
00453 }

int DayaBay::RawLtbFrame::esumADC (  )  const [inline]

Retrieve const esumADC.

Definition at line 455 of file RawLtbFrame.h.

00456 {
00457   return m_esumADC;
00458 }

void DayaBay::RawLtbFrame::setEsumADC ( int  value  )  [inline]

Update esumADC.

Definition at line 460 of file RawLtbFrame.h.

00461 {
00462   m_esumADC = value;
00463 }

int DayaBay::RawLtbFrame::blockedValidTrigger (  )  const [inline]

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]

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]

Retrieve const crossTriggerSrc.

Definition at line 475 of file RawLtbFrame.h.

00476 {
00477   return m_crossTriggerSrc;
00478 }

void DayaBay::RawLtbFrame::setCrossTriggerSrc ( int  value  )  [inline]

Update crossTriggerSrc.

Definition at line 480 of file RawLtbFrame.h.

00481 {
00482   m_crossTriggerSrc = value;
00483 }

bool DayaBay::RawLtbFrame::feeBufferStat (  )  const [inline]

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]

Update FEE buffer status.

Definition at line 490 of file RawLtbFrame.h.

00491 {
00492   m_feeBufferStat = value;
00493 }

bool DayaBay::RawLtbFrame::ltbBufferStat (  )  const [inline]

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]

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]

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]

Update Timestamp.

Definition at line 510 of file RawLtbFrame.h.

00511 {
00512   m_timestamp = value;
00513 }

static void* DayaBay::RawLtbFrame::operator new ( size_t  size  )  [inline, static]

operator new

Reimplemented in DayaBay::RawLtbFrameUnix, and DayaBay::RawLtbFrameUTC.

Definition at line 225 of file RawLtbFrame.h.

00226     {
00227       return ( sizeof(RawLtbFrame) == size ? 
00228                boost::singleton_pool<RawLtbFrame, sizeof(RawLtbFrame)>::malloc() :
00229                ::operator new(size) );
00230     }

static void* DayaBay::RawLtbFrame::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::RawLtbFrameUnix, and DayaBay::RawLtbFrameUTC.

Definition at line 235 of file RawLtbFrame.h.

00236     {
00237       return ::operator new (size,pObj);
00238     }

static void DayaBay::RawLtbFrame::operator delete ( void *  p  )  [inline, static]

operator delete

Reimplemented in DayaBay::RawLtbFrameUnix, and DayaBay::RawLtbFrameUTC.

Definition at line 241 of file RawLtbFrame.h.

00242     {
00243       boost::singleton_pool<RawLtbFrame, sizeof(RawLtbFrame)>::is_from(p) ?
00244       boost::singleton_pool<RawLtbFrame, sizeof(RawLtbFrame)>::free(p) :
00245       ::operator delete(p);
00246     }

static void DayaBay::RawLtbFrame::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Reimplemented in DayaBay::RawLtbFrameUnix, and DayaBay::RawLtbFrameUTC.

Definition at line 250 of file RawLtbFrame.h.

00251     {
00252       ::operator delete (p, pObj);
00253     }


Member Data Documentation

bool DayaBay::RawLtbFrame::m_accStat [private]

Accumulation status.

Definition at line 259 of file RawLtbFrame.h.

bool DayaBay::RawLtbFrame::m_GPSValid [private]

GPS valid.

Definition at line 260 of file RawLtbFrame.h.

bool DayaBay::RawLtbFrame::m_timestampType [private]

Timestamp type 1: UTC, 0: UNIX.

Definition at line 261 of file RawLtbFrame.h.

bool DayaBay::RawLtbFrame::m_clockSystemValid [private]

Clock system valid.

Definition at line 262 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_iltSn [private]

Raw trigger sequence number.

Definition at line 263 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_rot [private]

Read Out Type.

Definition at line 264 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_triggerSrc [private]

status of 16 trigger sources

Definition at line 265 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_nanoSecondLow [private]

NanoSecond low 4bit.

Definition at line 266 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_nanoSecondHigh [private]

NanoSecond high 28bit.

Definition at line 267 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_accumulationLow [private]

Accumulation low 4bit.

Definition at line 268 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_accumulationHigh [private]

Accumulation high 28bit.

Definition at line 269 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_hsum [private]

Sum of hits.

Definition at line 270 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_esumComp [private]

esumComp

Definition at line 271 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_esumADC [private]

esumADC

Definition at line 272 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_blockedValidTrigger [private]

the number of local trigger which is blocked by buffer full between two packeged local trigger

Definition at line 273 of file RawLtbFrame.h.

int DayaBay::RawLtbFrame::m_crossTriggerSrc [private]

crossTriggerSrc

Definition at line 274 of file RawLtbFrame.h.

bool DayaBay::RawLtbFrame::m_feeBufferStat [private]

FEE buffer status.

Definition at line 275 of file RawLtbFrame.h.

bool DayaBay::RawLtbFrame::m_ltbBufferStat [private]

LTB buffer status.

Definition at line 276 of file RawLtbFrame.h.

TimeStamp DayaBay::RawLtbFrame::m_timestamp [private]

Timestamp.

Definition at line 277 of file RawLtbFrame.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:20:15 2011 for RawEvent by doxygen 1.4.7