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 **************************************************************************/
19 ////////////////////////////////////////////////////////////////////////////////
21 // AliBarrelTrack is a snapshot of the TPC or TRD track.
22 // The barrel track is stored by tracker every time a track is crossing
26 // - state vactor in "external represenantion"
27 // - diagonal elements of covariance matric
28 // - auxiliary paramrters:
29 // chi2, number of clusters, number of sector srossed
30 // - methods to compare with track references
32 // Barrel track can be directly compared with AliTrackReferences,
33 // TPC and TRD tracks can be compared using the same macro.
35 // S. Radomski, [GSI] mail: S.Radomski@gsi.de
38 ////////////////////////////////////////////////////////////////////////////////
40 #include "AliBarrelTrack.h"
42 ClassImp(AliBarrelTrack)
44 ////////////////////////////////////////////////////////////////////////////////
46 AliBarrelTrack:: AliBarrelTrack() : TObject() {
48 // Standard constructor
49 // reset all data-members
52 fLabel = fRefPlane = fIsIn = 0;
54 fZ = fY = fTgLambda = fSnPhi = f1Pt = 0.0;
56 for(Int_t i=0; i<5; i++) fTimeHypothesis[i] = 0;
59 fNClusters = fNWrong = fNRotate = 0;
63 fCy = fCz = fCtg = fCpt = fCphi = 0.0;
66 ////////////////////////////////////////////////////////////////////////////////
68 void AliBarrelTrack::SetLabel(Int_t label) {
76 ////////////////////////////////////////////////////////////////////////////////
78 void AliBarrelTrack::SetX(Double_t x, Double_t alpha) {
85 ////////////////////////////////////////////////////////////////////////////////
87 void AliBarrelTrack::SetRefPlane(Int_t nRefPlane, Int_t isIn)
90 // Define the reference plane
92 fRefPlane = nRefPlane;
96 ////////////////////////////////////////////////////////////////////////////////
98 void AliBarrelTrack::SetNClusters(Int_t nClusters, Double_t chi2)
101 // Set number of cluster
103 fNClusters = nClusters;
107 ////////////////////////////////////////////////////////////////////////////////
109 void AliBarrelTrack::SetTime(Double_t time[5], Double_t length)
112 // Set time for a track
114 for(Int_t i=0; i<5; i++)
115 fTimeHypothesis[i] = time[i];
120 ////////////////////////////////////////////////////////////////////////////////
122 void AliBarrelTrack::SetStateVector(Double_t vec[5]) {
124 // Set State Vector from external representation
135 ////////////////////////////////////////////////////////////////////////////////
137 void AliBarrelTrack::SetCovarianceMatrix(Double_t vec[15]) {
139 // Set Covariance Matrix from external represenatation
149 ////////////////////////////////////////////////////////////////////////////////