#include <RandomHeader.h>
Inheritance diagram for DayaBay::RandomHeader:
Public Types | |
typedef std::vector< IHeader * > | Vector |
typedef std::vector< const IHeader * > | ConstVector |
Public Member Functions | |
virtual const std::string & | defLoc () const |
RandomHeader () | |
Default Constructor. | |
virtual | ~RandomHeader () |
Default Destructor. | |
virtual const CLID & | clID () const |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const std::string & | hepEngine () const |
Retrieve const Generator Name. | |
void | setHEPEngine (const std::string &value) |
Update Generator Name. | |
const std::vector< long > & | RndmSeeds () const |
Retrieve const Random Seeds. | |
void | setRndmSeeds (const std::vector< long > &value) |
Update Random Seeds. | |
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 | |
std::string | m_HEPEngine |
Generator Name. | |
std::vector< long > | m_RndmSeeds |
Random Seeds. | |
Friends | |
friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 51 of file RandomHeader.h.
DayaBay::RandomHeader::RandomHeader | ( | ) | [inline] |
Default Constructor.
Definition at line 60 of file RandomHeader.h.
00060 : m_HEPEngine("HepRndm::Engine<CLHEP::RanluxEngine>"), 00061 m_RndmSeeds(0) {}
virtual DayaBay::RandomHeader::~RandomHeader | ( | ) | [inline, virtual] |
static const std::string& DayaBay::RandomHeader::defaultLocation | ( | ) | [inline, static] |
Give access to default location from class scope.
Reimplemented from DayaBay::HeaderObject.
Definition at line 56 of file RandomHeader.h.
00056 { return RandomHeaderLocation::Default; }
virtual const std::string& DayaBay::RandomHeader::defLoc | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 57 of file RandomHeader.h.
00057 { return RandomHeaderLocation::Default; }
const CLID & DayaBay::RandomHeader::clID | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 144 of file RandomHeader.h.
00145 { 00146 return DayaBay::RandomHeader::classID(); 00147 }
const CLID & DayaBay::RandomHeader::classID | ( | ) | [inline, static] |
std::ostream & DayaBay::RandomHeader::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::HeaderObject.
Definition at line 154 of file RandomHeader.h.
00155 { 00156 HeaderObject::fillStream(s); 00157 s << "{ " << "HEPEngine : " << m_HEPEngine << std::endl 00158 << "RndmSeeds : " << m_RndmSeeds << std::endl << " }"; 00159 return s; 00160 }
const std::string & DayaBay::RandomHeader::hepEngine | ( | ) | const [inline] |
Retrieve const Generator Name.
Definition at line 163 of file RandomHeader.h.
00164 { 00165 return m_HEPEngine; 00166 }
void DayaBay::RandomHeader::setHEPEngine | ( | const std::string & | value | ) | [inline] |
Update Generator Name.
Definition at line 168 of file RandomHeader.h.
00169 { 00170 m_HEPEngine = value; 00171 }
const std::vector< long > & DayaBay::RandomHeader::RndmSeeds | ( | ) | const [inline] |
Retrieve const Random Seeds.
Definition at line 173 of file RandomHeader.h.
00174 { 00175 return m_RndmSeeds; 00176 }
void DayaBay::RandomHeader::setRndmSeeds | ( | const std::vector< long > & | value | ) | [inline] |
Update Random Seeds.
Definition at line 178 of file RandomHeader.h.
00179 { 00180 m_RndmSeeds = value; 00181 }
static void* DayaBay::RandomHeader::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::HeaderObject.
Definition at line 92 of file RandomHeader.h.
00093 { 00094 return ( sizeof(RandomHeader) == size ? 00095 boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::malloc() : 00096 ::operator new(size) ); 00097 }
static void* DayaBay::RandomHeader::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 RandomHeader.h.
static void DayaBay::RandomHeader::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::HeaderObject.
Definition at line 108 of file RandomHeader.h.
00109 { 00110 boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::is_from(p) ? 00111 boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::free(p) : 00112 ::operator delete(p); 00113 }
static void DayaBay::RandomHeader::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 RandomHeader.h.
00118 { 00119 ::operator delete (p, pObj); 00120 }
std::string DayaBay::RandomHeader::m_HEPEngine [private] |
std::vector<long> DayaBay::RandomHeader::m_RndmSeeds [private] |