2 ////////////////////////////////////////////////////////////////////////////////
4 // AliBarrelTrack is a snapshot of the TPC or TRD track.
5 // The barrel track is stored by tracker every time a track is crossing
9 // - state vactor in "external represenantion"
10 // - diagonal elements of covariance matric
11 // - auxiliary paramrters:
12 // chi2, number of clusters, number of sector srossed
13 // - methods to compare with track references
15 // Barrel track can be directly compared with AliTrackReferences,
16 // TPC and TRD tracks can be compared using the same macro.
18 // S. Radomski, [GSI] mail: S.Radomski@gsi.de
21 ////////////////////////////////////////////////////////////////////////////////
23 #include "AliBarrelTrack.h"
25 ClassImp(AliBarrelTrack)
27 ////////////////////////////////////////////////////////////////////////////////
29 AliBarrelTrack:: AliBarrelTrack() : TObject() {
31 // Standard constructor
32 // reset all data-members
35 fLabel = fRefPlane = fIsIn = 0;
37 fZ = fY = fTgLambda = fSnPhi = f1Pt = 0.0;
39 for(Int_t i=0; i<5; i++) fTimeHypothesis[i] = 0;
42 fNClusters = fNWrong = fNRotate = 0;
46 fCy = fCz = fCtg = fCpt = fCphi = 0.0;
49 ////////////////////////////////////////////////////////////////////////////////
51 void AliBarrelTrack::SetLabel(Int_t label) {
59 ////////////////////////////////////////////////////////////////////////////////
61 void AliBarrelTrack::SetX(Double_t x, Double_t alpha) {
68 ////////////////////////////////////////////////////////////////////////////////
70 void AliBarrelTrack::SetRefPlane(Int_t nRefPlane, Int_t isIn) {
72 fRefPlane = nRefPlane;
76 ////////////////////////////////////////////////////////////////////////////////
78 void AliBarrelTrack::SetNClusters(Int_t nClusters, Double_t chi2) {
80 fNClusters = nClusters;
84 ////////////////////////////////////////////////////////////////////////////////
86 void AliBarrelTrack::SetTime(Double_t time[5], Double_t length) {
88 for(Int_t i=0; i<5; i++)
89 fTimeHypothesis[i] = time[i];
94 ////////////////////////////////////////////////////////////////////////////////
96 void AliBarrelTrack::SetStateVector(Double_t vec[5]) {
98 // Set State Vector from external representation
109 ////////////////////////////////////////////////////////////////////////////////
111 void AliBarrelTrack::SetCovarianceMatrix(Double_t vec[15]) {
113 // Set Covariance Matrix from external represenatation
123 ////////////////////////////////////////////////////////////////////////////////