ROOT logo
ROOT » MONTECARLO » EG » TPrimary

class TPrimary: public TObject, public TAttLine, public TAtt3D


 old version of a  dynamic particle class created by event generators.
 This class is now obsolete. Use TParticle instead.

Function Members (Methods)

public:
TPrimary()
TPrimary(const TPrimary&)
TPrimary(Int_t part, Int_t first, Int_t second, Int_t gener, Double_t px, Double_t py, Double_t pz, Double_t etot, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t timend, const char* type = "")
virtual~TPrimary()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
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 = "")MENU
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() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) 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
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Int_tGetFirstMother() const
virtual Int_tGetGeneration() const
virtual const char*TObject::GetIconName() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual const char*GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const TAttParticle*GetParticle() const
virtual Int_tGetSecondMother() const
virtual Double_tGetTime() const
virtual Double_tGetTimeEnd() const
virtual const char*GetTitle() const
virtual Double_tGetTotalEnergy() const
virtual const char*GetType() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_tGetXMomentum() const
virtual Double_tGetXPosition() const
virtual Double_tGetYMomentum() const
virtual Double_tGetYPosition() const
virtual Double_tGetZMomentum() const
virtual Double_tGetZPosition() 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() constMENU
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
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()
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
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)
TPrimary&operator=(const TPrimary&)
virtual voidPaint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
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)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidSizeof3D() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
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

protected:
Double_tfEtotTotal energy in GeV
Int_tfFirstMotherIndex of the first mother particle
Int_tfGenerationGeneration flag: last gen. (0) or not (1) or ghost (2)
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Int_tfPartParticle id produced
Double_tfPxMomentum in x direction in GeV/c
Double_tfPyMomentum in y direction in GeV/c
Double_tfPzMomentum in z direction in GeV/c
Int_tfSecondMotherIndex of the second mother particle(if any)
Double_tfTimeTime of particle production in user units
Double_tfTimeEndTime of particle destruction (always in the pp-cms!)
TStringfTypeIndicator of primary type
Double_tfVxProduction vertex x position in user units
Double_tfVyProduction vertex y position in user units
Double_tfVzProduction vertex z position in user units

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPrimary()
  Primary vertex particle default constructor

TPrimary(Int_t part, Int_t first, Int_t second, Int_t gener, Double_t px, Double_t py, Double_t pz, Double_t etot, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t timend, const char* type = "")
  TPrimary vertex particle normal constructor

~TPrimary()
   Primaray vertex particle default 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 event, Int_t px, Int_t py)
-*-*-*-*-*-*-*Execute action corresponding to one event
*-*                  =========================================
const char * GetName() const
return name of primary particle
const TAttParticle * GetParticle() const
  returning a pointer to the particle attributes

const char * GetTitle() const
return title of primary particle
void Paint(Option_t* option = "")
  Paint a primary track

void Print(Option_t* option = "") const
  Print the internals of the primary vertex particle

void Sizeof3D() const
Return total X3D size of this primary*-
*-*        =====================================
TPrimary()
Int_t GetFirstMother() const
{ return fFirstMother; }
Int_t GetSecondMother() const
{ return fSecondMother; }
Int_t GetGeneration() const
{ return fGeneration; }
Double_t GetXMomentum() const
{ return fPx; }
Double_t GetYMomentum() const
{ return fPy; }
Double_t GetZMomentum() const
{ return fPz; }
Double_t GetTotalEnergy() const
{ return fEtot; }
Double_t GetXPosition() const
{ return fVx; }
Double_t GetYPosition() const
{ return fVy; }
Double_t GetZPosition() const
{ return fVz; }
Double_t GetTime() const
{ return fTime; }
Double_t GetTimeEnd() const
{ return fTimeEnd; }
const char * GetType() const
{ return fType.Data(); }