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

A representation of a specific process. More...

#include <SimProcess.h>

List of all members.

Public Types

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 Thu Dec 5 18:05:50 2013

Definition at line 42 of file SimProcess.h.


Member Enumeration Documentation

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.

             { kUnknown = 0,        // Unknown type, for error conditions
               kPrimaryVertex,      // Not really a process, but a seed
               kWorldBoundary,      // Not really a process, just hit the wall
               kGeomBoundary,       // Not really a process, just changed volumes
               kParticleStart,      // 
               kTransportation,     // As defined by G4ProcessType
               kElectromagnetic,    // As defined by G4ProcessType
               kOptical,            // As defined by G4ProcessType
               kHadronic,           // As defined by G4ProcessType
               kPhotolepton_hadron, // As defined by G4ProcessType
               kDecay,              // As defined by G4ProcessType
               kGeneral,            // As defined by G4ProcessType
               kParameterisation,   // As defined by G4ProcessType
               kUserDefined         // As defined by G4ProcessType
      };

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.

                                      : m_type(t),
                                          m_name(name) {}
DayaBay::SimProcess::SimProcess ( ) [inline]

Default constructor.

Definition at line 69 of file SimProcess.h.

               : m_type(kUnknown),
                   m_name("") {}
virtual DayaBay::SimProcess::~SimProcess ( ) [inline, virtual]

Default Destructor.

Definition at line 73 of file SimProcess.h.

{}

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.

{
  s << "{ " << "type :  " << m_type << std::endl
            << "name :  " << m_name << std::endl << " }";
  return s;
}
bool DayaBay::SimProcess::isValid ( ) const [inline]

Return true if type is not unknown.

Definition at line 183 of file SimProcess.h.

{
return m_type != kUnknown;
}
const DayaBay::SimProcess::Type & DayaBay::SimProcess::type ( ) const [inline]

Retrieve const The process type.

Definition at line 173 of file SimProcess.h.

{
  return m_type;
}
const std::string & DayaBay::SimProcess::name ( ) const [inline]

Retrieve const The process name.

Definition at line 178 of file SimProcess.h.

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

operator new

Definition at line 92 of file SimProcess.h.

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

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

operator delete

Definition at line 108 of file SimProcess.h.

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

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

Member Data Documentation

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 Fri May 16 2014 10:05:28 for SimEvent by doxygen 1.7.4