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 **************************************************************************/
18 Revision 1.3.12.2 2002/07/24 10:09:31 alibrary
21 Revision 1.3.12.1 2002/06/10 15:28:58 hristov
24 Revision 1.4 2002/03/28 14:59:07 cblume
27 Revision 1.4 2002/03/28 14:59:07 cblume
30 Revision 1.3 2000/10/15 23:40:01 cblume
33 Revision 1.2 2000/10/06 16:49:46 cblume
36 Revision 1.1.2.1 2000/09/18 13:44:21 cblume
37 New class AliTRDpoints to display the TR photon hits
41 ///////////////////////////////////////////////////////////////////////////////
43 // This class contains the TRD points for the ALICE event display. //
44 // Used to seperately display dEdx and TR photon hits. //
46 ///////////////////////////////////////////////////////////////////////////////
52 #include "AliDetector.h"
54 #include "AliTRDpoints.h"
56 ClassImp(AliTRDpoints)
58 //_____________________________________________________________________________
59 AliTRDpoints::AliTRDpoints():AliPoints()
62 // Default constructor
70 //_____________________________________________________________________________
71 AliTRDpoints::AliTRDpoints(Int_t nhitsE, Int_t nhitsT):AliPoints(nhitsE)
74 // Standard constructor
82 //_____________________________________________________________________________
83 AliTRDpoints::AliTRDpoints(const AliTRDpoints &p)
89 ((AliTRDpoints &) p).Copy(*this);
93 //_____________________________________________________________________________
94 AliTRDpoints::~AliTRDpoints()
100 if (fTRpolyMarker) delete fTRpolyMarker;
104 //_____________________________________________________________________________
105 AliTRDpoints &AliTRDpoints::operator=(const AliTRDpoints &p)
108 // Assignment operator
111 if (this != &p) ((AliTRDpoints &) p).Copy(*this);
116 //_____________________________________________________________________________
117 void AliTRDpoints::Copy(TObject &p)
123 ((AliTRDpoints &) p).fNTRpoints = fNTRpoints;
124 for (Int_t i = 0; i < 3*fNTRpoints; i++) {
125 ((AliTRDpoints &) p).fTRpoints[i] = fTRpoints[i];
130 //_____________________________________________________________________________
131 void AliTRDpoints::Draw(Option_t *option)
137 AliPoints::Draw(option);
139 //if (fTRpolyMarker) delete fTRpolyMarker;
141 fTRpolyMarker = new TPolyMarker3D(fNTRpoints,fTRpoints,29);
142 fTRpolyMarker->SetMarkerColor(2);
143 fTRpolyMarker->SetMarkerSize(0.8);
144 fTRpolyMarker->Draw(option);
149 //_____________________________________________________________________________
150 void AliTRDpoints::SetTRpoints(Int_t n, Float_t *coor)
153 // Sets the number and the coordinates of the photon hits
156 if (kNTRpoints >= 3 * n) {
158 for (Int_t i = 0; i < 3*n; i++) {
159 fTRpoints[i] = coor[i];
163 printf("AliTRDpoints::SetTRpoints -- ");
164 printf("Boundary error: %d/%d\n",3*n,kNTRpoints);