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

Detailed Description

template<class T>
class MCAppStack< T >

Definition at line 23 of file MCAppStack.h.


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]
template<class T>
virtual TParticle* MCAppStack< T >::GetCurrentTrack (  )  const [virtual]
template<class T>
virtual Int_t MCAppStack< T >::GetCurrentTrackNumber (  )  const [inline, virtual]
template<class T>
virtual Int_t MCAppStack< T >::GetNprimary (  )  const [inline, virtual]

Definition at line 38 of file MCAppStack.h.

Referenced by PTSimApplication::GeneratePrimaries(), MCAppValidate::TestStack(), and PTSimValidate::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(), MCAppValidate::TestStack(), and PTSimValidate::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::Stepping(), MCAppValidate::TestStack(), and PTSimValidate::TestStack().

template<class T>
virtual TParticle* MCAppStack< T >::PopNextTrack ( Int_t &  trackid  )  [virtual]
template<class T>
virtual TParticle* MCAppStack< T >::PopPrimaryForTracking ( Int_t  ip  )  [virtual]
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]
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 GeoSwimmer::Swim(), and MCAppValidate::TestStack().

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

Reimplemented in GeoSwimStack, and PTSimStack.

Referenced by 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 MCAppValidate::TestStack(), and PTSimValidate::TestStack().

00062 { fCurrentTrack = track; }


Member Data Documentation

template<class T>
Int_t MCAppStack< T >::fCurrentTrack [private]
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.

Referenced by MCAppStack< PTSimParticle >::GetNtrack().

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.

Referenced by MCAppStack< PTSimParticle >::GetNprimary().

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 2 Nov 2017 for loon by  doxygen 1.6.1