library: libEG
#include "TParticle.h"

TParticle


class description - header file - source file
viewCVS header - viewCVS source

class TParticle: public TObject, public TAttLine, public TAtt3D

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TParticle()
TParticle(const TParticle& part)
TParticle(Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, const TLorentzVector& p, const TLorentzVector& v)
TParticle(Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, Double_t px, Double_t py, Double_t pz, Double_t etot, Double_t vx, Double_t vy, Double_t vz, Double_t time)
virtual~TParticle()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
Int_tBeauty()
virtual voidTObject::Browse(TBrowser* b)
Int_tCharm()
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
Double_tEnergy() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
Double_tEta() const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Double_tGetCalcMass() const
Int_tGetDaughter(Int_t i) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetFirstDaughter() const
Int_tGetFirstMother() const
virtual const char*TObject::GetIconName() const
Int_tGetLastDaughter() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
Double_tGetMass()
Int_tGetMother(Int_t i) const
virtual const char*GetName() const
Int_tGetNDaughters() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TParticlePDG*GetPDG(Int_t mode = 0)
Int_tGetPdgCode() const
voidGetPolarisation(TVector3& v)
Int_tGetSecondMother() const
Int_tGetStatusCode() const
virtual const char*GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Float_tGetWeight() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsPrimary() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTAttLine::Modify()
voidMomentum(TLorentzVector& v) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TParticle&operator=(const TParticle&)
Double_tP() const
virtual voidPaint(Option_t* option = "")
Double_tPhi() const
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
voidProductionVertex(TLorentzVector& v) const
Double_tPt() const
Double_tPx() const
Double_tPy() const
Double_tPz() const
Double_tR() const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
Double_tRho() const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCalcMass(Double_t mass)
voidSetDaughter(int i, int code)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
voidSetFirstDaughter(int code)
voidSetFirstMother(int code)
voidSetLastDaughter(int code)
voidSetLastMother(int code)
virtual voidTAttLine::SetLineAttributes()
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
voidSetMomentum(const TLorentzVector& p)
voidSetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e)
voidSetMother(int i, int code)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPdgCode(Int_t pdg)
voidSetPolarisation(const TVector3& v)
voidSetPolarisation(Double_t polx, Double_t poly, Double_t polz)
voidSetProductionVertex(const TLorentzVector& v)
voidSetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t)
voidSetStatusCode(int status)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetWeight(Float_t weight = 1)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidSizeof3D() const
Int_tStrangeness()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Double_tT() const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Double_tTheta() const
virtual voidTObject::UseCurrentStyle()
Double_tVx() const
Double_tVy() const
Double_tVz() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tfPdgCodePDG code of the particle
Int_tfStatusCodegeneration status code
Int_tfMother[2]Indices of the mother particles
Int_tfDaughter[2]Indices of the daughter particles
Float_tfWeightparticle weight
Double_tfCalcMassCalculated mass
Double_tfPxx component of momentum
Double_tfPyy component of momentum
Double_tfPzz component of momentum
Double_tfEEnergy
Double_tfVxx of production vertex
Double_tfVyy of production vertex
Double_tfVzz of production vertex
Double_tfVtt of production vertex
Double_tfPolarThetaPolar angle of polarisation
Double_tfPolarPhiazymutal angle of polarisation
TParticlePDG*fParticlePDG! reference to the particle record in PDG database
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width

Class Description

TParticle()
default constructor
TParticle(Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, Double_t px, Double_t py, Double_t pz, Double_t etot, Double_t vx, Double_t vy, Double_t vz, Double_t time)
constructor
TParticle(Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, const TLorentzVector &p, const TLorentzVector &v)
constructor
TParticle(const TParticle &p)
 copy constructor
TParticle& operator=(const TParticle &p)
 Equal operator
~TParticle()
destructor
Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*-*Compute distance from point px,py to a primary track*-*-*-*
*-*            ====================================================
*-*
*-*  Compute the closest distance of approach from point px,py to each segment
*-*  of a track.
*-*  The distance is computed in pixels units.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void ExecuteEvent(Int_t, Int_t, Int_t)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
const char* GetName()
return particle name
TParticlePDG* GetPDG(Int_t mode)
 returns a pointer to the TParticlePDG object using the pdgcode
 if mode == 0 (default) always get a fresh value for the pointer.
 if mode != 0 this function returns directly the previously
              computed pointer from a previous call
 One can use mode=1 (faster) when the TParticle object is not part of a
 TClonesArray used in split mode in a Root TTree.
void GetPolarisation(TVector3 &v)
return particle polarisation
const char * GetTitle()
return particle title
void Paint(Option_t *option)
  Paint a primary track

void Print(Option_t *)
  Print the internals of the primary vertex particle

TParticlePDG* pdg = ((TParticle*)this)->GetPDG();
void SetPdgCode(Int_t pdg)
change the PDG code for this particle
Get a new pointer to a TParticlePDG from TDatabasePDG
Recompute the mass
void SetPolarisation(Double_t polx, Double_t poly, Double_t polz)
set particle polarisation
void Sizeof3D()
*-*-*-*-*-*Return total X3D size of this primary*-*-*-*-*-*-*
*-*        =====================================
void Streamer(TBuffer &R__b)
 Stream an object of class TParticle.
Int_t GetFirstDaughter()
{ return fDaughter[0]; }
void Momentum(TLorentzVector &v)
{ v.SetPxPyPzE(fPx,fPy,fPz,fE); }
void ProductionVertex(TLorentzVector &v)
{ v.SetXYZT(fVx,fVy,fVz,fVt); }
Double_t pmom = P()
void SetFirstDaughter(int code)
{ fDaughter[0] = code ; }
void SetDaughter(int i, int code)
{ fDaughter[i] = code ; }
void SetLastDaughter(int code)
{ fDaughter[1] = code ; }
void SetCalcMass(Double_t mass)
{ fCalcMass=mass;}
void SetPolarisation(Double_t polx, Double_t poly, Double_t polz)
void SetStatusCode(int status)
{fStatusCode = status;}
void SetWeight(Float_t weight = 1)
{fWeight = weight; }
void SetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e)
{fPx=px; fPy=py; fPz=pz; fE=e;}
void SetMomentum(const TLorentzVector& p)
{SetMomentum(p.Px(),p.Py(),p.Pz(),p.Energy());}
void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t)
{fVx=vx; fVy=vy; fVz=vz; fVt=t;}
void SetProductionVertex(const TLorentzVector& v)
{SetProductionVertex(v.X(),v.Y(),v.Z(),v.T());}

Author: Rene Brun, Federico Carminati 26/04/99
Last update: root/eg:$Name: $:$Id: TParticle.cxx,v 1.17 2006/08/24 16:31:21 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.