GParticle Class Reference

#include <GParticle.h>

List of all members.

Public Member Functions

 GParticle ()
 GParticle (const Int_t kS, const Int_t kF, const Int_t parent, const Int_t firstchild, const Int_t lastchild, const Float_t px, const Float_t py, const Float_t pz, const Float_t energy, const Float_t mass, const Float_t vx, const Float_t vy, const Float_t vz, const Float_t polx, const Float_t poly, const Float_t polz, const Float_t time, const Float_t lifetime, const char *Origin="Unknown")
virtual ~GParticle ()
Int_t GetKS () const
Int_t GetKF () const
Int_t GetParent () const
Int_t GetFirstChild () const
Int_t GetLastChild () const
Float_t GetPx () const
Float_t GetPy () const
Float_t GetPz () const
Float_t GetPolx () const
Float_t GetPoly () const
Float_t GetPolz () const
Float_t GetEnergy () const
Float_t GetMass () const
Float_t GetMomentum () const
void GetOrigin (char *Origin)
Float_t GetPT () const
Float_t GetVx () const
Float_t GetVy () const
Float_t GetVz () const
Float_t GetTime () const
Float_t GetLifeTime () const
Float_t GetProcessTime () const
virtual const Text_t * GetName () const
virtual const Text_t * GetTitle () const
void SetKS (Int_t KS)
void SetFirstChild (const Int_t firstchild)
void SetLastChild (const Int_t lastchild)
void SetParent (const Int_t parent)
void SetProcessTime (Float_t cputime)

Private Attributes

Int_t fKS
Int_t fKF
Int_t fParent
Int_t fFirstChild
Int_t fLastChild
Float_t fPx
Float_t fPy
Float_t fPz
Float_t fEnergy
Float_t fMass
Float_t fVx
Float_t fVy
Float_t fVz
Float_t fPolx
Float_t fPoly
Float_t fPolz
Float_t fTime
Float_t fLifeTime
Float_t fProcessTime
char fOrigin [11]

Detailed Description

Definition at line 24 of file GParticle.h.


Constructor & Destructor Documentation

GParticle::GParticle (  ) 

Definition at line 24 of file GParticle.cxx.

00025 {
00026 }

GParticle::GParticle ( const Int_t  kS,
const Int_t  kF,
const Int_t  parent,
const Int_t  firstchild,
const Int_t  lastchild,
const Float_t  px,
const Float_t  py,
const Float_t  pz,
const Float_t  energy,
const Float_t  mass,
const Float_t  vx,
const Float_t  vy,
const Float_t  vz,
const Float_t  polx,
const Float_t  poly,
const Float_t  polz,
const Float_t  time,
const Float_t  lifetime,
const char *  Origin = "Unknown" 
)

Definition at line 29 of file GParticle.cxx.

References fOrigin.

00039                                          :
00040    fKS(kS)
00041 ,  fKF(kF)
00042 ,  fParent(parent)
00043 ,  fFirstChild(firstchild)
00044 ,  fLastChild(lastchild)
00045 ,  fPx(px)
00046 ,  fPy(py)
00047 ,  fPz(pz)
00048 ,  fEnergy(energy)
00049 ,  fMass(mass)
00050 ,  fVx(vx)
00051 ,  fVy(vy)
00052 ,  fVz(vz)
00053 ,  fPolx(polx)
00054 ,  fPoly(poly)
00055 ,  fPolz(polz)
00056 ,  fTime(time)
00057 ,  fLifeTime(lifetime)
00058 ,  fProcessTime(-0.1)
00059 {
00060    Int_t p=0; 
00061    while ((fOrigin[p]=Origin[p]) && p++<10);
00062    fOrigin[10]=0;
00063 }

GParticle::~GParticle (  )  [virtual]

Definition at line 66 of file GParticle.cxx.

00067 {
00068 }


Member Function Documentation

Float_t GParticle::GetEnergy (  )  const [inline]

Definition at line 82 of file GParticle.h.

References fEnergy.

Referenced by MINFast::GetNextTrack().

00082 {return fEnergy;}

Int_t GParticle::GetFirstChild (  )  const [inline]

Definition at line 71 of file GParticle.h.

