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

In This Package:

DayaBay::RandomHeader Class Reference

HeaderObject for Random Generator Parameters. More...

#include <RandomHeader.h>

Inheritance diagram for DayaBay::RandomHeader:

[legend]
Collaboration diagram for DayaBay::RandomHeader:
[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
 RandomHeader ()
 Default Constructor.
virtual ~RandomHeader ()
 Default Destructor.
virtual const CLIDclID () 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 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

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)

Detailed Description

HeaderObject for Random Generator Parameters.

Author:
goettj@rpi.edu created Mon Apr 11 03:28:57 2011

Definition at line 51 of file RandomHeader.h.


Constructor & Destructor Documentation

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]

Default Destructor.

Definition at line 64 of file RandomHeader.h.

00064 {}


Member Function Documentation

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.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file RandomHeader.h.

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]

Reimplemented from DayaBay::HeaderObject.

Definition at line 149 of file RandomHeader.h.

00150 {
00151   return CLID_RandomHeader;
00152 }

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.

00103     {
00104       return ::operator new (size,pObj);
00105     }

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     }


Member Data Documentation

std::string DayaBay::RandomHeader::m_HEPEngine [private]

Generator Name.

Definition at line 126 of file RandomHeader.h.

std::vector<long> DayaBay::RandomHeader::m_RndmSeeds [private]

Random Seeds.

Definition at line 127 of file RandomHeader.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:19:03 2011 for RandomHeader by doxygen 1.4.7