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

In This Package:

DayaBay::DaqBlockHeader Class Reference

Encapsulates DAQ data block. More...

#include <DaqBlockHeader.h>

Inheritance diagram for DayaBay::DaqBlockHeader:

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

Public Types

typedef std::vector< IHeader * > Vector
typedef std::vector< const
IHeader * > 
ConstVector

Public Member Functions

virtual const std::string & defLoc () const
 DaqBlockHeader ()
 Default Constructor.
 ~DaqBlockHeader ()
 destructor
virtual const CLIDclID () const
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const DayaBay::DaqBlockdaqBlock () const
 Retrieve const Block of DAQ data.
void setDaqBlock (DayaBay::DaqBlock *value)
 Update Block of DAQ data.
unsigned int deltaEvents () const
 Retrieve const The number of events in the ROOT file between this block and its predecesor.
void setDeltaEvents (unsigned int value)
 Update The number of events in the ROOT file between this block and its predecesor.
virtual const std::string & defLoc ()
void setInputHeaders (const std::vector< const DayaBay::IHeader * > &iheaders)
void addInputHeader (const DayaBay::IHeader *iheader)
const TimeStamptimeStamp () const
void setTimeStamp (const TimeStamp &ts)
const std::vector< const DayaBay::IHeader * > findHeaders (const CLID &clid) const
const Contextcontext () const
void setContext (const Context &value)
int execNumber () const
void setExecNumber (int value)
const std::vector< unsigned
long > & 
randomState () const
void setRandomState (const std::vector< unsigned long > &value)
const std::vector< const DayaBay::IHeader * > & inputHeaders () const
const DayaBay::JobIdjobId () const
void setJobId (const DayaBay::JobId &value)
virtual void setOutputAddress (const GenericAddress *roa)
virtual void setInputAddress (const GenericAddress *ria)
virtual const TimeStampearliest () const
void setEarliest (const TimeStamp &value)
virtual const TimeStamplatest () const
void setLatest (const TimeStamp &value)
virtual const GenericAddressoutputAddress () const
virtual const GenericAddressinputAddress () const
void setRegistry (IRegistry *pRegistry)
IRegistryregistry () const
LinkManagerlinkMgr () const
unsigned char version () const
void setVersion (unsigned char vsn)
unsigned long refCount () const
virtual unsigned long addRef ()
virtual unsigned long release ()
const std::string & name () const
virtual StreamBufferserialize (StreamBuffer &s)
virtual StreamBufferserialize (StreamBuffer &s) const

Static Public Member Functions

static const std::string & defaultLocation ()
 Give access to default location from class scope.
static const CLIDclassID ()
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::DaqBlockm_daqBlock
 Block of DAQ data.
unsigned int m_deltaEvents
 The number of events in the ROOT file between this block and its predecesor.

Friends

friend friend std::ostream & operator<< (std::ostream &s, const DataObject &obj)

Detailed Description

Encapsulates DAQ data block.

Author:
sjpatton@lbl.gov created Mon Apr 11 03:43:22 2011

Definition at line 50 of file DaqBlockHeader.h.


Constructor & Destructor Documentation

DayaBay::DaqBlockHeader::DaqBlockHeader (  )  [inline]

Default Constructor.

Definition at line 59 of file DaqBlockHeader.h.

00059                      : m_daqBlock(0),
00060                        m_deltaEvents(0) {}

DayaBay::DaqBlockHeader::~DaqBlockHeader (  )  [inline]

destructor

Definition at line 145 of file DaqBlockHeader.h.

00146 {
00147 
00148           delete m_daqBlock;
00149         
00150 }


Member Function Documentation

static const std::string& DayaBay::DaqBlockHeader::defaultLocation (  )  [inline, static]

Give access to default location from class scope.

Reimplemented from DayaBay::HeaderObject.

Definition at line 55 of file DaqBlockHeader.h.

virtual const std::string& DayaBay::DaqBlockHeader::defLoc (  )  const [inline, virtual]

Reimplemented from DayaBay::HeaderObject.

Definition at line 56 of file DaqBlockHeader.h.

const CLID & DayaBay::DaqBlockHeader::clID (  )  const [inline, virtual]

Reimplemented from DayaBay::HeaderObject.

Definition at line 152 of file DaqBlockHeader.h.

00153 {
00154   return DayaBay::DaqBlockHeader::classID();
00155 }

const CLID & DayaBay::DaqBlockHeader::classID (  )  [inline, static]

Reimplemented from DayaBay::HeaderObject.

Definition at line 157 of file DaqBlockHeader.h.

00158 {
00159   return CLID_DaqBlockHeader;
00160 }

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

Fill the ASCII output stream.

Reimplemented from DayaBay::HeaderObject.

Definition at line 162 of file DaqBlockHeader.h.

00163 {
00164   HeaderObject::fillStream(s);
00165   s << "{ " << "daqBlock :      " << m_daqBlock << std::endl
00166             << "deltaEvents :   " << m_deltaEvents << std::endl << " }";
00167   return s;
00168 }

const DayaBay::DaqBlock * DayaBay::DaqBlockHeader::daqBlock (  )  const [inline]

Retrieve const Block of DAQ data.

Definition at line 171 of file DaqBlockHeader.h.

00172 {
00173   return m_daqBlock;
00174 }

void DayaBay::DaqBlockHeader::setDaqBlock ( DayaBay::DaqBlock value  )  [inline]

Update Block of DAQ data.

Definition at line 176 of file DaqBlockHeader.h.

00177 {
00178   m_daqBlock = value;
00179 }

unsigned int DayaBay::DaqBlockHeader::deltaEvents (  )  const [inline]

Retrieve const The number of events in the ROOT file between this block and its predecesor.

Definition at line 181 of file DaqBlockHeader.h.

00182 {
00183   return m_deltaEvents;
00184 }

void DayaBay::DaqBlockHeader::setDeltaEvents ( unsigned int  value  )  [inline]

Update The number of events in the ROOT file between this block and its predecesor.

Definition at line 186 of file DaqBlockHeader.h.

00187 {
00188   m_deltaEvents = value;
00189 }

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

operator new

Reimplemented from DayaBay::HeaderObject.

Definition at line 91 of file DaqBlockHeader.h.

00092     {
00093       return ( sizeof(DaqBlockHeader) == size ? 
00094                boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::malloc() :
00095                ::operator new(size) );
00096     }

static void* DayaBay::DaqBlockHeader::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::HeaderObject.

Definition at line 101 of file DaqBlockHeader.h.

00102     {
00103       return ::operator new (size,pObj);
00104     }

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 107 of file DaqBlockHeader.h.

00108     {
00109       boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::is_from(p) ?
00110       boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::free(p) :
00111       ::operator delete(p);
00112     }

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

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 116 of file DaqBlockHeader.h.

00117     {
00118       ::operator delete (p, pObj);
00119     }


Member Data Documentation

DayaBay::DaqBlock* DayaBay::DaqBlockHeader::m_daqBlock [private]

Block of DAQ data.

Definition at line 125 of file DaqBlockHeader.h.

unsigned int DayaBay::DaqBlockHeader::m_deltaEvents [private]

The number of events in the ROOT file between this block and its predecesor.

Definition at line 126 of file DaqBlockHeader.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:23:59 2011 for DaqBlock by doxygen 1.4.7