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

Top level header for Simulated Readout data. More...

#include <SimReadoutHeader.h>

Inheritance diagram for DayaBay::SimReadoutHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::SimReadoutHeader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< DayaBay::SimReadout * > 
SimReadoutContainer
 The collection type.
typedef std::vector< IHeader * > Vector
typedef std::vector< const
IHeader * > 
ConstVector

Public Member Functions

virtual const std::string & defLoc () const
 SimReadoutHeader ()
 Default Constructor.
 ~SimReadoutHeader ()
 Destructor.
virtual const CLID & clID () const
std::ostream & fillStream (std::ostream &s) const
 Print the trig command.
const SimReadoutContainerreadouts () const
 Retrieve const Collection of simulated readouts.
SimReadoutContainerreadouts ()
 Retrieve Collection of simulated readouts.
void setReadouts (const SimReadoutContainer &value)
 Update Collection of simulated readouts.
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

SimReadoutContainer m_readouts
 Collection of simulated readouts.

Detailed Description

Top level header for Simulated Readout data.

Author:
dandwyer@caltech.edu created Thu Dec 5 18:02:33 2013

Definition at line 51 of file SimReadoutHeader.h.


Member Typedef Documentation

The collection type.

Definition at line 60 of file SimReadoutHeader.h.


Constructor & Destructor Documentation

DayaBay::SimReadoutHeader::SimReadoutHeader ( ) [inline]

Default Constructor.

Definition at line 63 of file SimReadoutHeader.h.

: m_readouts() {}
DayaBay::SimReadoutHeader::~SimReadoutHeader ( ) [inline]

Destructor.

Definition at line 143 of file SimReadoutHeader.h.

{

          SimReadoutContainer::iterator it, done = m_readouts.end();
          for (it = m_readouts.begin(); it != done; ++it) {
            delete *it;
          }
          m_readouts.clear();
        
}

Member Function Documentation

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

Give access to default location from class scope.

Reimplemented from DayaBay::HeaderObject.

Definition at line 56 of file SimReadoutHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file SimReadoutHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 154 of file SimReadoutHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file SimReadoutHeader.h.

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

Print the trig command.

Reimplemented from DayaBay::HeaderObject.

Definition at line 3 of file SimReadoutHeader.cc.

{
    HeaderObject::fillStream(s);

    size_t siz = m_readouts.size();
    s << "{ " 
      << siz << " readouts : " << std::endl;
  
    DayaBay::SimReadoutHeader::SimReadoutContainer::const_iterator it, done 
        = m_readouts.end();
    for (it=m_readouts.begin(); it != done; ++it) {
        (*it)->fillStream(s);
        s <<std::endl;
    }
    s << "}";
    return s;
}
const DayaBay::SimReadoutHeader::SimReadoutContainer & DayaBay::SimReadoutHeader::readouts ( ) const [inline]

Retrieve const Collection of simulated readouts.

Definition at line 164 of file SimReadoutHeader.h.

{
  return m_readouts;
}
DayaBay::SimReadoutHeader::SimReadoutContainer & DayaBay::SimReadoutHeader::readouts ( ) [inline]

Retrieve Collection of simulated readouts.

Definition at line 169 of file SimReadoutHeader.h.

{
  return m_readouts;
}
void DayaBay::SimReadoutHeader::setReadouts ( const SimReadoutContainer value) [inline]

Update Collection of simulated readouts.

Definition at line 174 of file SimReadoutHeader.h.

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

operator new

Reimplemented from DayaBay::HeaderObject.

Definition at line 90 of file SimReadoutHeader.h.

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

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 106 of file SimReadoutHeader.h.

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

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

Member Data Documentation

Collection of simulated readouts.

Definition at line 124 of file SimReadoutHeader.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:04:50 for SimReadoutEvent by doxygen 1.7.4