Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MCAppStack< T > Class Template Reference

#include <MCAppStack.h>

Inheritance diagram for MCAppStack< T >:

MCAppStackBase List of all members.

Public Member Functions

 MCAppStack ()
virtual ~MCAppStack ()
virtual Int_t GetNtrack () const
virtual Int_t GetNprimary () const
virtual TParticle * GetCurrentTrack () const
virtual Int_t GetCurrentTrackNumber () const
virtual Int_t GetCurrentParentTrackNumber () const
virtual void PushTrack (Int_t toBeDone, Int_t parentId, Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t tof, Double_t polx, Double_t poly, Double_t polz, TMCProcess mech, Int_t &ntr, Double_t weight, Int_t statuscode)
virtual TParticle * PopNextTrack (Int_t &trackid)
virtual TParticle * PopPrimaryForTracking (Int_t ip)
virtual void SetCurrentTrack (Int_t track)
virtual const T * GetParticle (UInt_t id) const
 Additional methods beyond requirement.
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
virtual void Reset ()

Private Attributes

std::stack< const T * > fStack
std::vector< const T * > fPrimaries
 particles to be trked, not owned
std::vector< const T * > fParticles
 primaries to be trked, not owned
Int_t fCurrentTrack

template<class T>
class MCAppStack< T >


Constructor & Destructor Documentation

template<class T>
MCAppStack< T >::MCAppStack  ) 
 

template<class T>
virtual MCAppStack< T >::~MCAppStack  )  [virtual]
 


Member Function Documentation

template<class T>
virtual Int_t MCAppStack< T >::GetCurrentParentTrackNumber  )  const [virtual]
 

Referenced by PTSimApplication::PreTrack(), PTSimApplication::Stepping(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual TParticle* MCAppStack< T >::GetCurrentTrack  )  const [virtual]
 

Referenced by PTSimApplication::BeginPrimary(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual Int_t MCAppStack< T >::GetCurrentTrackNumber  )  const [inline, virtual]
 

Definition at line 42 of file MCAppStack.h.

Referenced by PTSimApplication::BeginPrimary(), PTSimApplication::PreTrack(), PTSimApplication::Stepping(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

00042 { return fCurrentTrack; }

template<class T>
virtual Int_t MCAppStack< T >::GetNprimary  )  const [inline, virtual]
 

Definition at line 38 of file MCAppStack.h.

Referenced by PTSimApplication::GeneratePrimaries(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

00038 { return fPrimaries.size(); }

template<class T>
virtual Int_t MCAppStack< T >::GetNtrack  )  const [inline, virtual]
 

The methods in this section are pure virtual in TVirtualMCStack and must be defined here

Definition at line 36 of file MCAppStack.h.

Referenced by PTSimApplication::BeginEvent(), PTSimApplication::GeneratePrimaries(), PTSimApplication::Stepping(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

00036 { return fParticles.size(); }

template<class T>
virtual const T* MCAppStack< T >::GetParticle UInt_t  id  )  const [virtual]
 

Additional methods beyond requirement.

Implements MCAppStackBase.

Referenced by PTSimApplication::PreTrack(), PTSimApplication::Stepping(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual TParticle* MCAppStack< T >::PopNextTrack Int_t &  trackid  )  [virtual]
 

Referenced by PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual TParticle* MCAppStack< T >::PopPrimaryForTracking Int_t  ip  )  [virtual]
 

Referenced by PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual void MCAppStack< T >::Print Option_t *  option = ""  )  const [virtual]
 

template<class T>
virtual std::ostream& MCAppStack< T >::Print std::ostream &  os  )  const [virtual]
 

Referenced by PTSimApplication::GeneratePrimaries(), PTSimValidate::TestStack(), and MCAppValidate::TestStack().

template<class T>
virtual void MCAppStack< T >::PushTrack Int_t  toBeDone,
Int_t  parentId,
Int_t  pdg,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  tof,
Double_t  polx,
Double_t  poly,
Double_t  polz,
TMCProcess  mech,
Int_t &  ntr,
Double_t  weight,
Int_t  statuscode
[virtual]
 

Reimplemented in PTSimStack.

Referenced by PTSimStack::PushTrack(), GeoSwimmer::Swim(), and MCAppValidate::TestStack().

template<class T>
virtual void MCAppStack< T >::Reset  )  [virtual]
 

Reimplemented in GeoSwimStack, and PTSimStack.

Referenced by PTSimStack::Reset(), GeoSwimStack::Reset(), and MCAppValidate::TestStack().

template<class T>
virtual void MCAppStack< T >::SetCurrentTrack Int_t  track  )  [inline, virtual]
 

Definition at line 62 of file MCAppStack.h.

Referenced by PTSimValidate::TestStack(), and MCAppValidate::TestStack().

00062 { fCurrentTrack = track; }


Member Data Documentation

template<class T>
Int_t MCAppStack< T >::fCurrentTrack [private]
 

Definition at line 80 of file MCAppStack.h.

template<class T>
std::vector< const T* > MCAppStack< T >::fParticles [private]
 

primaries to be trked, not owned

Definition at line 79 of file MCAppStack.h.

template<class T>
std::vector< const T* > MCAppStack< T >::fPrimaries [private]
 

particles to be trked, not owned

Definition at line 78 of file MCAppStack.h.

template<class T>
std::stack< const T* > MCAppStack< T >::fStack [private]
 

Definition at line 77 of file MCAppStack.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:09:30 2010 for loon by  doxygen 1.3.9.1