library: libEG
#include "TParticle.h"

TParticle


class description - header file - source file - inheritance tree (.pdf)

class TParticle : public TObject, public TAttLine, public TAtt3D

Inheritance Chart:
TObject
TAttLine
TAtt3D
<-
TParticle

    public:
TParticle() 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) 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(const TParticle& part) virtual ~TParticle() Int_t Beauty() Int_t Charm() static TClass* Class() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) Double_t Energy() const Double_t Eta() const virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) Double_t GetCalcMass() const Int_t GetDaughter(Int_t i) const Int_t GetFirstDaughter() const Int_t GetFirstMother() const Int_t GetLastDaughter() const Double_t GetMass() Int_t GetMother(Int_t i) const virtual const char* GetName() const Int_t GetNDaughters() const TParticlePDG* GetPDG(Int_t mode = 0) Int_t GetPdgCode() const void GetPolarisation(TVector3& v) Int_t GetSecondMother() const Int_t GetStatusCode() const virtual const char* GetTitle() const Float_t GetWeight() const virtual TClass* IsA() const Bool_t IsPrimary() const void Momentum(TLorentzVector& v) const TParticle& operator=(const TParticle&) Double_t P() const virtual void Paint(Option_t* option = "") Double_t Phi() const virtual void Print(Option_t* option = "") const void ProductionVertex(TLorentzVector& v) const Double_t Pt() const Double_t Px() const Double_t Py() const Double_t Pz() const Double_t R() const Double_t Rho() const void SetCalcMass(Double_t mass) void SetDaughter(int i, int code) void SetFirstDaughter(int code) void SetFirstMother(int code) void SetLastDaughter(int code) void SetLastMother(int code) void SetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e) void SetMomentum(const TLorentzVector& p) void SetMother(int i, int code) void SetPdgCode(Int_t pdg) void SetPolarisation(Double_t polx, Double_t poly, Double_t polz) void SetPolarisation(const TVector3& v) void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t) void SetProductionVertex(const TLorentzVector& v) void SetStatusCode(int status) void SetWeight(Float_t weight = 1) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() const Int_t Strangeness() virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t T() const Double_t Theta() const Double_t Vx() const Double_t Vy() const Double_t Vz() const

Data Members


    protected:
Int_t fPdgCode PDG code of the particle Int_t fStatusCode generation status code Int_t fMother[2] Indices of the mother particles Int_t fDaughter[2] Indices of the daughter particles Float_t fWeight particle weight Double_t fCalcMass Calculated mass Double_t fPx x component of momentum Double_t fPy y component of momentum Double_t fPz z component of momentum Double_t fE Energy Double_t fVx x of production vertex Double_t fVy y of production vertex Double_t fVz z of production vertex Double_t fVt t of production vertex Double_t fPolarTheta Polar angle of polarisation Double_t fPolarPhi azymutal angle of polarisation TParticlePDG* fParticlePDG ! reference to the particle record in PDG database

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()
void Momentum(TLorentzVector &v)
void ProductionVertex(TLorentzVector &v)
Double_t pmom = P()
void SetFirstDaughter(int code)
void SetDaughter(int i, int code)
void SetLastDaughter(int code)
void SetCalcMass(Double_t mass)
void SetPolarisation(Double_t polx, Double_t poly, Double_t polz)
void SetStatusCode(int status)
void SetWeight(Float_t weight = 1)
void SetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e)
void SetMomentum(const TLorentzVector& p)
void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t)
void SetProductionVertex(const TLorentzVector& v)

Author: Rene Brun, Federico Carminati 26/04/99
Last update: root/eg:$Name: $:$Id: TParticle.cxx,v 1.16 2006/05/24 14:40:29 brun Exp $


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.