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

In This Package:

DayaBay::SimHeader Class Reference

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

#include <SimHeader.h>

Inheritance diagram for DayaBay::SimHeader:

[legend]
Collaboration diagram for DayaBay::SimHeader:
[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 CLIDclID () 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::SimUnobservableStatisticsHeaderunobservableStatistics () 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 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::SimHitHeaderm_hits
 Pointer to the SimHitHeader object.
DayaBay::SimParticleHistorym_particleHistory
 Pointer to the SimParticleHistory object.
DayaBay::SimUnobservableStatisticsHeaderm_unobservableStatistics
 Pointer to the SimUnobservableStatisticsHeader object.

Friends

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

Detailed Description

Top level header for all detector simulation data.

Author:
bv@bnl.gov created Mon Apr 11 03:59:59 2011

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.

00061                 : m_hits(0),
00062                   m_particleHistory(0),
00063                   m_unobservableStatistics(0) {}

DayaBay::SimHeader::~SimHeader (  ) 

Destructor.

Definition at line 7 of file SimHeader.cc.

00008 {
00009     if (m_unobservableStatistics) {
00010         delete m_unobservableStatistics; 
00011         m_unobservableStatistics = 0;
00012     }
00013 
00014     if (m_particleHistory) {
00015         delete m_particleHistory;
00016         m_particleHistory = 0;
00017     }
00018 
00019     if (m_hits) {
00020         delete m_hits; 
00021         m_hits = 0;
00022     }
00023 }


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.

00057 { return SimHeaderLocation::Default; }

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 58 of file SimHeader.h.

00058 { return SimHeaderLocation::Default; }

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file SimHeader.h.

00160 {
00161   return DayaBay::SimHeader::classID();
00162 }

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 164 of file SimHeader.h.

00165 {
00166   return CLID_SimHeader;
00167 }

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.

00026 {
00027     HeaderObject::fillStream(s);
00028     s << "{ ";
00029 
00030     s << "hits : ";
00031     if (m_hits) m_hits->fillStream(s);
00032     else s << "NULL";
00033     s << std::endl;
00034 
00035     s<< "particleHistory : ";
00036     if (m_particleHistory) m_particleHistory->fillStream(s);
00037     else s << "NULL";
00038     s << std::endl;
00039 
00040     s << "unobservableStatistics : ";
00041     if (m_unobservableStatistics) m_unobservableStatistics->fillStream(s);
00042     else s << "NULL";
00043     s << std::endl;
00044       
00045     s << " }";
00046     return s;
00047 }

const DayaBay::SimHitHeader * DayaBay::SimHeader::hits (  )  const [inline]

Retrieve const Pointer to the SimHitHeader object.

Definition at line 169 of file SimHeader.h.

00170 {
00171   return m_hits;
00172 }

void DayaBay::SimHeader::setHits ( DayaBay::SimHitHeader value  )  [inline]

Update Pointer to the SimHitHeader object.

Definition at line 174 of file SimHeader.h.

00175 {
00176   m_hits = value;
00177 }

const DayaBay::SimParticleHistory * DayaBay::SimHeader::particleHistory (  )  const [inline]

Retrieve const Pointer to the SimParticleHistory object.

Definition at line 179 of file SimHeader.h.

00180 {
00181   return m_particleHistory;
00182 }

void DayaBay::SimHeader::setParticleHistory ( DayaBay::SimParticleHistory value  )  [inline]

Update Pointer to the SimParticleHistory object.

Definition at line 184 of file SimHeader.h.

00185 {
00186   m_particleHistory = value;
00187 }

const DayaBay::SimUnobservableStatisticsHeader * DayaBay::SimHeader::unobservableStatistics (  )  const [inline]

Retrieve const Pointer to the SimUnobservableStatisticsHeader object.

Definition at line 189 of file SimHeader.h.

00190 {
00191   return m_unobservableStatistics;
00192 }

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

Update Pointer to the SimUnobservableStatisticsHeader object.

Definition at line 194 of file SimHeader.h.

00195 {
00196   m_unobservableStatistics = value;
00197 }

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.

00103     {
00104       return ( sizeof(SimHeader) == size ? 
00105                boost::singleton_pool<SimHeader, sizeof(SimHeader)>::malloc() :
00106                ::operator new(size) );
00107     }

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.

00113     {
00114       return ::operator new (size,pObj);
00115     }

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 118 of file SimHeader.h.

00119     {
00120       boost::singleton_pool<SimHeader, sizeof(SimHeader)>::is_from(p) ?
00121       boost::singleton_pool<SimHeader, sizeof(SimHeader)>::free(p) :
00122       ::operator delete(p);
00123     }

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.

00128     {
00129       ::operator delete (p, pObj);
00130     }


Member Data Documentation

DayaBay::SimHitHeader* DayaBay::SimHeader::m_hits [private]

Pointer to the SimHitHeader object.

Definition at line 136 of file SimHeader.h.

DayaBay::SimParticleHistory* DayaBay::SimHeader::m_particleHistory [private]

Pointer to the SimParticleHistory object.

Definition at line 137 of file SimHeader.h.

DayaBay::SimUnobservableStatisticsHeader* DayaBay::SimHeader::m_unobservableStatistics [private]

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 Mon Apr 11 20:31:30 2011 for SimEvent by doxygen 1.4.7