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

HeaderObject for Random Generator Parameters. More...

#include <RandomHeader.h>

Inheritance diagram for DayaBay::RandomHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::RandomHeader:
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
 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 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

std::string m_HEPEngine
 Generator Name.
std::vector< long > m_RndmSeeds
 Random Seeds.

Detailed Description

HeaderObject for Random Generator Parameters.

Author:
goettj@rpi.edu created Thu Dec 5 17:40:18 2013

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.

                   : m_HEPEngine("HepRndm::Engine<CLHEP::RanluxEngine>"),
                     m_RndmSeeds(0) {}
virtual DayaBay::RandomHeader::~RandomHeader ( ) [inline, virtual]

Default Destructor.

Definition at line 64 of file RandomHeader.h.

{}

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.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 149 of file RandomHeader.h.

{
  return CLID_RandomHeader;
}
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.

{
  HeaderObject::fillStream(s);
  s << "{ " << "HEPEngine :     " << m_HEPEngine << std::endl
            << "RndmSeeds :     " << m_RndmSeeds << std::endl << " }";
  return s;
}
const std::string & DayaBay::RandomHeader::hepEngine ( ) const [inline]

Retrieve const Generator Name.

Definition at line 163 of file RandomHeader.h.

{
  return m_HEPEngine;
}
void DayaBay::RandomHeader::setHEPEngine ( const std::string &  value) [inline]

Update Generator Name.

Definition at line 168 of file RandomHeader.h.

{
  m_HEPEngine = value;
}
const std::vector< long > & DayaBay::RandomHeader::RndmSeeds ( ) const [inline]

Retrieve const Random Seeds.

Definition at line 173 of file RandomHeader.h.

{
  return m_RndmSeeds;
}
void DayaBay::RandomHeader::setRndmSeeds ( const std::vector< long > &  value) [inline]

Update Random Seeds.

Definition at line 178 of file RandomHeader.h.

{
  m_RndmSeeds = value;
}
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.

    {
      return ( sizeof(RandomHeader) == size ? 
               boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::malloc() :
               ::operator new(size) );
    }
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.

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 108 of file RandomHeader.h.

    {
      boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::is_from(p) ?
      boost::singleton_pool<RandomHeader, sizeof(RandomHeader)>::free(p) :
      ::operator delete(p);
    }
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.

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

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 Fri May 16 2014 09:58:34 for RandomHeader by doxygen 1.7.4