/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::ElecHeader Class Reference

Top level header for all detector Electronics data. More...

#include <ElecHeader.h>

Inheritance diagram for DayaBay::ElecHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::ElecHeader:
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
 ElecHeader ()
 Default Constructor.
 ~ElecHeader ()
 destructor
virtual const CLID & clID () const
std::ostream & fillStream (std::ostream &s) const
 Serialize to an ostream.
const DayaBay::ElecPulseHeaderpulseHeader () const
 Retrieve const Pointer to a Pulse Header object.
void setPulseHeader (DayaBay::ElecPulseHeader *value)
 Update Pointer to a Pulse Header object.
const DayaBay::ElecCrateHeadercrateHeader () const
 Retrieve const Pointer to a Crate Header object.
void setCrateHeader (DayaBay::ElecCrateHeader *value)
 Update Pointer to a Crate Header object.
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::ElecPulseHeaderm_pulseHeader
 Pointer to a Pulse Header object.
DayaBay::ElecCrateHeaderm_crateHeader
 Pointer to a Crate Header object.

Detailed Description

Top level header for all detector Electronics data.

Author:
bseilhan@iit.gov created Thu Dec 5 18:07:48 2013

Definition at line 51 of file ElecHeader.h.


Constructor & Destructor Documentation

DayaBay::ElecHeader::ElecHeader ( ) [inline]

Default Constructor.

Definition at line 60 of file ElecHeader.h.

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

destructor

Definition at line 147 of file ElecHeader.h.

{

           delete m_pulseHeader;
           delete m_crateHeader;
         
}

Member Function Documentation

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

Give access to default location from class scope.

Reimplemented from DayaBay::HeaderObject.

Definition at line 56 of file ElecHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file ElecHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 155 of file ElecHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 160 of file ElecHeader.h.

{
  return CLID_ElecHeader;
}
std::ostream & DayaBay::ElecHeader::fillStream ( std::ostream &  s) const [virtual]

Serialize to an ostream.

Reimplemented from DayaBay::HeaderObject.

Definition at line 5 of file ElecHeader.cc.

{
    HeaderObject::fillStream(s);
    s << std::endl << "{ ";

    s << "pulseHeader : ";
    if (m_pulseHeader) m_pulseHeader->fillStream(s);
    else s << "NULL";
    s << std::endl;

    s << "crateHeader : ";
    if (m_crateHeader) m_crateHeader->fillStream(s);
    else s << "NULL";
    s << std::endl;

    s << " }";
    return s;
}
const DayaBay::ElecPulseHeader * DayaBay::ElecHeader::pulseHeader ( ) const [inline]

Retrieve const Pointer to a Pulse Header object.

Definition at line 165 of file ElecHeader.h.

{
  return m_pulseHeader;
}
void DayaBay::ElecHeader::setPulseHeader ( DayaBay::ElecPulseHeader value) [inline]

Update Pointer to a Pulse Header object.

Definition at line 170 of file ElecHeader.h.

{
  m_pulseHeader = value;
}
const DayaBay::ElecCrateHeader * DayaBay::ElecHeader::crateHeader ( ) const [inline]

Retrieve const Pointer to a Crate Header object.

Definition at line 175 of file ElecHeader.h.

{
  return m_crateHeader;
}
void DayaBay::ElecHeader::setCrateHeader ( DayaBay::ElecCrateHeader value) [inline]

Update Pointer to a Crate Header object.

Definition at line 180 of file ElecHeader.h.

{
  m_crateHeader = value;
}
static void* DayaBay::ElecHeader::operator new ( size_t  size) [inline, static]

operator new

Reimplemented from DayaBay::HeaderObject.

Definition at line 92 of file ElecHeader.h.

    {
      return ( sizeof(ElecHeader) == size ? 
               boost::singleton_pool<ElecHeader, sizeof(ElecHeader)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ElecHeader::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 102 of file ElecHeader.h.

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 108 of file ElecHeader.h.

    {
      boost::singleton_pool<ElecHeader, sizeof(ElecHeader)>::is_from(p) ?
      boost::singleton_pool<ElecHeader, sizeof(ElecHeader)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::ElecHeader::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 117 of file ElecHeader.h.

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

Member Data Documentation

Pointer to a Pulse Header object.

Definition at line 126 of file ElecHeader.h.

Pointer to a Crate Header object.

Definition at line 127 of file ElecHeader.h.


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

Generated on Fri May 16 2014 10:05:49 for ElecEvent by doxygen 1.7.4