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

In This Package:

DayaBay::Readout Class Reference

Generic Electronics Readout. More...

#include <Readout.h>

Inheritance diagram for DayaBay::Readout:

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

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.
Readoutoperator= (const Readout &rh)
 Assignment operator.
virtual ~Readout ()
 destructor
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const DayaBay::Detectordetector () 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 TimeStamptriggerTime () 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_ttriggerType () 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::RawEventrawEvent () const
 Retrieve const The raw data block for this readout.
DayaBay::RawEventrawEvent ()
 Retrieve The raw data block for this readout.
void setRawEvent (DayaBay::RawEvent *value)
 Update The raw data block for this readout.
const DybDaq::EventReadouteventReadout () 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::ReadoutHeaderheader () 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::RawEventm_rawEvent
 The raw data block for this readout.
DybDaq::EventReadoutm_eventReadout
 The raw data block for this readout.
DayaBay::ReadoutHeaderm_header
 The readout header associated with this readout.

Detailed Description

Generic Electronics Readout.

Author:
dandwyer@caltech.edu created Mon Apr 11 03:45:47 2011

Definition at line 45 of file Readout.h.


Constructor & Destructor Documentation

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.

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 }


Member Function Documentation

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]

Retrieve const The readout header associated with this readout.

Definition at line 312 of file Readout.h.

00313 {
00314   return m_header;
00315 }

void DayaBay::Readout::setHeader ( DayaBay::ReadoutHeader value  )  [inline]

Update The readout header associated with this readout.

Definition at line 317 of file Readout.h.

00318 {
00319   m_header = value;
00320 }

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     }


Member Data Documentation

DayaBay::Detector DayaBay::Readout::m_detector [private]

The detector associated with this readout.

Definition at line 178 of file Readout.h.

unsigned int DayaBay::Readout::m_triggerNumber [private]

The count of the trigger command from this detector.

Definition at line 179 of file Readout.h.

TimeStamp DayaBay::Readout::m_triggerTime [private]

The absolute time of the trigger command.

Definition at line 180 of file Readout.h.

DayaBay::Trigger::TriggerType_t DayaBay::Readout::m_triggerType [private]

The type of trigger conditions which produced this readout.

Definition at line 181 of file Readout.h.

DayaBay::RawEvent* DayaBay::Readout::m_rawEvent [private]

The raw data block for this readout.

Definition at line 182 of file Readout.h.

DybDaq::EventReadout* DayaBay::Readout::m_eventReadout [private]

The raw data block for this readout.

Definition at line 183 of file Readout.h.

DayaBay::ReadoutHeader* DayaBay::Readout::m_header [private]

The readout header associated with this readout.

Definition at line 184 of file Readout.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:24:50 2011 for ReadoutEvent by doxygen 1.4.7