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

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

#include <SimHeader.h>

Inheritance diagram for DayaBay::SimHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::SimHeader:
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
 SimHeader ()
 Default Constructor.
 ~SimHeader ()
 Destructor.
virtual const CLID & clID () const
std::ostream & fillStream (std::ostream &s) const
 Serialize to an ostream.
const DayaBay::SimHitHeaderhits () const
 Retrieve const Pointer to the SimHitHeader object.
void setHits (DayaBay::SimHitHeader *value)
 Update Pointer to the SimHitHeader object.
const DayaBay::SimParticleHistoryparticleHistory () const
 Retrieve const Pointer to the SimParticleHistory object.
void setParticleHistory (DayaBay::SimParticleHistory *value)
 Update Pointer to the SimParticleHistory object.
const
DayaBay::SimUnobservableStatisticsHeader
unobservableStatistics () const
 Retrieve const Pointer to the SimUnobservableStatisticsHeader object.
void setUnobservableStatistics (DayaBay::SimUnobservableStatisticsHeader *value)
 Update Pointer to the SimUnobservableStatisticsHeader 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::SimHitHeaderm_hits
 Pointer to the SimHitHeader object.
DayaBay::SimParticleHistorym_particleHistory
 Pointer to the SimParticleHistory object.
DayaBay::SimUnobservableStatisticsHeaderm_unobservableStatistics
 Pointer to the SimUnobservableStatisticsHeader object.

Detailed Description

Top level header for all detector simulation data.

Author:
bv@bnl.gov created Thu Dec 5 18:05:51 2013

Definition at line 52 of file SimHeader.h.


Constructor & Destructor Documentation

DayaBay::SimHeader::SimHeader ( ) [inline]

Default Constructor.

Definition at line 61 of file SimHeader.h.

DayaBay::SimHeader::~SimHeader ( )

Destructor.

Definition at line 7 of file SimHeader.cc.


Member Function Documentation

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

Give access to default location from class scope.

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file SimHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 58 of file SimHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file SimHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 164 of file SimHeader.h.

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

Serialize to an ostream.

Reimplemented from DayaBay::HeaderObject.

Definition at line 25 of file SimHeader.cc.

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

    s << "hits : ";
    if (m_hits) m_hits->fillStream(s);
    else s << "NULL";
    s << std::endl;

    s<< "particleHistory : ";
    if (m_particleHistory) m_particleHistory->fillStream(s);
    else s << "NULL";
    s << std::endl;

    s << "unobservableStatistics : ";
    if (m_unobservableStatistics) m_unobservableStatistics->fillStream(s);
    else s << "NULL";
    s << std::endl;
      
    s << " }";
    return s;
}
const DayaBay::SimHitHeader * DayaBay::SimHeader::hits ( ) const [inline]

Retrieve const Pointer to the SimHitHeader object.

Definition at line 169 of file SimHeader.h.

{
  return m_hits;
}
void DayaBay::SimHeader::setHits ( DayaBay::SimHitHeader value) [inline]

Update Pointer to the SimHitHeader object.

Definition at line 174 of file SimHeader.h.

{
  m_hits = value;
}
const DayaBay::SimParticleHistory * DayaBay::SimHeader::particleHistory ( ) const [inline]

Retrieve const Pointer to the SimParticleHistory object.

Definition at line 179 of file SimHeader.h.

{
  return m_particleHistory;
}
void DayaBay::SimHeader::setParticleHistory ( DayaBay::SimParticleHistory value) [inline]

Update Pointer to the SimParticleHistory object.

Definition at line 184 of file SimHeader.h.

{
  m_particleHistory = value;
}
const DayaBay::SimUnobservableStatisticsHeader * DayaBay::SimHeader::unobservableStatistics ( ) const [inline]

Retrieve const Pointer to the SimUnobservableStatisticsHeader object.

Definition at line 189 of file SimHeader.h.

void DayaBay::SimHeader::setUnobservableStatistics ( DayaBay::SimUnobservableStatisticsHeader value) [inline]

Update Pointer to the SimUnobservableStatisticsHeader object.

Definition at line 194 of file SimHeader.h.

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

operator new

Reimplemented from DayaBay::HeaderObject.

Definition at line 102 of file SimHeader.h.

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

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 118 of file SimHeader.h.

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

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

Member Data Documentation

Pointer to the SimHitHeader object.

Definition at line 136 of file SimHeader.h.

Pointer to the SimParticleHistory object.

Definition at line 137 of file SimHeader.h.

Pointer to the SimUnobservableStatisticsHeader object.

Definition at line 138 of file SimHeader.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:28 for SimEvent by doxygen 1.7.4