#include <SimHeader.h>
Inheritance diagram for DayaBay::SimHeader:
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::SimHitHeader * | hits () const |
Retrieve const Pointer to the SimHitHeader object. | |
void | setHits (DayaBay::SimHitHeader *value) |
Update Pointer to the SimHitHeader object. | |
const DayaBay::SimParticleHistory * | particleHistory () 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 | addInputHeader (const DayaBay::IHeader *iheader) |
const TimeStamp & | timeStamp () const |
void | setTimeStamp (const TimeStamp &ts) |
const std::vector< const DayaBay::IHeader * > | findHeaders (const CLID &clid) const |
const Context & | context () 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::JobId & | jobId () const |
void | setJobId (const DayaBay::JobId &value) |
virtual void | setOutputAddress (const GenericAddress *roa) |
virtual void | setInputAddress (const GenericAddress *ria) |
virtual const TimeStamp & | earliest () const |
void | setEarliest (const TimeStamp &value) |
virtual const TimeStamp & | latest () const |
void | setLatest (const TimeStamp &value) |
virtual const GenericAddress * | outputAddress () const |
virtual const GenericAddress * | inputAddress () const |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () 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 StreamBuffer & | serialize (StreamBuffer &s) |
virtual StreamBuffer & | serialize (StreamBuffer &s) 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::SimHitHeader * | m_hits |
Pointer to the SimHitHeader object. | |
DayaBay::SimParticleHistory * | m_particleHistory |
Pointer to the SimParticleHistory object. | |
DayaBay::SimUnobservableStatisticsHeader * | m_unobservableStatistics |
Pointer to the SimUnobservableStatisticsHeader object. | |
Friends | |
friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 52 of file SimHeader.h.
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 }
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] |
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.
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 }
DayaBay::SimHitHeader* DayaBay::SimHeader::m_hits [private] |