4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
6 //* See cxx source for full Copyright notice *
9 //* AliHLTTPCCADisplay class is a debug utility. *
10 //* It is not used in the normal data processing. *
13 #ifndef ALIHLTTPCCADISPLAY_H
14 #define ALIHLTTPCCADISPLAY_H
16 class AliHLTTPCCATracker;
17 class AliHLTTPCCACell;
18 class AliHLTTPCCATrack;
23 #include "TPolyLine.h"
31 * @class AliHLTTPCCADisplay
33 class AliHLTTPCCADisplay
37 static AliHLTTPCCADisplay &Instance();
40 AliHLTTPCCADisplay( const AliHLTTPCCADisplay& );
41 AliHLTTPCCADisplay& operator=(const AliHLTTPCCADisplay&);
43 virtual ~AliHLTTPCCADisplay();
51 void SetCurrentSector( AliHLTTPCCATracker *sec );
53 Int_t GetColor( Double_t z ) const ;
54 void Global2View( Double_t x, Double_t y, Double_t *xv, Double_t *yv ) const ;
55 void Sec2View( Double_t x, Double_t y, Double_t *xv, Double_t *yv ) const ;
58 void DrawSector( AliHLTTPCCATracker *sec );
60 void DrawHit( Int_t iRow,Int_t iHit, Int_t color=-1 );
61 void DrawCell( Int_t iRow, AliHLTTPCCACell &cell, Int_t width=1, Int_t color=-1 );
62 void DrawCell( Int_t iRow, Int_t iCell, Int_t width=1, Int_t color=-1 );
64 void ConnectCells( Int_t iRow1, AliHLTTPCCACell &cell1, Int_t iRow2, AliHLTTPCCACell &cell2, Int_t color=-1 );
66 void DrawTrack( AliHLTTPCCATrack &track, Int_t color=-1 );
70 TCanvas *fYX, *fZX; // two views
71 Bool_t fAsk; // flag to ask for the pressing key
72 Bool_t fSectorView; // switch between sector/TPC zoomv
73 AliHLTTPCCATracker *fSector; // current CA tracker, includes sector geometry
74 Double_t fCos, fSin, fZMin, fZMax;// view parameters
75 Double_t fRInnerMin, fRInnerMax, fROuterMin, fROuterMax,fTPCZMin, fTPCZMax; // view parameters
77 TArc fArc; // parameters of drawing objects are copied from this members
85 class AliHLTTPCCADisplayTmpCell{
87 Int_t &Index(){ return fIndex; }
88 Double_t &S(){ return fS; }
90 static Bool_t CompareCellDS( const AliHLTTPCCADisplayTmpCell &a,
91 const AliHLTTPCCADisplayTmpCell &b )
96 Int_t fIndex; // cell index
97 Double_t fS; // cell position on the track
101 ClassDef(AliHLTTPCCADisplay,1);