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

GParticle.cxx

Go to the documentation of this file.
00001 
00002 // $Id: GParticle.cxx,v 1.3 2000/11/13 23:48:28 gmieg Exp $
00003 //
00004 // GParticle.cxx
00005 //
00006 // Begin_Html<img src="../../pedestrians.gif" align=center>
00007 // <a href="../source_warning.html">Warning for beginners</a>.<br> 
00008 //
00009 // ROOT Particle table.  Taken from Alice Experiment.
00010 //
00011 // Author:  G. Irwin 9/1998
00012 //
00013 // Also see <a href="../../root_crib/index.html">The ROOT Crib</a> and 
00014 // <a href="../MINF_Classes.html"> MINF_Classes</a> (part of
00015 // <a href="../index.html">The MINOS Class User Guide</a>)End_Html
00017 
00018 #include "MINF_Classes/GParticle.h"
00019 #include "MINF_Classes/MINFAttParticle.h"
00020 
00021 ClassImp(GParticle)
00022 
00023 //______________________________________________________________________
00024 GParticle::GParticle()
00025 {
00026 }
00027 
00028 //______________________________________________________________________
00029 GParticle::GParticle(const Int_t kS, const Int_t kF, const Int_t parent,
00030                      const Int_t firstchild, const Int_t lastchild,
00031                      const Float_t px, const Float_t py,
00032                      const Float_t pz,
00033                      const Float_t energy, const Float_t mass,
00034                      const Float_t vx, const Float_t vy,
00035                      const Float_t vz, 
00036                      const Float_t polx, const Float_t poly,
00037                      const Float_t polz,
00038                      const Float_t time, const Float_t lifetime,
00039                      const char *Origin) :
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 }
00064 
00065 //______________________________________________________________________
00066 GParticle::~GParticle()
00067 {
00068 }
00069 
00070 //______________________________________________________________________
00071 const Text_t *GParticle::GetName() const
00072 {
00073 
00074 // Return name of this particle (PDG convention)
00075    return (MINFAttParticle::GetParticle(fKF))->GetName();
00076 }
00077 
00078 //______________________________________________________________________
00079 const Text_t *GParticle::GetTitle() const
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 }

Generated on Mon Feb 15 11:06:46 2010 for loon by  doxygen 1.3.9.1