PTSimParticle Class Reference

#include <PTSimParticle.h>

Inheritance diagram for PTSimParticle:
MCAppParticle

List of all members.

Public Member Functions

 PTSimParticle (Int_t id, Int_t pdg, Int_t status, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t tof, TMCProcess process)
 PTSimParticle (Int_t id, TParticle *particle, TMCProcess process)
 PTSimParticle ()
virtual ~PTSimParticle ()
virtual Bool_t HasHitAboveThresh () const
virtual const PTSimParticleGetParent (UInt_t i=0) const
virtual const PTSimParticleGetChild (UInt_t i=0) const
virtual const PTSimParticleGetSibling (UInt_t i=0) const
virtual Bool_t IsSetToSave () const
virtual void SetHasHitAboveThresh (Bool_t hashitabovethresh=true)
virtual Int_t SetToSave (bool save=true, bool ancestor=true, Int_t sibling=1)

Private Attributes

Bool_t fHasHitAboveThresh
Bool_t fIsSetToSave

Detailed Description

Definition at line 19 of file PTSimParticle.h.


Constructor & Destructor Documentation

PTSimParticle::PTSimParticle ( Int_t  id,
Int_t  pdg,
Int_t  status,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  tof,
TMCProcess  process 
)

Definition at line 22 of file PTSimParticle.cxx.

00026   : MCAppParticle(id,pdg,status,px,py,pz,e,vx,vy,vz,tof,process), 
00027        fHasHitAboveThresh(false),fIsSetToSave(false) {
00028  // Normal constructor
00029 
00030 }

PTSimParticle::PTSimParticle ( Int_t  id,
TParticle *  particle,
TMCProcess  process 
)

Definition at line 33 of file PTSimParticle.cxx.

00034   : MCAppParticle(id,particle,process), 
00035     fHasHitAboveThresh(false),fIsSetToSave(false) {
00036  // Normal constructor
00037 
00038 }

PTSimParticle::PTSimParticle (  ) 

Definition at line 41 of file PTSimParticle.cxx.

00041                              : MCAppParticle(), 
00042   fHasHitAboveThresh(false),fIsSetToSave(false) {
00043  // Default constructor
00044 
00045 }

PTSimParticle::~PTSimParticle (  )  [virtual]

Definition at line 48 of file PTSimParticle.cxx.

00048                               {
00049  // Destructor
00050 
00051 }


Member Function Documentation

const PTSimParticle * PTSimParticle::GetChild ( UInt_t  i = 0  )  const [inline, virtual]

Reimplemented from MCAppParticle.

Definition at line 63 of file PTSimParticle.h.

Referenced by PTSimStack::FillStdHepArray(), and PTSimStack::PushTrack().

00063                                                                   {
00064   const MCAppParticle* child = MCAppParticle::GetChild(i);
00065   if ( child ) return dynamic_cast<const PTSimParticle*>(child);
00066   else return 0;
00067 }

const PTSimParticle * PTSimParticle::GetParent ( UInt_t  i = 0  )  const [inline, virtual]

Reimplemented from MCAppParticle.

Definition at line 57 of file PTSimParticle.h.

Referenced by PTSimStack::ParticleIsSelected(), and PTSimValidate::TestParticle().

00057                                                                    {
00058   const MCAppParticle* parent = MCAppParticle::GetParent(i);
00059   if ( parent ) return dynamic_cast<const PTSimParticle*>(parent);
00060   else return 0;
00061 }

const PTSimParticle * PTSimParticle::GetSibling ( UInt_t  i = 0  )  const [inline, virtual]

Reimplemented from MCAppParticle.

Definition at line 69 of file PTSimParticle.h.

Referenced by PTSimValidate::TestParticle().

00069                                                                     {
00070   const MCAppParticle* sibling = MCAppParticle::GetSibling(i);
00071   if ( sibling ) return dynamic_cast<const PTSimParticle*>(sibling);
00072   else return 0;
00073 }

virtual Bool_t PTSimParticle::HasHitAboveThresh (  )  const [inline, virtual]

Definition at line 33 of file PTSimParticle.h.

References fHasHitAboveThresh.

Referenced by PTSimApplication::Stepping().

00033 { return fHasHitAboveThresh; }

virtual Bool_t PTSimParticle::IsSetToSave (  )  const [inline, virtual]

Definition at line 39 of file PTSimParticle.h.

References fIsSetToSave.

Referenced by PTSimValidate::TestParticle().

00039 { return fIsSetToSave; }

virtual void PTSimParticle::SetHasHitAboveThresh ( Bool_t  hashitabovethresh = true  )  [inline, virtual]

Definition at line 42 of file PTSimParticle.h.

References fHasHitAboveThresh.

00043                { fHasHitAboveThresh = hashitabovethresh; }

virtual Int_t PTSimParticle::SetToSave ( bool  save = true,
bool  ancestor = true,
Int_t  sibling = 1 
) [virtual]

Member Data Documentation

Definition at line 51 of file PTSimParticle.h.

Referenced by HasHitAboveThresh(), and SetHasHitAboveThresh().

Bool_t PTSimParticle::fIsSetToSave [private]

Definition at line 52 of file PTSimParticle.h.

Referenced by IsSetToSave().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1