ROOT logo
ROOT » GEOM » GEOM » TVirtualGeoTrack

class TVirtualGeoTrack: public TObject, public TGeoAtt, public TAttLine, public TAttMarker

 TVirtualGeoTrack - Base class for user-defined tracks attached to a geometry.
             Tracks are 3D objects made of points and they store a
             pointer to a TParticle. The geometry manager holds a list
             of all tracks that will be deleted on destruction of
             gGeoManager.


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TVirtualGeoTrack()
voidTObject::AbstractMethod(const char* method) const
virtual Int_tAddDaughter(TVirtualGeoTrack* other)
virtual TVirtualGeoTrack*AddDaughter(Int_t id, Int_t pdgcode, TObject* particle = 0)
virtual voidAddPoint(Double_t x, Double_t y, Double_t z, Double_t t)
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_tTObject::DistancetoPrimitive(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 voidTObject::ExecuteEvent(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 TVirtualGeoTrack*FindTrackWithId(Int_t id) const
TVirtualGeoTrack*GetDaughter(Int_t index) const
virtual Int_tGetDaughterId(Int_t index) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const Double_t*GetFirstPoint() const
virtual const char*TObject::GetIconName() const
Int_tGetId() const
const Double_t*GetLastPoint() const
Int_tGetLastPoint(Double_t& x, Double_t& y, Double_t& z, Double_t& t) const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
TVirtualGeoTrack*GetMother() const
TObject*GetMotherParticle() const
virtual const char*GetName() const
Int_tGetNdaughters() const
virtual Int_tGetNpoints() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tGetParentId() const
TObject*GetParticle() const
Int_tGetPDG() const
virtual const Double_t*GetPoint(Int_t i) const
virtual Int_tGetPoint(Int_t i, Double_t& x, Double_t& y, Double_t& z, Double_t& t) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
Bool_tHasPoints() 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
Bool_tTGeoAtt::IsActive() const
Bool_tTGeoAtt::IsActiveDaughters() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsInTimeRange() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTGeoAtt::IsVisBranch() const
Bool_tTGeoAtt::IsVisContainers() const
Bool_tTGeoAtt::IsVisDaughters() const
Bool_tTGeoAtt::IsVisible() const
Bool_tTGeoAtt::IsVisLeaves() const
Bool_tTGeoAtt::IsVisOnly() const
Bool_tTGeoAtt::IsVisRaytrace() const
Bool_tTGeoAtt::IsVisStreamed() const
Bool_tTGeoAtt::IsVisTouched() 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)
virtual voidPaint(Option_t* option = "")
virtual voidPaintCollect(Double_t, Double_t*)
virtual voidPaintCollectTrack(Double_t, Double_t*)
virtual voidPaintTrack(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTGeoAtt::ResetAttBit(UInt_t f)
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual voidResetTrack()
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 voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTGeoAtt::SetActiveDaughters(Bool_t flag = kTRUE)
voidTGeoAtt::SetActivity(Bool_t flag = kTRUE)
voidTGeoAtt::SetAttBit(UInt_t f)
voidTGeoAtt::SetAttBit(UInt_t f, Bool_t set)
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)
voidSetId(Int_t id)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t tcolor = 1)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
voidSetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
voidTGeoAtt::SetOptimization(Option_t* option)
voidSetParent(TVirtualGeoTrack* parent)
virtual voidSetParticle(TObject* particle)
virtual voidSetPDG(Int_t pdgcode)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidTGeoAtt::SetVisBranch()
virtual voidTGeoAtt::SetVisContainers(Bool_t flag = kTRUE)
voidTGeoAtt::SetVisDaughters(Bool_t vis = kTRUE)
virtual voidTGeoAtt::SetVisibility(Bool_t vis = kTRUE)
virtual voidTGeoAtt::SetVisLeaves(Bool_t flag = kTRUE)
virtual voidTGeoAtt::SetVisOnly(Bool_t flag = kTRUE)
voidTGeoAtt::SetVisRaytrace(Bool_t flag = kTRUE)
voidTGeoAtt::SetVisStreamed(Bool_t vis = kTRUE)
voidTGeoAtt::SetVisTouched(Bool_t vis = kTRUE)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTGeoAtt::TestAttBit(UInt_t f) 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()
TVirtualGeoTrack&operator=(const TVirtualGeoTrack&)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum TGeoAtt::[unnamed] { kBitMask
};
enum TGeoAtt::EGeoVisibilityAtt { kVisOverride
kVisNone
kVisThis
kVisDaughters
kVisOneLevel
kVisStreamed
kVisTouched
kVisOnScreen
kVisContainers
kVisOnly
kVisBranch
kVisRaytrace
};
enum TGeoAtt::EGeoActivityAtt { kActOverride
kActNone
kActThis
kActDaughters
};
enum TGeoAtt::EGeoOptimizationAtt { kUseBoundingBox
kUseVoxels
kUseGsord
};
enum TGeoAtt::EGeoSavePrimitiveAtt { kSavePrimitiveAtt
kSaveNodesAtt
};
protected:
UInt_tTGeoAtt::fGeoAttoption flags
Int_tfIdtrack id
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tfPDGtrack pdg code
TVirtualGeoTrack*fParentid of parent
TObject*fParticleparticle for this track
TObjArray*fTracksdaughter tracks

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TVirtualGeoTrack& operator=(const TVirtualGeoTrack& )
 Assignment operator. NOT TO BE CALLED.
