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.2 2000/06/08 18:32:58 cblume
19 Make code compliant to coding conventions
21 Revision 1.1 2000/02/28 19:02:07 cblume
26 ///////////////////////////////////////////////////////////////////////////////
28 // TRD reconstructed point //
30 ///////////////////////////////////////////////////////////////////////////////
32 #include "AliTRDgeometry.h"
33 #include "AliTRDrecPoint.h"
36 ClassImp(AliTRDrecPoint)
38 //_____________________________________________________________________________
39 AliTRDrecPoint::AliTRDrecPoint():AliRecPoint()
42 // Standard constructor
49 (trd = ((AliTRD*) gAlice->GetDetector("TRD")))) {
50 fGeom = trd->GetGeometry();
58 //_____________________________________________________________________________
59 AliTRDrecPoint::~AliTRDrecPoint()
62 // AliTRDrecPoint destructor
67 //_____________________________________________________________________________
68 void AliTRDrecPoint::AddDigit(Int_t digit)
71 // Adds the index of a digit to the digits list
74 // First resize the list
75 // (no clusters with more than 3 digits for the TRD
76 if ((fMulDigit == 0) && (fMaxDigit >= 5)) {
79 fDigitsList = new int[fMaxDigit];
82 // Increase the size of the list if necessary
83 if (fMulDigit >= fMaxDigit) {
85 int *tempo = new (int[fMaxDigit]);
87 for (index = 0; index < fMulDigit; index++)
88 tempo[index] = fDigitsList[index];
93 fDigitsList[fMulDigit++] = digit;
97 //_____________________________________________________________________________
98 void AliTRDrecPoint::SetLocalPosition(TVector3 &pos)
101 // Sets the position of the point in the local coordinate system
102 // (row,col,time) and calculates the error matrix in the same
106 const Float_t kSq12 = 3.464101615;
111 // Set the error matrix
112 // row: pad-size / sqrt(12)
113 // col: not defined yet
114 // time: bin-size / sqrt(12)
115 fLocPosM->operator()(0,0) = ((AliTRDgeometry *) fGeom)->GetRowPadSize()
117 fLocPosM->operator()(1,1) = 0.0;
118 fLocPosM->operator()(2,2) = ((AliTRDgeometry *) fGeom)->GetTimeBinSize()