1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 //////////////////////////////////////////////////////////////////////////
21 // Utility class to display ALICE outline, tracks, hits,.. //
23 //////////////////////////////////////////////////////////////////////////
32 #include <TPolyMarker3D.h>
35 #include <TPolyMarker.h>
36 #include <TPaveLabel.h>
37 #include <TPaveText.h>
44 #include <TGeometry.h>
45 #include <TSliderBox.h>
47 #include <TVirtualX.h>
50 #include <X3DBuffer.h>
51 #include <TParticle.h>
52 #include "AliRICHChamber.h"
55 #include "AliDetector.h"
57 #include "AliRICHDisplay.h"
58 #include "AliRICHPoints.h"
59 #include "AliHeader.h"
63 ClassImp(AliRICHDisplay)
66 //____________________________________________________________________________
67 AliRICHDisplay::AliRICHDisplay()
70 // default constructor
80 //_____________________________________________________________________________
81 AliRICHDisplay::AliRICHDisplay(Int_t size)
86 gAlice->SetDisplay(this);
88 // Initialize display default parameters
91 // Set front view by default
92 fTheta = 90; //inclined HMPID
93 fPhi = 30; //inclined HMPID
94 //fTheta = 90; //normal HMPID
95 //fPhi = 90; //normal HMPID
100 fDrawClusters = kTRUE;
102 fDrawRecHits = kTRUE;
113 // Create display canvas
115 if (ysize < 100) ysize = 750;
116 Int_t xsize = Int_t(size*830./ysize);
117 fCanvas = new TCanvas("Canvas", "RICH Clusters Display",14,47,xsize,ysize);
118 fCanvas->ToggleEventStatus();
120 // Create main display pad
121 fPad = new TPad("viewpad", "RICH display",0.15,0,0.9,1);
124 fPad->SetFillColor(1);
125 fPad->SetBorderSize(2);
130 fColPad = new TPad("colpad", "Colors pad",0.9,0,1,1);
133 fColPad->SetFillColor(19);
134 fColPad->SetBorderSize(2);
140 // Create user interface control pad
144 // Create Range and mode pad
147 fTrigPad = new TPad("trigger", "range and mode pad",0,0,dxtr,dytr);
150 fTrigPad->SetFillColor(22);
151 fTrigPad->SetBorderSize(2);
152 fRangeSlider = new TSlider("range","range",0.7,0.42,0.9,0.98);
153 fRangeSlider->SetObject(this);
154 char pickmode[] = "gAlice->Display()->SetPickMode()";
156 fPickButton = new TButton("Pick",pickmode,0.05,0.32,0.65,0.32+db);
157 fPickButton->SetFillColor(38);
159 char zoommode[] = "gAlice->Display()->SetZoomMode()";
160 fZoomButton = new TButton("Zoom",zoommode,0.05,0.21,0.65,0.21+db);
161 fZoomButton->SetFillColor(38);
163 fArcButton = new TArc(.8,fZoomButton->GetYlowNDC()+0.5*db,0.33*db);
164 fArcButton->SetFillColor(kGreen);
166 char butUnzoom[] = "gAlice->Display()->UnZoom()";
167 TButton *button = new TButton("UnZoom",butUnzoom,0.05,0.05,0.95,0.15);
168 button->SetFillColor(38);
170 AppendPad(); // append display object as last object to force selection
172 fTrigPad->SetEditable(kFALSE);
173 fButtons->SetEditable(kFALSE);
179 //_____________________________________________________________________________
180 AliRICHDisplay::~AliRICHDisplay()
182 // Delete space point structure
183 if (fPoints) fPoints->Delete();
187 if (fPhits) fPhits->Delete();
191 if (fRpoints) fRpoints->Delete();
195 if (fRecpoints) fRecpoints->Delete();
199 if (fPCerenkovs) fPCerenkovs->Delete();
204 //_____________________________________________________________________________
205 void AliRICHDisplay::Clear(Option_t *)
207 // Delete graphics temporary objects
210 //_____________________________________________________________________________
211 void AliRICHDisplay::DisplayButtons()
213 // Create the user interface buttons
216 fButtons = new TPad("buttons", "newpad",0,0.45,0.15,1);
218 fButtons->SetFillColor(38);
219 fButtons->SetBorderSize(2);
222 // Int_t butcolor = 33;
223 Float_t dbutton = 0.08;
230 char but1[] = "gAlice->Display()->ShowNextEvent(1)";
231 button = new TButton("Next",but1,x0,y-dbutton,x1,y);
232 button->SetFillColor(38);
236 char but2[] = "gAlice->Display()->ShowNextEvent(-1)";
237 button = new TButton("Previous",but2,x0,y-dbutton,x1,y);
238 button->SetFillColor(38);
242 char but7[] = "gAlice->Display()->DrawViewGL()";
243 button = new TButton("OpenGL",but7,x0,y-dbutton,x1,y);
244 button->SetFillColor(38);
248 char but8[] = "gAlice->Display()->DrawViewX3D()";
249 button = new TButton("X3D",but8,x0,y-dbutton,x1,y);
250 button->SetFillColor(38);
254 TDiamond *diamond = new TDiamond(0.05,0.015,0.95,0.22);
255 diamond->SetFillColor(50);
256 diamond->SetTextAlign(22);
257 diamond->SetTextColor(5);
258 diamond->SetTextSize(0.11);
260 diamond->AddText(".. ");
261 diamond->AddText("ROOT");
262 diamond->AddText("RICH");
263 diamond->AddText("... ");
264 diamond->AddText(" ");
267 //_____________________________________________________________________________
268 void AliRICHDisplay::CreateColors()
270 // Create the colors palette used to display clusters
285 new TColor(color,r,g,b);
295 new TColor(color,r,g,b);
305 new TColor(color,r,g,b);
315 new TColor(color,r,g,b);
325 new TColor(color,r,g,b);
332 //_____________________________________________________________________________
333 void AliRICHDisplay::DisplayColorScale()
336 // Draw the color scale in the RICH display canvas
340 Float_t xlow, ylow, xup, yup, hs;
341 Float_t x1, y1, x2, y2;
345 gPad->SetFillColor(0);
347 gPad->Range(x1,y1,x2,y2);
348 TText *text = new TText(0,0,"");
349 text->SetTextFont(61);
350 text->SetTextSize(0.2);
351 text->SetTextAlign(22);
355 //*-* draw colortable boxes
356 hs = (y2-y1)/Float_t(22);
360 ylow = y1 + hs*(Float_t(i));
361 yup = y1 + hs*(Float_t(i+1));
363 Double_t logscale=Double_t(i+1)*(TMath::Log(kadc_satm)/22);
364 Int_t scale=(Int_t)TMath::Exp(logscale);
365 sprintf(label,"%d",scale);
366 box = new TBox(xlow, ylow, xup, yup);
367 box->SetFillColor(color);
369 text->DrawText(xup+4, 0.5*(ylow+yup),label);
373 //______________________________________________________________________________
374 Int_t AliRICHDisplay::DistancetoPrimitive(Int_t px, Int_t)
376 // Compute distance from point px,py to objects in event
378 gPad->SetCursor(kCross);
380 if (gPad == fTrigPad) return 9999;
382 const Int_t kBig = 9999;
384 Float_t xmin = gPad->GetX1();
385 Float_t xmax = gPad->GetX2();
386 Float_t dx = 0.02*(xmax - xmin);
387 Float_t x = gPad->AbsPixeltoX(px);
388 if (x < xmin+dx || x > xmax-dx) return dist;
389 if (fZoomMode) return 0;
393 //_____________________________________________________________________________
394 void AliRICHDisplay::Draw(Option_t *)
396 // Display current event
400 DrawView(fTheta, fPhi, fPsi); // see how to draw PGON+inner frames
402 // Display the event number and title
407 //_____________________________________________________________________________
408 void AliRICHDisplay::DrawCoG()
410 // Draw hits for RICH chambers
412 if (!fDrawCoG) return;
414 for (Int_t chamber=0;chamber<kNCH;chamber++) {
423 ncog = points->GetEntriesFast();
424 for (icog=0; icog < ncog; icog++) {
425 pm = (AliRICHPoints*)points->UncheckedAt(icog);
431 void AliRICHDisplay::DrawRecHits()
433 // Draw rec hits for RICH chambers
435 if (!fDrawRecHits) return;
437 for (Int_t chamber=0;chamber<kNCH;chamber++) {
438 LoadRecHits(chamber,1);
446 nrec = points->GetEntriesFast();
447 //printf("Nrec %d\n",nrec);
448 for (irec=0; irec < nrec; irec++) {
449 pm = (AliRICHPoints*)points->UncheckedAt(irec);
455 //_____________________________________________________________________________
457 void AliRICHDisplay::DrawCerenkovs()
459 // Draw cerenkovs hits for RICH chambers
461 LoadCerenkovs(fChamber);
462 //printf("\nDrawCerenkovs\n");
464 Int_t ntracks, track;
469 cpoints = fPCerenkovs;
470 //printf ("Cpoints: %p",cpoints);
471 if (!cpoints) return;
472 ntracks = cpoints->GetEntriesFast();
473 //printf("DrawCerenkovs - ntracks %d \n",ntracks);
474 for (track=0;track<ntracks;track++) {
475 pm = (AliRICHPoints*)cpoints->UncheckedAt(track);
478 fHitsCuts += pm->GetN();
482 //_____________________________________________________________________________
484 void AliRICHDisplay::DrawClusters()
486 // Draw clusterss for RICH chambers
488 Int_t ndigits, digit;
495 ndigits = points->GetEntriesFast();
496 for (digit=0;digit<ndigits;digit++){
497 pm = (AliRICHPoints*)points->UncheckedAt(digit);
502 for (Int_t im=0;im<3;im++) {
503 TMarker3DBox *marker=pm->GetMarker(im);
507 fClustersCuts +=pm->GetN();
511 //_____________________________________________________________________________
512 void AliRICHDisplay::DrawHits()
514 // Draw hits for RICH chambers
518 Int_t ntracks, track;
525 // ntracks = points->GetEntriesFast();
526 ntracks = fPhits->GetEntriesFast();
528 //printf("DrawHits - ntracks %d \n",ntracks);
529 for (track=0;track<ntracks;track++) {
530 pm = (AliRICHPoints*)fPhits->UncheckedAt(track);
533 fHitsCuts += pm->GetN();
538 //_____________________________________________________________________________
539 void AliRICHDisplay::DrawTitle(Option_t *option)
541 // Draw the event title
543 Float_t xmin = gPad->GetX1();
544 Float_t xmax = gPad->GetX2();
545 Float_t ymin = gPad->GetY1();
546 Float_t ymax = gPad->GetY2();
547 Float_t dx = xmax-xmin;
548 Float_t dy = ymax-ymin;
550 if (strlen(option) == 0) {
551 TPaveText *title = new TPaveText(xmin +0.01*dx, ymax-0.09*dy, xmin +0.5*dx, ymax-0.01*dy);
552 title->SetBit(kCanDelete);
553 title->SetFillColor(42);
556 sprintf(ptitle,"Alice event: %d, Run:%d",
557 gAlice->GetHeader()->GetEvent(), gAlice->GetHeader()->GetRun());
558 title->AddText(ptitle);
559 Int_t nparticles = gAlice->GetMCApp()->Particles()->GetEntriesFast();
560 sprintf(ptitle,"Nparticles = %d Nhits = %d Npads fired = %d",
561 nparticles, fHitsCuts,fClustersCuts);
562 title->AddText(ptitle);
565 new TPaveLabel(xmin +0.01*dx, ymax-0.07*dy, xmin +0.2*dx, ymax-0.01*dy,option);
566 label->SetBit(kCanDelete);
567 label->SetFillColor(42);
572 //_____________________________________________________________________________
573 void AliRICHDisplay::DrawView(Float_t theta, Float_t phi, Float_t psi)
575 // Draw a view of RICH clusters
577 gPad->SetCursor(kWatch);
578 gPad->SetFillColor(1);
582 TView *view = new TView(1);
583 Float_t range = fRrange*fRangeSlider->GetMaximum();
584 view->SetRange(-range,-range,-range,range, range, range);
591 //Display RICH Chamber Geometry
592 gAlice->GetGeometry()->Draw("same");
594 //add clusters to the pad
600 //printf("Calling DrawCoG\n");
602 //printf("Calling DrawRecHits\n");
605 /*for (Int_t i=0;i<7;i++)
608 // add itself to the list (must be last)
611 view->SetView(phi, theta, psi, iret);
614 //______________________________________________________________________________
615 void AliRICHDisplay::ExecuteEvent(Int_t event, Int_t px, Int_t py)
617 // Execute action corresponding to the mouse event
619 static Float_t x0, y0, x1, y1;
621 static Int_t pxold, pyold;
622 static Int_t px0, py0;
623 static Int_t linedrawn;
626 if (px == 0 && py == 0) { //when called by sliders
627 if (event == kButton1Up) {
628 printf("Drawing event %d\n",event);
633 if (!fZoomMode && gPad->GetView()) {
634 gPad->GetView()->ExecuteRotateView(event, px, py);
638 // something to zoom ?
639 gPad->SetCursor(kCross);
644 gVirtualX->SetLineColor(-1);
645 gPad->TAttLine::Modify(); //Change line attributes only if necessary
646 x0 = gPad->AbsPixeltoX(px);
647 y0 = gPad->AbsPixeltoY(py);
649 pxold = px; pyold = py;
654 if (linedrawn) gVirtualX->DrawBox(px0, py0, pxold, pyold, TVirtualX::kHollow);
658 gVirtualX->DrawBox(px0, py0, pxold, pyold, TVirtualX::kHollow);
662 gPad->GetCanvas()->FeedbackMode(kFALSE);
663 if (px == px0) return;
664 if (py == py0) return;
665 x1 = gPad->AbsPixeltoX(px);
666 y1 = gPad->AbsPixeltoY(py);
668 if (x1 < x0) {temp = x0; x0 = x1; x1 = temp;}
669 if (y1 < y0) {temp = y0; y0 = y1; y1 = temp;}
670 gPad->Range(x0,y0,x1,y1);
671 if (fZooms < kMAXZOOM-1) {
673 fZoomX0[fZooms] = x0;
674 fZoomY0[fZooms] = y0;
675 fZoomX1[fZooms] = x1;
676 fZoomY1[fZooms] = y1;
678 gPad->Modified(kTRUE);
683 //___________________________________________
684 void AliRICHDisplay::LoadCoG(Int_t chamber, Int_t cathode)
686 // Read raw clusters info and store x,y,z info in arrays fRpoints
687 // Loop on all detectors
689 if (chamber > 7) return;
691 AliRICH *pRICH = (AliRICH*)gAlice->GetModule("RICH");
692 AliRICHChamber* iChamber;
694 TClonesArray *pRICHrawclust = pRICH->Clusters(chamber);
695 if (pRICHrawclust == 0) return;
697 pRICH->ResetClusters();
700 Int_t nent=(Int_t)gAlice->TreeR()->GetEntries();
701 gAlice->TreeR()->GetEvent(nent-1+cathode-1);
702 Int_t nrawcl = pRICHrawclust->GetEntriesFast();
703 //printf ("nrawcl:%d\n",nrawcl);
704 if (nrawcl == 0) return;
705 if (fRpoints == 0) fRpoints = new TObjArray(nrawcl);
707 iChamber = pRICH->C(chamber);
708 AliRICHcluster *mRaw;
709 AliRICHPoints *points = 0;
711 //loop over all raw clusters and store their position
712 points = new AliRICHPoints(nrawcl);
713 for (Int_t iraw=0;iraw<nrawcl;iraw++) {
714 mRaw = (AliRICHcluster*)pRICHrawclust->UncheckedAt(iraw);
715 fRpoints->AddAt(points,iraw);
716 points->SetMarkerColor(3);
717 points->SetMarkerStyle(3);
718 points->SetMarkerSize(1.);
719 points->SetParticle(-1);
720 points->SetHitIndex(-1);
721 points->SetTrackIndex(-1);
722 points->SetDigitIndex(-1);
723 Float_t vectorLoc[3]={mRaw->X(),5,mRaw->Y()};
724 Float_t vectorGlob[3];
725 iChamber->LocaltoGlobal(vectorLoc,vectorGlob);
726 points->SetPoint(iraw,vectorGlob[0],vectorGlob[1],vectorGlob[2]);
729 //___________________________________________
730 void AliRICHDisplay::LoadRecHits(Int_t chamber, Int_t cathode)
734 //___________________________________________
735 void AliRICHDisplay::LoadDigits()
737 // Read digits info and store x,y,z info in arrays fPoints
738 // Loop on all detectors
741 AliRICH *pRICH = (AliRICH*)gAlice->GetDetector("RICH");
742 AliRICHChamber* iChamber;
746 //printf("Entering LoadDigits\n");
751 for (ich=1; ich<=kNCH; ich++) {
752 TClonesArray *pRICHdigits = pRICH->Digits(ich);
753 if (pRICHdigits == 0) continue;
754 gAlice->ResetDigits();
755 gAlice->TreeD()->GetEvent(0);
756 Int_t ndigits = pRICHdigits->GetEntriesFast();
760 if (fPoints == 0) fPoints = new TObjArray(nAllDigits);
762 for (ich=1; ich<=kNCH; ich++) {
763 TClonesArray *pRICHdigits = pRICH->Digits(ich);
764 if (pRICHdigits == 0) continue;
765 gAlice->ResetDigits();
766 gAlice->TreeD()->GetEvent(0);
767 Int_t ndigits = pRICHdigits->GetEntriesFast();
768 if (ndigits == 0) continue;
769 iChamber = pRICH->C(ich);
770 Float_t dpx = AliRICHParam::PadSizeX();
771 Float_t dpy = AliRICHParam::PadSizeY();
775 AliRICHPoints *points = 0;
776 TMarker3DBox *marker = 0;
778 //loop over all digits and store their position
781 for (Int_t digit=0;digit<ndigits;digit++) {
782 mdig = (AliRICHdigit*)pRICHdigits->UncheckedAt(digit);
783 points = new AliRICHPoints(npoints);
784 fPoints->AddAt(points,counter);
786 Int_t charge=(Int_t)mdig->Q();
787 Int_t index=Int_t(TMath::Log(charge)/(TMath::Log(kadc_satm)/22));
788 Int_t color=701+index;
789 if (color>722) color=722;
790 points->SetMarkerColor(color);
791 points->SetMarkerStyle(21);
792 points->SetMarkerSize(0.5);
794 Float_t vectorLoc[3]={xpad,5,ypad};
795 Float_t vectorGlob[3];
796 iChamber->LocaltoGlobal(vectorLoc,vectorGlob);
797 points->SetParticle(-1);
798 points->SetHitIndex(-1);
799 points->SetTrackIndex(-1);
800 points->SetDigitIndex(digit);
801 points->SetPoint(0,vectorGlob[0],vectorGlob[1],vectorGlob[2]);
802 //printf("Y position (digit): %f\n", vectorGlob[1]);
804 Float_t theta = iChamber->GetRotMatrix()->GetTheta();
805 Float_t phi = iChamber->GetRotMatrix()->GetPhi();
806 marker=new TMarker3DBox(vectorGlob[0],vectorGlob[1],vectorGlob[2],
807 dpy/2,0,dpx/2,theta,phi);
808 marker->SetLineColor(2);
809 marker->SetFillStyle(1001);
810 marker->SetFillColor(color);
811 marker->SetRefObject((TObject*)points);
812 points->Set3DMarker(0, marker);
813 } // loop over digits
814 } // loop over chambers
817 //__________________________________________________________________________________________________
818 void AliRICHDisplay::LoadHits(Int_t chamber)
820 // Read hits info and store x,y,z info in arrays fPhits
821 // Loop on all detectors
827 AliRICH *pRICH = (AliRICH*)gAlice->GetDetector("RICH");
828 AliRICHChamber* iChamber;
830 iChamber = pRICH->C(chamber-1);
831 Int_t ntracks = (Int_t)pRICH->TreeH()->GetEntries();
834 if (fPhits == 0) fPhits = new TObjArray(ntracks);
835 //TVector *xp = new TVector(1000);
836 //TVector *yp = new TVector(1000);
837 //TVector *zp = new TVector(1000);
838 //TVector *ptrk = new TVector(1000);
839 //TVector *phit = new TVector(1000);
841 for (track=0; track<ntracks;track++) {
843 pRICH->TreeH()->GetEvent(track);
844 TClonesArray *pRICHhits = pRICH->Hits();
845 if (pRICHhits == 0) return;
846 Int_t nhits = pRICHhits->GetEntriesFast();
850 fPhits = new TObjArray(nAllHits);
853 for (track=0; track<ntracks;track++) {
855 pRICH->TreeH()->GetEvent(track);
856 TClonesArray *pRICHhits = pRICH->Hits();
857 if (pRICHhits == 0) return;
858 Int_t nhits = pRICHhits->GetEntriesFast();
859 if (nhits == 0) continue;
861 AliRICHPoints *points = 0;
862 for (Int_t hit=0;hit<nhits;hit++) {
863 points = new AliRICHPoints(1);
864 fPhits->AddAt(points,npoints);
865 mHit = (AliRICHhit*)pRICHhits->UncheckedAt(hit);
866 TParticle *current = (TParticle*)gAlice->GetMCApp()->Particle(mHit->Track());
867 if (current->GetPdgCode() == 50000050) {
868 points->SetMarkerColor(kBlue);
869 } else if (current->GetPdgCode() == 50000051) {
870 points->SetMarkerColor(kYellow);
872 points->SetMarkerColor(kRed);
874 points->SetMarkerStyle(5);
875 points->SetMarkerSize(1.);
876 points->SetParticle(mHit->Track());
877 points->SetHitIndex(hit);
878 points->SetTrackIndex(track);
879 points->SetDigitIndex(-1);
880 points->SetPoint(0,mHit->X(), mHit->Y(), mHit->Z());
885 //__________________________________________________________________________________________________
886 void AliRICHDisplay::LoadCerenkovs(Int_t chamber)
888 // Read cerenkov hits info and store x,y,z info in array fPCerenkovs
889 // Loop on all detectors
893 //_____________________________________________________________________________
894 void AliRICHDisplay::Paint(Option_t *)
896 // Paint miscellaneous items
900 //_____________________________________________________________________________
901 void AliRICHDisplay::SetPickMode()
908 fArcButton->SetY1(fPickButton->GetYlowNDC()+0.5*fPickButton->GetHNDC());
909 fTrigPad->Modified();
912 //_____________________________________________________________________________
913 void AliRICHDisplay::SetZoomMode()
920 fArcButton->SetY1(fZoomButton->GetYlowNDC()+0.5*fZoomButton->GetHNDC());
921 fTrigPad->Modified();
924 //_____________________________________________________________________________
925 void AliRICHDisplay::SetChamberAndCathode(Int_t chamber, Int_t cathode)
927 // Set chamber and cathode number
931 //printf("SetChamberAndCathode - fChamber fCathode %d %d\n",fChamber,fCathode);
938 //_____________________________________________________________________________
939 void AliRICHDisplay::SetRange(Float_t rrange, Float_t zrange)
941 // Set view range along R and Z
950 //_____________________________________________________________________________
951 void AliRICHDisplay::SetView(Float_t theta, Float_t phi, Float_t psi)
953 // change viewing angles for current event
961 TView *view = gPad->GetView();
962 if (view) view->SetView(fPhi, fTheta, fPsi, iret);
968 //_____________________________________________________________________________
969 void AliRICHDisplay::ShowNextEvent(Int_t delta)
971 // Display (current event_number+delta)
972 // delta = 1 shown next event
973 // delta = -1 show previous event
977 Int_t currentEvent = gAlice->GetHeader()->GetEvent();
978 Int_t newEvent = currentEvent + delta;
979 gAlice->GetEvent(newEvent);
980 if (!gAlice->TreeD()) return;
990 //______________________________________________________________________________
991 void AliRICHDisplay::UnZoom()
994 // Return to previous zoom factor
996 if (fZooms <= 0) return;
998 TPad *pad = (TPad*)gPad->GetPadSave();
999 pad->Range(fZoomX0[fZooms],fZoomY0[fZooms], fZoomX1[fZooms],fZoomY1[fZooms]);
1003 //_____________________________________________________________________________
1004 void AliRICHDisplay::ResetPoints()
1007 // Reset array of points
1015 //_____________________________________________________________________________
1016 void AliRICHDisplay::ResetRpoints()
1019 // Reset array of points
1027 //_____________________________________________________________________________
1028 void AliRICHDisplay::ResetRecpoints()
1031 // Reset array of points
1034 fRecpoints->Delete();
1039 //_____________________________________________________________________________
1040 void AliRICHDisplay::ResetPhits()
1043 // Reset array of points
1051 //_____________________________________________________________________________
1052 void AliRICHDisplay::ResetPCerenkovs()
1055 // Reset array of points
1058 fPCerenkovs->Delete();
1064 //_____________________________________________________________________________
1066 void AliRICHDisplay::DrawViewGL()
1068 // Draw current view using OPENGL
1070 TPad *pad = (TPad*)gPad->GetPadSave();
1072 TView *view = pad->GetView();
1077 //_____________________________________________________________________________
1078 void AliRICHDisplay::DrawViewX3D()
1080 // Draw current view using X3D
1082 TPad *pad = (TPad*)gPad->GetPadSave();
1084 TView *view = pad->GetView();