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

sim::Particle Class Reference

#include <Particle.h>

List of all members.

Public Member Functions

 Particle ()
 Particle (int id, TParticle *particle)
 ~Particle ()
void SetTrackId (int trackid)
void SetPdgCode (int pdg)
void SetMother (int i, int id)
void SetVertex (TLorentzVector v)
void SetVertex (double x, double y, double z, double t)
void SetMomentum (TLorentzVector p)
void SetMomentum (double px, double py, double pz, double e)
void SetMass (double mass)
int TrackId () const
int PdgCode () const
int Mother (int i) const
TLorentzVector Vtx ()
double Vx () const
double Vy () const
double Vz () const
double T () const
TLorentzVector P ()
double Px () const
double Py () const
double Pz () const
double E () const
double Mass ()
 ClassDef (Particle, 1)

Public Attributes

int fTrackId
 TrackId.
int fPdgCode
 PDF code.
int fMother [2]
 Mother.
TLorentzVector fVtx
 Start point.
TLorentzVector fP
 4-momentum
double fMass
 Mass.


Constructor & Destructor Documentation

Particle::Particle  ) 
 

Definition at line 5 of file Particle.cxx.

00006 { }

Particle::Particle int  id,
TParticle *  particle
 

Definition at line 10 of file Particle.cxx.

References SetMass(), SetMomentum(), SetMother(), SetPdgCode(), SetTrackId(), and SetVertex().

00011 {
00012   this->SetTrackId(id);
00013 
00014   this->SetPdgCode(particle->GetPdgCode());
00015 
00016   for(int i=0; i<2; i++) this->SetMother(i,particle->GetMother(i));
00017 
00018   this->SetVertex(particle->Vx(),particle->Vy(),particle->Vz(),particle->T());
00019 
00020   this->SetMomentum(particle->Px(),particle->Py(),particle->Pz(),particle->Energy());
00021 
00022   this->SetMass(particle->GetMass());
00023 }

Particle::~Particle  ) 
 

Definition at line 27 of file Particle.cxx.

00027 { }


Member Function Documentation

sim::Particle::ClassDef Particle  ,
 

double sim::Particle::E  )  const [inline]
 

Definition at line 54 of file Particle.h.

00054 { return fP.E(); }

double sim::Particle::Mass  )  [inline]
 

Definition at line 56 of file Particle.h.

00056 { return fMass; }

int sim::Particle::Mother int  i  )  const [inline]
 

Definition at line 39 of file Particle.h.

00039                             {
00040       if(i<2 && i>=0) return fMother[i];
00041       else return -1; 
00042     }

TLorentzVector sim::Particle::P  )  [inline]
 

Definition at line 50 of file Particle.h.

00050 { return fP; }

int sim::Particle::PdgCode  )  const [inline]
 

Definition at line 38 of file Particle.h.

00038 { return fPdgCode; }

double sim::Particle::Px  )  const [inline]
 

Definition at line 51 of file Particle.h.

00051 { return fP.Px(); }

double sim::Particle::Py  )  const [inline]
 

Definition at line 52 of file Particle.h.

00052 { return fP.Py(); }

double sim::Particle::Pz  )  const [inline]
 

Definition at line 53 of file Particle.h.

00053 { return fP.Pz(); }

void sim::Particle::SetMass double  mass  )  [inline]
 

Definition at line 34 of file Particle.h.

Referenced by Particle().

00034 { fMass = mass; }

void sim::Particle::SetMomentum double  px,
double  py,
double  pz,
double  e
[inline]
 

Definition at line 31 of file Particle.h.

00031                                                                 {
00032       fP.SetPxPyPzE(px,py,pz,e); }

void sim::Particle::SetMomentum TLorentzVector  p  )  [inline]
 

Definition at line 30 of file Particle.h.

Referenced by Particle().

00030 { fP = p; }

void sim::Particle::SetMother int  i,
int  id
[inline]
 

Definition at line 24 of file Particle.h.

Referenced by Particle().

00024 { if(i>=0 && i<2) fMother[i] = id;}

void sim::Particle::SetPdgCode int  pdg  )  [inline]
 

Definition at line 23 of file Particle.h.

Referenced by Particle().

00023 { fPdgCode = pdg; }

void sim::Particle::SetTrackId int  trackid  )  [inline]
 

Definition at line 22 of file Particle.h.

Referenced by Particle().

00022 { fTrackId = trackid; }

void sim::Particle::SetVertex double  x,
double  y,
double  z,
double  t
[inline]
 

Definition at line 27 of file Particle.h.

00027                                                            {
00028       fVtx.SetXYZT(x,y,z,t); }

void sim::Particle::SetVertex TLorentzVector  v  )  [inline]
 

Definition at line 26 of file Particle.h.

Referenced by Particle().

00026 { fVtx = v; }

double sim::Particle::T  )  const [inline]
 

Definition at line 48 of file Particle.h.

00048 { return fVtx.T(); }

int sim::Particle::TrackId  )  const [inline]
 

Definition at line 37 of file Particle.h.

00037 { return fTrackId; }

TLorentzVector sim::Particle::Vtx  )  [inline]
 

Definition at line 44 of file Particle.h.

00044 { return fVtx; }

double sim::Particle::Vx  )  const [inline]
 

Definition at line 45 of file Particle.h.

00045 { return fVtx.X(); }

double sim::Particle::Vy  )  const [inline]
 

Definition at line 46 of file Particle.h.

00046 { return fVtx.Y(); }

double sim::Particle::Vz  )  const [inline]
 

Definition at line 47 of file Particle.h.

00047 { return fVtx.Z(); }


Member Data Documentation

double sim::Particle::fMass
 

Mass.

Definition at line 64 of file Particle.h.

int sim::Particle::fMother[2]
 

Mother.

Definition at line 61 of file Particle.h.

TLorentzVector sim::Particle::fP
 

4-momentum

Definition at line 63 of file Particle.h.

int sim::Particle::fPdgCode
 

PDF code.

Definition at line 60 of file Particle.h.

int sim::Particle::fTrackId
 

TrackId.

Definition at line 59 of file Particle.h.

TLorentzVector sim::Particle::fVtx
 

Start point.

Definition at line 62 of file Particle.h.


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 04:45:34 2009 for NOvA Offline by  doxygen 1.3.9.1