References fFirstChild.

00071 {return fFirstChild;}

Int_t GParticle::GetKF (  )  const [inline]

Definition at line 69 of file GParticle.h.

References fKF.

Referenced by MINFast::GetNextTrack().

00069 {return fKF;}

Int_t GParticle::GetKS (  )  const [inline]

Definition at line 68 of file GParticle.h.

References fKS.

00068 {return fKS;}

Int_t GParticle::GetLastChild (  )  const [inline]

Definition at line 72 of file GParticle.h.

References fLastChild.

00072 {return fLastChild;}

Float_t GParticle::GetLifeTime (  )  const [inline]

Definition at line 93 of file GParticle.h.

References fLifeTime.

00093 {return fLifeTime;}

Float_t GParticle::GetMass (  )  const [inline]

Definition at line 83 of file GParticle.h.

References fMass.

00083 {return fMass;}

Float_t GParticle::GetMomentum (  )  const [inline]

Definition at line 84 of file GParticle.h.

References fPx, fPy, and fPz.

Referenced by MINFPoints::GetObjectInfo().

00084                                            {return
00085                                   TMath::Sqrt(fPx*fPx+fPy*fPy+fPz*fPz);}

const Text_t * GParticle::GetName ( void   )  const [virtual]

Definition at line 71 of file GParticle.cxx.

References fKF, and MINFAttParticle::GetParticle().

Referenced by MINFPoints::GetName().

00072 {
00073 
00074 // Return name of this particle (PDG convention)
00075    return (MINFAttParticle::GetParticle(fKF))->GetName();
00076 }

void GParticle::GetOrigin ( char *  Origin  )  [inline]

Definition at line 86 of file GParticle.h.

References fOrigin.

00086 {strcpy(Origin,fOrigin);}

Int_t GParticle::GetParent (  )  const [inline]

Definition at line 70 of file GParticle.h.

References fParent.

Referenced by MINFast::FlagTrack(), and MINFast::GetPrimary().

00070 {return fParent;}

Float_t GParticle::GetPolx (  )  const [inline]

Definition at line 78 of file GParticle.h.

References fPolx.

Referenced by MINFast::GetNextTrack().

00078 {return fPolx;}

Float_t GParticle::GetPoly (  )  const [inline]

Definition at line 79 of file GParticle.h.

References fPoly.

Referenced by MINFast::GetNextTrack().

00079 {return fPoly;}

Float_t GParticle::GetPolz (  )  const [inline]

Definition at line 80 of file GParticle.h.

References fPolz.

Referenced by MINFast::GetNextTrack().

00080 {return fPolz;}

Float_t GParticle::GetProcessTime (  )  const [inline]

Definition at line 94 of file GParticle.h.

References fProcessTime.

00094 {return fProcessTime;}

Float_t GParticle::GetPT (  )  const [inline]

Definition at line 87 of file GParticle.h.

References fPx, and fPy.

00087 {return TMath::Sqrt(fPx*fPx+fPy*fPy);}

Float_t GParticle::GetPx (  )  const [inline]

Definition at line 74 of file GParticle.h.

References fPx.

Referenced by MINFast::GetNextTrack().

00074 {return fPx;}

Float_t GParticle::GetPy (  )  const [inline]

Definition at line 75 of file GParticle.h.

References fPy.

Referenced by MINFast::GetNextTrack().

00075 {return fPy;}

Float_t GParticle::GetPz (  )  const [inline]

Definition at line 76 of file GParticle.h.

References fPz.

Referenced by MINFast::GetNextTrack().

00076 {return fPz;}

Float_t GParticle::GetTime ( void   )  const [inline]

Definition at line 92 of file GParticle.h.

References fTime.

Referenced by MINFast::GetNextTrack().

00092 {return fTime;}

const Text_t * GParticle::GetTitle (  )  const [virtual]

Definition at line 79 of file GParticle.cxx.

References fKF.

00080 {
00081 
00082 // Return title of this particle (PDG convention)
00083    static char name[20];
00084    sprintf(name,"GParticle %d",fKF);
00085    return name;
00086 }

Float_t GParticle::GetVx (  )  const [inline]

Definition at line 89 of file GParticle.h.

