Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MCTruth Class Reference

MCTruth: class which represents the monte-carlo truth for the simulation. More...

#include <MCTruth.h>

Inheritance diagram for MCTruth:

GlastDetector xml::PersistentObject List of all members.

Public Types

typedef unsigned int id_type

Public Methods

 MCTruth ( _Particle* p = 0)
 implementation inserts MCTruth::ParticleData as default. More...

virtual ~MCTruth ()
virtual void accept (DetectorVisitor&)
virtual void accept (DetectorConverter&)
virtual void accept (DetectorConverter&) const
virtual bool empty () const
virtual void read (std::istream& in)
virtual void write (std::ostream& out) const
virtual void printOn (std::ostream& out) const
virtual const char* nameOf () const
const _Particleparticle () const
_Particleparticle ()
void particle (_Particle* p)
const id_typeid () const
void id ( const id_type& anid )
Generator* generator ()
virtual DOM_Element persist (DOM_Element& e) const

Static Public Methods

MCTruth* instance ()

Static Public Attributes

const GlastDetector::_PersistKey classPersistKey = GlastDetector::_PersistKey("MCTruth")

Protected Methods

 MCTruth (const DOM_Element& elem)
 constructor used when creating from an xml element (DOM api). More...

virtual const GlastDetector::_PersistKey& persistKey () const

Private Attributes

_Particlem_particle
id_type m_id

Static Private Attributes

MCTruth* s_instance

Friends

class  _Factory

Detailed Description

MCTruth: class which represents the monte-carlo truth for the simulation.

With each simulated event a single instance of MCTruth should be filled with the particle propagation, initial energy, direction, etc. so that this information is available for analysis

Definition at line 22 of file MCTruth.h.


Member Typedef Documentation

typedef unsigned int MCTruth::id_type
 

Reimplemented from GlastDetector.

Definition at line 30 of file MCTruth.h.


Constructor & Destructor Documentation

MCTruth::MCTruth ( const DOM_Element & elem ) [protected]
 

constructor used when creating from an xml element (DOM api).

Definition at line 27 of file MCTruth.cxx.

MCTruth::MCTruth ( _Particle * p = 0 )
 

implementation inserts MCTruth::ParticleData as default.

Definition at line 112 of file MCTruth.cxx.

MCTruth::~MCTruth ( ) [virtual]
 

Definition at line 34 of file MCTruth.cxx.


Member Function Documentation

void MCTruth::accept ( DetectorConverter & c ) const [virtual]
 

Reimplemented from GlastDetector.

Definition at line 49 of file MCTruth.cxx.

void MCTruth::accept ( DetectorConverter & c ) [virtual]
 

Reimplemented from GlastDetector.

Definition at line 44 of file MCTruth.cxx.

void MCTruth::accept ( DetectorVisitor & v ) [virtual]
 

Reimplemented from GlastDetector.

Definition at line 38 of file MCTruth.cxx.

bool MCTruth::empty ( ) const [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 122 of file MCTruth.h.

Referenced by ResponseConverter::forward().

Generator * MCTruth::generator ( ) [inline]
 

Definition at line 139 of file MCTruth.h.

void MCTruth::id ( const id_type & anid ) [inline]
 

Definition at line 137 of file MCTruth.h.

const id_type & MCTruth::id ( ) const [inline]
 

Reimplemented from GlastDetector.

Definition at line 136 of file MCTruth.h.

Referenced by ResponseFile::backward(), and ResponseFile::forward().

MCTruth * MCTruth::instance ( ) [inline, static]
 

Definition at line 142 of file MCTruth.h.

Referenced by FluxGenerator::generate().

const char * MCTruth::nameOf ( ) const [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 129 of file MCTruth.h.

void MCTruth::particle ( _Particle * p ) [inline]
 

Definition at line 134 of file MCTruth.h.

_Particle * MCTruth::particle ( ) [inline]
 

Definition at line 133 of file MCTruth.h.

const _Particle * MCTruth::particle ( ) const [inline]
 

Definition at line 132 of file MCTruth.h.

Referenced by ResponseFile::backward(), ResponseFile::forward(), and FluxGenerator::generate().

DOM_Element MCTruth::persist ( DOM_Element & e ) const [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 147 of file MCTruth.h.

const GlastDetector::_PersistKey & MCTruth::persistKey ( ) const [inline, protected, virtual]
 

Definition at line 152 of file MCTruth.h.

void MCTruth::printOn ( std::ostream & out ) const [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 126 of file MCTruth.h.

void MCTruth::read ( std::istream & in ) [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 123 of file MCTruth.h.

void MCTruth::write ( std::ostream & out ) const [inline, virtual]
 

Reimplemented from GlastDetector.

Definition at line 124 of file MCTruth.h.


Friends And Related Function Documentation

class _Factory [friend]
 

Definition at line 156 of file MCTruth.h.


Member Data Documentation

const GlastDetector::_PersistKey MCTruth::classPersistKey = GlastDetector::_PersistKey("MCTruth") [static]
 

Definition at line 15 of file MCTruth.cxx.

id_type MCTruth::m_id [private]
 

Reimplemented from GlastDetector.

Definition at line 161 of file MCTruth.h.

_Particle * MCTruth::m_particle [private]
 

Definition at line 160 of file MCTruth.h.

MCTruth * MCTruth::s_instance [static, private]
 

Definition at line 14 of file MCTruth.cxx.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:41 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000