4 #ifdef CATRACKER_DISPLAY
15 class PndCAPerformance;
17 class PndCALocalMCPoint;
27 #include "TPolyLine.h"
46 class PndCADisplayTmpHit;
48 static PndCADisplay &Instance();
52 virtual ~PndCADisplay();
62 int GetColor(
int i )
const;
63 int GetColorZ(
double z )
const ;
64 int GetColorY(
double y )
const ;
65 int GetColorK(
double k )
const ;
66 int GetTrackMC(
const PndCADisplayTmpHit *vHits,
int NHits );
72 void DrawSlice( PndCATracker *slice,
bool DrawRows = 0,
bool DrawGrid = 1 );
74 void DrawArc(
float x,
float y,
float r,
int Start = 1, Size_t width = 1 );
75 void DrawPoint(
float x,
float y,
float z,
int Start = 1, Size_t width = 1 );
77 void DrawGBPoint(
float x,
float y,
float z,
int Start = 1, Size_t width = 1 );
78 void DrawGBPoint(
float x,
float y,
float z,
float angle = 0,
int Start = 1, Size_t width = 1 );
79 void DrawSliceOutTrackParam(
int itr,
int color, Size_t width );
80 void DrawSliceOutTrack1(
int itr,
int color, Size_t width );
81 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);
82 void DrawParticleGlobal(
float *param,
float q,
float tStart,
float tEnd,
float b,
int color=kOrange, Size_t width = 1);
83 void DrawParticleGlobal(
float *param,
float q,
float n[4],
float b,
int color=kOrange, Size_t width = 1);
84 void DrawGBLine(
float x,
float y,
float z,
float x2,
float y2,
float z2,
int Start=1, Size_t width=1,
int projection = -1 );
86 bool DrawTrack(
PndCATrackParam t,
double Alpha,
const PndCADisplayTmpHit *vHits,
87 int NHits,
int color = -1, Size_t width = -1,
bool pPoint = 0 );
89 void DrawGBTrack(
int itr,
int color = -1,
int width = -1 );
90 void DrawRecoTrack(
int itr,
int color = -1,
int width = -1 );
91 void DrawMCTrack(
int itr,
int color = -1,
int width = -1 );
93 void HitToGlobal(
const PndCAHit&
hit,
float&
x,
float&
y,
float &
z );
94 void HitToGlobal(
const PndCAHitV&
hit,
int iV,
float&
x,
float&
y,
float &
z );
98 void DrawPVHisto(
const vector<float>& pvHist,
const PndCAParam& param);
102 void DrawGBTrackFast(
const PndCAGBTracker &tracker,
int itr,
int color = -1 );
103 bool DrawTracklet(
PndCATrackParam &
track,
const int *hitstore,
int color = -1,
int width = -1,
bool pPoint = 0 );
107 void DrawGBHit(
const PndCAGBTracker &tracker,
int iHit,
int color = -1, Size_t width = -1 );
108 void DrawGBHits(
const PndCAGBTracker &tracker,
int color = -1, Size_t width = -1,
int hitsType = -1 );
112 void SaveCanvasToFile(
TString fileName);
114 TPad *CanvasYX() {
return fYX; }
115 TPad *CanvasZX() {
return fZX; }
120 TPad *fYX, *fZX, *fZR;
121 TCanvas *fFwdMvdCanvas;
122 TPad *fFwdMvdZY, *fFwdMvdZX, *fFwdMvdZR;
125 PndCAPerformance *fPerf;
126 double fZMin, fZMax, fYMin, fYMax;
127 double fRInnerMin, fRInnerMax, fROuterMin, fROuterMax, fTPCZMin, fTPCZMax;
141 PndCADisplay(
const PndCADisplay& );
142 PndCADisplay& operator=(
const PndCADisplay& );
145 #endif //CATRACKER_DISPLAY