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

HeaderObject for kinematics generators. More...

#include <GenHeader.h>

Inheritance diagram for DayaBay::GenHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::GenHeader:
Collaboration graph
[legend]

List of all members.

Public Types

enum  statusType { Unknown = 0, StableInProdGen = 1, DecayedByProdGen = 2, DocumentationParticle = 3 }
 Status code in HepMC::GenParticle. More...
typedef std::vector< IHeader * > Vector
typedef std::vector< const
IHeader * > 
ConstVector

Public Member Functions

virtual const std::string & defLoc () const
 GenHeader ()
 Default Constructor.
virtual ~GenHeader ()
 Destructor.
virtual const CLID & clID () const
void setEvent (HepMC::GenEvent *event)
 Set the GenEvent, GenHeader takes ownership.
std::ostream & fillStream (std::ostream &s) const
 Serialize to an ostream.
const std::string & generatorName () const
 Retrieve const Generator Name.
void setGeneratorName (const std::string &value)
 Update Generator Name.
const HepMC::GenEventevent () const
 Retrieve const HepMC generator event.
HepMC::GenEventevent ()
 Retrieve HepMC generator event.
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_generatorName
 Generator Name.
HepMC::GenEventm_event
 HepMC generator event.

Detailed Description

HeaderObject for kinematics generators.

Author:
bv@bnl.gov created Thu Dec 5 18:09:32 2013

Definition at line 49 of file GenHeader.h.


Member Enumeration Documentation

Status code in HepMC::GenParticle.

Enumerator:
Unknown 
StableInProdGen 
DecayedByProdGen 
DocumentationParticle 

Definition at line 58 of file GenHeader.h.


Constructor & Destructor Documentation

DayaBay::GenHeader::GenHeader ( ) [inline]

Default Constructor.

Definition at line 65 of file GenHeader.h.

                : m_generatorName("Unknown"),
                  m_event(0) {}
DayaBay::GenHeader::~GenHeader ( ) [virtual]

Destructor.

Definition at line 4 of file GenHeader.cc.

{
    delete m_event;
    m_event = 0;
}

Member Function Documentation

static const std::string& DayaBay::GenHeader::defaultLocation ( ) [inline, static]

Give access to default location from class scope.

Reimplemented from DayaBay::HeaderObject.

Definition at line 54 of file GenHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 55 of file GenHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 163 of file GenHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 168 of file GenHeader.h.

{
  return CLID_GenHeader;
}
void DayaBay::GenHeader::setEvent ( HepMC::GenEvent event)

Set the GenEvent, GenHeader takes ownership.

Definition at line 10 of file GenHeader.cc.

{
    delete m_event;
    m_event = value;
}
std::ostream & GenHeader::fillStream ( std::ostream &  s) const [virtual]

Serialize to an ostream.

Reimplemented from DayaBay::HeaderObject.

Definition at line 16 of file GenHeader.cc.

{
    HeaderObject::fillStream(s);
    s << "{ " << "generatorName :       " << m_generatorName << std::endl
      << "event : {\n";
    if (m_event) {
        m_event->print(s);
    }
    else {
        s << "NULL GenEvent data";
    }
    s << "\n}\n";
    return s;
}
const std::string & DayaBay::GenHeader::generatorName ( ) const [inline]

Retrieve const Generator Name.

Definition at line 173 of file GenHeader.h.

{
  return m_generatorName;
}
void DayaBay::GenHeader::setGeneratorName ( const std::string &  value) [inline]

Update Generator Name.

Definition at line 178 of file GenHeader.h.

{
  m_generatorName = value;
}
const HepMC::GenEvent * DayaBay::GenHeader::event ( ) const [inline]

Retrieve const HepMC generator event.

Definition at line 183 of file GenHeader.h.

{
  return m_event;
}
HepMC::GenEvent * DayaBay::GenHeader::event ( ) [inline]

Retrieve HepMC generator event.

Definition at line 188 of file GenHeader.h.

{
  return m_event;
}
static void* DayaBay::GenHeader::operator new ( size_t  size) [inline, static]

operator new

Reimplemented from DayaBay::HeaderObject.

Definition at line 100 of file GenHeader.h.

    {
      return ( sizeof(GenHeader) == size ? 
               boost::singleton_pool<GenHeader, sizeof(GenHeader)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::GenHeader::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 110 of file GenHeader.h.

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 116 of file GenHeader.h.

    {
      boost::singleton_pool<GenHeader, sizeof(GenHeader)>::is_from(p) ?
      boost::singleton_pool<GenHeader, sizeof(GenHeader)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::GenHeader::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 125 of file GenHeader.h.

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

Member Data Documentation

std::string DayaBay::GenHeader::m_generatorName [private]

Generator Name.

Definition at line 134 of file GenHeader.h.

HepMC generator event.

Definition at line 135 of file GenHeader.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 Fri May 16 2014 10:06:04 for GenEvent by doxygen 1.7.4