EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairVTrack.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairVTrack.h
1 
8 #ifndef FAIRVTRACK_H
9 #define FAIRVTRACK_H
10 #include "TPolyLine3D.h"
11 #include "TGeoTrack.h"
12 
13 class TParticle;
14 class TGeoTrack;
15 class FairVTrack : public TPolyLine3D
16 {
17  public:
18  FairVTrack();
19  FairVTrack(const FairVTrack& pts);
20  FairVTrack(Int_t nhits);
21  virtual ~FairVTrack();
22  void SetTrack(TGeoTrack* Tr);
23  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
24  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
25  Int_t GetIndex() const {return fIndex;}
26  virtual const Text_t* GetName() const;
27  virtual void InspectParticle() const; // *MENU*
28  virtual void DumpParticle() const; // *MENU*
29  virtual Text_t* GetObjectInfo(Int_t px, Int_t py) const;
30  virtual void SetParticle(TParticle* p);
31  TParticle* GetParticle() const;
33  {pts.Copy(*this); return (*this);}
34  protected:
35  void Copy(TObject& pts) const;
36  Int_t Color(Int_t pdg);
37  TGeoTrack* fTrack;
38  Int_t fIndex;
39  TParticle* fParticle;
40  ClassDef(FairVTrack,1) //Class to Tracks (Also in OpenGL viewer of ROOT)
41 };
42 #endif
43 
44 
45 
46 
47