~TVirtualGeoTrack()
 Destructor.
TVirtualGeoTrack * FindTrackWithId(Int_t id) const
 Recursively search through this track for a daughter
 particle (at any depth) with the specified id
const char * GetName() const
 Get the PDG name.
Bool_t IsInTimeRange() const
 True if track TOF range overlaps with time interval of TGeoManager
void SetName(const char* name)
 Set a default name for this track.
TVirtualGeoTrack * AddDaughter(Int_t id, Int_t pdgcode, TObject* particle = 0)
Int_t AddDaughter(TVirtualGeoTrack* other)
void AddPoint(Double_t x, Double_t y, Double_t z, Double_t t)
Int_t GetId() const
{return fId;}
Int_t GetDaughterId(Int_t index) const
{return GetDaughter(index)->GetId();}
TVirtualGeoTrack * GetDaughter(Int_t index) const
{return (TVirtualGeoTrack*)fTracks->At(index);}
TVirtualGeoTrack * GetMother() const
{return fParent;}
TObject * GetMotherParticle() const
{return (fParent)?fParent->GetParticle():0;}
Int_t GetNdaughters() const
{return (fTracks)?fTracks->GetEntriesFast():0;}
Int_t GetNpoints() const
Int_t GetParentId() const
{return (fParent)?fParent->GetId():-1;}
TObject * GetParticle() const
{return fParticle;}
Int_t GetPDG() const
{return fPDG;}
Int_t GetLastPoint(Double_t& x, Double_t& y, Double_t& z, Double_t& t) const
{return GetPoint(GetNpoints()-1,x,y,z,t);}
const Double_t * GetFirstPoint() const
{return GetPoint(0);}
const Double_t * GetLastPoint() const
{return GetPoint(GetNpoints()-1);}
Int_t GetPoint(Int_t i, Double_t& x, Double_t& y, Double_t& z, Double_t& t) const
const Double_t * GetPoint(Int_t i) const
Bool_t HasPoints() const
{return (GetNpoints()==0)?kFALSE:kTRUE;}
void Paint(Option_t* option = "")
void PaintCollect(Double_t , Double_t* )
{;}
void PaintCollectTrack(Double_t , Double_t* )
{;}
void PaintTrack(Option_t* option = "")
void ResetTrack()
void SetParticle(TObject* particle)
{fParticle=particle;}
void SetParent(TVirtualGeoTrack* parent)
{fParent = parent;}
void SetId(Int_t id)
{fId = id;}
void SetPDG(Int_t pdgcode)
{fPDG = pdgcode;}