/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::DaqBlockHeader Class Reference

Encapsulates DAQ data block. More...

#include <DaqBlockHeader.h>

Inheritance diagram for DayaBay::DaqBlockHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::DaqBlockHeader:
Collaboration graph
[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 CLID & clID () 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 clearInputHeaders ()
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 std::vector< const
DayaBay::IHeader * > 
findHeaders (const std::string &name) 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 GenericAddress * outputAddress () const
virtual const GenericAddress * inputAddress () const

Static Public Member Functions

static const std::string & defaultLocation ()
 Give access to default location from class scope.
static const CLID & classID ()
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.

Detailed Description

Encapsulates DAQ data block.

Author:
sjpatton@lbl.gov created Thu Dec 5 17:50:46 2013

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.

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

destructor

Definition at line 145 of file DaqBlockHeader.h.

{

          delete m_daqBlock;
        
}

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.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 157 of file DaqBlockHeader.h.

{
  return CLID_DaqBlockHeader;
}
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.

{
  HeaderObject::fillStream(s);
  s << "{ " << "daqBlock :      " << m_daqBlock << std::endl
            << "deltaEvents :   " << m_deltaEvents << std::endl << " }";
  return s;
}
const DayaBay::DaqBlock * DayaBay::DaqBlockHeader::daqBlock ( ) const [inline]

Retrieve const Block of DAQ data.

Definition at line 171 of file DaqBlockHeader.h.

{
  return m_daqBlock;
}
void DayaBay::DaqBlockHeader::setDaqBlock ( DayaBay::DaqBlock value) [inline]

Update Block of DAQ data.

Definition at line 176 of file DaqBlockHeader.h.

{
  m_daqBlock = value;
}
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.

{
  return m_deltaEvents;
}
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.

{
  m_deltaEvents = value;
}
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.

    {
      return ( sizeof(DaqBlockHeader) == size ? 
               boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::malloc() :
               ::operator new(size) );
    }
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.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::DaqBlockHeader::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 107 of file DaqBlockHeader.h.

    {
      boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::is_from(p) ?
      boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

Block of DAQ data.

Definition at line 125 of file DaqBlockHeader.h.

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 Fri May 16 2014 10:00:54 for DaqBlock by doxygen 1.7.4