References fVx.

Referenced by MINFast::GetNextTrack().

00089 {return fVx;}

Float_t GParticle::GetVy (  )  const [inline]

Definition at line 90 of file GParticle.h.

References fVy.

Referenced by MINFast::GetNextTrack().

00090 {return fVy;}

Float_t GParticle::GetVz (  )  const [inline]

Definition at line 91 of file GParticle.h.

References fVz.

Referenced by MINFast::GetNextTrack().

00091 {return fVz;}

void GParticle::SetFirstChild ( const Int_t  firstchild  )  [inline]

Definition at line 99 of file GParticle.h.

References fFirstChild.

Referenced by MINFast::CleanParents().

00100                                                {fFirstChild=firstchild;}

void GParticle::SetKS ( Int_t  KS  )  [inline]

Definition at line 98 of file GParticle.h.

References fKS.

00098 {fKS=KS;}

void GParticle::SetLastChild ( const Int_t  lastchild  )  [inline]

Definition at line 101 of file GParticle.h.

References fLastChild.

Referenced by MINFast::CleanParents().

00102                                                  {fLastChild=lastchild;}

void GParticle::SetParent ( const Int_t  parent  )  [inline]

Definition at line 103 of file GParticle.h.

References fParent.

00103 {fParent=parent;}

void GParticle::SetProcessTime ( Float_t  cputime  )  [inline]

Definition at line 104 of file GParticle.h.

References fProcessTime.

Referenced by MINFast::GetNextTrack().

00105                                                  {fProcessTime=cputime;}


Member Data Documentation

Float_t GParticle::fEnergy [private]

Definition at line 37 of file GParticle.h.

Referenced by GetEnergy().

Int_t GParticle::fFirstChild [private]

Definition at line 31 of file GParticle.h.

Referenced by GetFirstChild(), and SetFirstChild().

Int_t GParticle::fKF [private]

Definition at line 29 of file GParticle.h.

Referenced by GetKF(), GetName(), and GetTitle().

Int_t GParticle::fKS [private]

Definition at line 28 of file GParticle.h.

Referenced by GetKS(), and SetKS().

Int_t GParticle::fLastChild [private]

Definition at line 32 of file GParticle.h.

Referenced by GetLastChild(), and SetLastChild().

Float_t GParticle::fLifeTime [private]

Definition at line 49 of file GParticle.h.

Referenced by GetLifeTime().

Float_t GParticle::fMass [private]

Definition at line 38 of file GParticle.h.

Referenced by GetMass().

char GParticle::fOrigin[11] [private]

Definition at line 52 of file GParticle.h.

Referenced by GetOrigin(), and GParticle().

Int_t GParticle::fParent [private]

Definition at line 30 of file GParticle.h.

Referenced by GetParent(), and SetParent().

Float_t GParticle::fPolx [private]

Definition at line 44 of file GParticle.h.

Referenced by GetPolx().

Float_t GParticle::fPoly [private]

Definition at line 45 of file GParticle.h.

Referenced by GetPoly().

Float_t GParticle::fPolz [private]

Definition at line 46 of file GParticle.h.

Referenced by GetPolz().

Float_t GParticle::fProcessTime [private]

Definition at line 50 of file GParticle.h.

Referenced by GetProcessTime(), and SetProcessTime().

Float_t GParticle::fPx [private]

Definition at line 34 of file GParticle.h.

Referenced by GetMomentum(), GetPT(), and GetPx().

Float_t GParticle::fPy [private]

Definition at line 35 of file GParticle.h.

Referenced by GetMomentum(), GetPT(), and GetPy().

Float_t GParticle::fPz [private]

Definition at line 36 of file GParticle.h.

Referenced by GetMomentum(), and GetPz().

Float_t GParticle::fTime [private]

Definition at line 48 of file GParticle.h.

Referenced by GetTime().

Float_t GParticle::fVx [private]

Definition at line 40 of file GParticle.h.

Referenced by GetVx().

Float_t GParticle::fVy [private]

Definition at line 41 of file GParticle.h.

Referenced by GetVy().

Float_t GParticle::fVz [private]

Definition at line 42 of file GParticle.h.

Referenced by GetVz().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1