4 #ifdef CATRACKER_DISPLAY 15 class PndCAPerformance;
17 class PndCALocalMCPoint;
27 #include "TPolyLine.h" 43 class PndCADisplayTmpHit;
45 static PndCADisplay &Instance();
49 virtual ~PndCADisplay();
59 int GetColor(
int i)
const;
60 int GetColorZ(
double z)
const;
61 int GetColorY(
double y)
const;
62 int GetColorK(
double k)
const;
63 int GetTrackMC(
const PndCADisplayTmpHit *vHits,
int NHits);
68 void DrawSlice(PndCATracker *slice,
bool DrawRows = 0,
bool DrawGrid = 1);
70 void DrawArc(
float x,
float y,
float r,
int Start = 1, Size_t width = 1);
71 void DrawPoint(
float x,
float y,
float z,
int Start = 1, Size_t width = 1);
73 void DrawGBPoint(
float x,
float y,
float z,
int Start = 1, Size_t width = 1);
74 void DrawGBPoint(
float x,
float y,
float z,
float angle = 0,
int Start = 1, Size_t width = 1);
75 void DrawSliceOutTrackParam(
int itr,
int color, Size_t width);
76 void DrawSliceOutTrack1(
int itr,
int color, Size_t width);
77 void DrawHelix(
float p0,
float c,
float z,
float zStart,
float z0,
float xc,
float yc,
float r,
float b,
int color, Size_t width);
78 void DrawParticleGlobal(
float *param,
float q,
float tStart,
float tEnd,
float b,
int color = kOrange, Size_t width = 1);
79 void DrawParticleGlobal(
float *param,
float q,
float n[4],
float b,
int color = kOrange, Size_t width = 1);
80 void DrawGBLine(
float x,
float y,
float z,
float x2,
float y2,
float z2,
int Start = 1, Size_t width = 1,
int projection = -1);
82 bool DrawTrack(
PndCATrackParam t,
double Alpha,
const PndCADisplayTmpHit *vHits,
int NHits,
int color = -1, Size_t width = -1,
bool pPoint = 0);
84 void DrawGBTrack(
int itr,
int color = -1,
int width = -1);
85 void DrawRecoTrack(
int itr,
int color = -1,
int width = -1);
86 void DrawMCTrack(
int itr,
int color = -1,
int width = -1);
88 void HitToGlobal(
const PndCAHit &hit,
float &x,
float &y,
float &z);
89 void HitToGlobal(
const PndCAHitV &hit,
int iV,
float &x,
float &y,
float &z);
93 void DrawPVHisto(
const vector<float> &pvHist,
const PndCAParam ¶m);
97 void DrawGBTrackFast(
const PndCAGBTracker &tracker,
int itr,
int color = -1);
98 bool DrawTracklet(
PndCATrackParam &track,
const int *hitstore,
int color = -1,
int width = -1,
bool pPoint = 0);
102 void DrawGBHit(
const PndCAGBTracker &tracker,
int iHit,
int color = -1, Size_t width = -1);
103 void DrawGBHits(
const PndCAGBTracker &tracker,
int color = -1, Size_t width = -1,
int hitsType = -1);
107 void SaveCanvasToFile(TString fileName);
109 TPad *CanvasYX() {
return fYX; }
110 TPad *CanvasZX() {
return fZX; }
114 TPad *fYX, *fZX, *fZR;
115 TCanvas *fFwdMvdCanvas;
116 TPad *fFwdMvdZY, *fFwdMvdZX, *fFwdMvdZR;
119 PndCAPerformance *fPerf;
120 double fZMin, fZMax, fYMin, fYMax;
121 double fRInnerMin, fRInnerMax, fROuterMin, fROuterMax, fTPCZMin, fTPCZMax;
135 PndCADisplay(
const PndCADisplay &);
136 PndCADisplay &operator=(
const PndCADisplay &);
139 #endif // CATRACKER_DISPLAY