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 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////////
22 // TRD reconstructed point //
24 ///////////////////////////////////////////////////////////////////////////////
26 #include "AliTRDgeometry.h"
27 #include "AliTRDrecPoint.h"
30 ClassImp(AliTRDrecPoint)
32 //_____________________________________________________________________________
33 AliTRDrecPoint::AliTRDrecPoint():AliRecPoint()
36 // Standard constructor
43 (TRD = ((AliTRD*) gAlice->GetDetector("TRD")))) {
44 fGeom = TRD->GetGeometry();
52 //_____________________________________________________________________________
53 void AliTRDrecPoint::AddDigit(Int_t digit)
56 // Adds the index of a digit to the digits list
59 // First resize the list
60 // (no clusters with more than 3 digits for the TRD
61 if ((fMulDigit == 0) && (fMaxDigit >= 5)) {
64 fDigitsList = new int[fMaxDigit];
67 // Increase the size of the list if necessary
68 if (fMulDigit >= fMaxDigit) {
69 int *tempo = new (int[fMaxDigit*=2]);
71 for (index = 0; index < fMulDigit; index++)
72 tempo[index] = fDigitsList[index];
77 fDigitsList[fMulDigit++] = digit;
81 //_____________________________________________________________________________
82 void AliTRDrecPoint::SetLocalPosition(TVector3 &pos)
85 // Sets the position of the point in the local coordinate system
86 // (row,col,time) and calculates the error matrix in the same
90 const Float_t sq12 = 3.464101615;
95 // Set the error matrix
96 // row: pad-size / sqrt(12)
97 // col: not defined yet
98 // time: bin-size / sqrt(12)
99 fLocPosM->operator()(0,0) = ((AliTRDgeometry *) fGeom)->GetRowPadSize()
101 fLocPosM->operator()(1,1) = 0.0;
102 fLocPosM->operator()(2,2) = ((AliTRDgeometry *) fGeom)->GetTimeBinSize()