00001
00017 #ifndef GFXTRACK_H
00018 #define GFXTRACK_H
00019
00020 #include <TObject.h>
00021
00022 class CandTrackHandle;
00023 class GfxTrackList;
00024
00025 class GfxTrack : public TObject
00026 {
00027
00028 public:
00029
00030 GfxTrack(const CandTrackHandle& cth, GfxTrackList& parent);
00031 GfxTrack(const GfxTrack& rhs);
00032
00033 ~GfxTrack();
00034
00035
00036 void Configure();
00037
00038 void ExecuteEvent(int event, int px, int py);
00039 void Paint(Option_t* option="");
00040 int DistancetoPrimitive(int px, int py);
00041
00042 const CandTrackHandle& GetTrack() { return fTrack; }
00043
00044 private:
00045
00046 GfxTrack &operator=(const GfxTrack&);
00047
00048 int GetCandTrackData(float *u, float *v, float *z,
00049 float* q, float *t,
00050 int *strip_number, int *plane_number);
00051 bool BuildRealImp();
00052 bool BuildDiscreteImp();
00053
00054 const CandTrackHandle& fTrack;
00055 GfxTrackList& fParent;
00056 TObject* fImp;
00057
00058 ClassDef(GfxTrack,0)
00059 };
00060
00061 #endif // GFXTRACK_H