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

In This Package:

DayaBay::SimProcess Class Reference

A representation of a specific process. More...

#include <SimProcess.h>

List of all members.


Public Types

 kUnknown = 0
 kPrimaryVertex
 kWorldBoundary
 kGeomBoundary
 kParticleStart
 kTransportation
 kElectromagnetic
 kOptical
 kHadronic
 kPhotolepton_hadron
 kDecay
 kGeneral
 kParameterisation
 kUserDefined
enum  Type {
  kUnknown = 0, kPrimaryVertex, kWorldBoundary, kGeomBoundary,
  kParticleStart, kTransportation, kElectromagnetic, kOptical,
  kHadronic, kPhotolepton_hadron, kDecay, kGeneral,
  kParameterisation, kUserDefined
}
 Process type. More...

Public Member Functions

 SimProcess (const Type &t, const std::string &name)
 Create a SimProcess with optional initialization.
 SimProcess ()
 Default constructor.
virtual ~SimProcess ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
bool isValid () const
 Return true if type is not unknown.
const Typetype () const
 Retrieve const The process type.
const std::string & name () const
 Retrieve const The process name.

Static Public Member Functions

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

Type m_type
 The process type.
std::string m_name
 The process name.

Detailed Description

A representation of a specific process.

Author:
tagg@minos.phy.tufts.edu created Mon Apr 11 03:59:56 2011

Definition at line 42 of file SimProcess.h.


Member Enumeration Documentation

enum DayaBay::SimProcess::Type

Process type.

Enumerator:
kUnknown 
kPrimaryVertex 
kWorldBoundary 
kGeomBoundary 
kParticleStart 
kTransportation 
kElectromagnetic 
kOptical 
kHadronic 
kPhotolepton_hadron 
kDecay 
kGeneral 
kParameterisation 
kUserDefined 

Definition at line 47 of file SimProcess.h.

00047              { kUnknown = 0,        // Unknown type, for error conditions
00048                kPrimaryVertex,      // Not really a process, but a seed
00049                kWorldBoundary,      // Not really a process, just hit the wall
00050                kGeomBoundary,       // Not really a process, just changed volumes
00051                kParticleStart,      // 
00052                kTransportation,     // As defined by G4ProcessType
00053                kElectromagnetic,    // As defined by G4ProcessType
00054                kOptical,            // As defined by G4ProcessType
00055                kHadronic,           // As defined by G4ProcessType
00056                kPhotolepton_hadron, // As defined by G4ProcessType
00057                kDecay,              // As defined by G4ProcessType
00058                kGeneral,            // As defined by G4ProcessType
00059                kParameterisation,   // As defined by G4ProcessType
00060                kUserDefined         // As defined by G4ProcessType
00061       };


Constructor & Destructor Documentation

DayaBay::SimProcess::SimProcess ( const Type t,
const std::string &  name 
) [inline]

Create a SimProcess with optional initialization.

Definition at line 64 of file SimProcess.h.

00065                                       : m_type(t),
00066                                           m_name(name) {}

DayaBay::SimProcess::SimProcess (  )  [inline]

Default constructor.

Definition at line 69 of file SimProcess.h.

00069                : m_type(kUnknown),
00070                    m_name("") {}

virtual DayaBay::SimProcess::~SimProcess (  )  [inline, virtual]

Default Destructor.

Definition at line 73 of file SimProcess.h.

00073 {}


Member Function Documentation

std::ostream & DayaBay::SimProcess::fillStream ( std::ostream &  s  )  const [inline, virtual]

Fill the ASCII output stream.

Definition at line 165 of file SimProcess.h.

00166 {
00167   s << "{ " << "type :  " << m_type << std::endl
00168             << "name :  " << m_name << std::endl << " }";
00169   return s;
00170 }

bool DayaBay::SimProcess::isValid (  )  const [inline]

Return true if type is not unknown.

Definition at line 183 of file SimProcess.h.

00184 {
00185 return m_type != kUnknown;
00186 }

const DayaBay::SimProcess::Type & DayaBay::SimProcess::type (  )  const [inline]

Retrieve const The process type.

Definition at line 173 of file SimProcess.h.

00174 {
00175   return m_type;
00176 }

const std::string & DayaBay::SimProcess::name (  )  const [inline]

Retrieve const The process name.

Definition at line 178 of file SimProcess.h.

00179 {
00180   return m_name;
00181 }

static void* DayaBay::SimProcess::operator new ( size_t  size  )  [inline, static]

operator new

Definition at line 92 of file SimProcess.h.

00093     {
00094       return ( sizeof(SimProcess) == size ? 
00095                boost::singleton_pool<SimProcess, sizeof(SimProcess)>::malloc() :
00096                ::operator new(size) );
00097     }

static void* DayaBay::SimProcess::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

Definition at line 102 of file SimProcess.h.

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

static void DayaBay::SimProcess::operator delete ( void *  p  )  [inline, static]

operator delete

Definition at line 108 of file SimProcess.h.

00109     {
00110       boost::singleton_pool<SimProcess, sizeof(SimProcess)>::is_from(p) ?
00111       boost::singleton_pool<SimProcess, sizeof(SimProcess)>::free(p) :
00112       ::operator delete(p);
00113     }

static void DayaBay::SimProcess::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Definition at line 117 of file SimProcess.h.

00118     {
00119       ::operator delete (p, pObj);
00120     }


Member Data Documentation

Type DayaBay::SimProcess::m_type [private]

The process type.

Definition at line 126 of file SimProcess.h.

std::string DayaBay::SimProcess::m_name [private]

The process name.

Definition at line 127 of file SimProcess.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:31:30 2011 for SimEvent by doxygen 1.4.7