+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
////////////////////////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////////////////////////
-void AliBarrelTrack::SetRefPlane(Int_t nRefPlane, Int_t isIn) {
-
+void AliBarrelTrack::SetRefPlane(Int_t nRefPlane, Int_t isIn)
+{
+ //
+ // Define the reference plane
+ //
fRefPlane = nRefPlane;
fIsIn = isIn;
}
////////////////////////////////////////////////////////////////////////////////
-void AliBarrelTrack::SetNClusters(Int_t nClusters, Double_t chi2) {
-
+void AliBarrelTrack::SetNClusters(Int_t nClusters, Double_t chi2)
+{
+ //
+ // Set number of cluster
+ //
fNClusters = nClusters;
fChi2 = chi2;
}
////////////////////////////////////////////////////////////////////////////////
-void AliBarrelTrack::SetTime(Double_t time[5], Double_t length) {
-
+void AliBarrelTrack::SetTime(Double_t time[5], Double_t length)
+{
+ //
+ // Set time for a track
+ //
for(Int_t i=0; i<5; i++)
fTimeHypothesis[i] = time[i];
-
#ifndef AliBarrelTrack_H
#define AliBarrelTrack_H
-#include "TObject.h"
-#include "TMath.h"
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
-class AliBarrelTrack : public TObject {
-
- protected:
-
- Int_t fLabel; // kine tree index
-
- Int_t fRefPlane; // id of the reference plane
- Int_t fIsIn; // direction
+/* $Id$ */
- Double_t fX; // Kalman Time
- Double_t fAlpha; // sector angle
+//
+// General class for barrel tracks
+// This class contains all the information
+// to describe the tracks detected by the barre detectors (ITS, TPC, TRD, TOF)
+//
- // state vector
- Double_t fZ; // Z in global cs
- Double_t fY; // Y in local cs corresponds to r-phi
- Double_t fTgLambda; // Tangent of the dip angle
- Double_t fSnPhi; // Sin
- Double_t f1Pt; // inverse of momentum
-
-
- // covariance matrix
- Double_t fCz;
- Double_t fCy;
- Double_t fCtg;
- Double_t fCphi;
- Double_t fCpt;
-
-
- // track time/length
- Double_t fTimeHypothesis[5]; // time for all hypoptheses
- Double_t fLength; // track length
+#include "TObject.h"
+#include "TMath.h"
- // performance info
- Int_t fNClusters; // Number of clusters
- Int_t fNWrong; // Number of wrong clusters
- Double_t fChi2; // Chi 2
- Int_t fNRotate; // number of rotations / sector crossing
-
- Double_t fMass; // mass hypothesis
- Double_t fdEdX; // dE/dX
+class AliBarrelTrack : public TObject {
- public:
+public:
AliBarrelTrack();
~AliBarrelTrack() {}
Double_t P() const {return Pt()*(fTgLambda+1);}
Double_t Lambda() const {return TMath::ATan(fTgLambda);}
+
+protected:
+
+ Int_t fLabel; // kine tree index
+
+ Int_t fRefPlane; // id of the reference plane
+ Int_t fIsIn; // direction
+
+ Double_t fX; // Kalman Time
+ Double_t fAlpha; // sector angle
+
+ // state vector
+ Double_t fZ; // Z in global cs
+ Double_t fY; // Y in local cs corresponds to r-phi
+ Double_t fTgLambda; // Tangent of the dip angle
+ Double_t fSnPhi; // Sin
+ Double_t f1Pt; // inverse of momentum
+
+
+ // covariance matrix
+ Double_t fCz; // z element of covariance matrix
+ Double_t fCy; // y element of covariance matrix
+ Double_t fCtg; // tangent element of covariance matrix
+ Double_t fCphi; // phi element of covariance matrix
+ Double_t fCpt; // pt element of covariance matrix
+
+
+ // track time/length
+ Double_t fTimeHypothesis[5]; // time for all hypoptheses
+ Double_t fLength; // track length
+
+ // performance info
+ Int_t fNClusters; // Number of clusters
+ Int_t fNWrong; // Number of wrong clusters
+ Double_t fChi2; // Chi 2
+ Int_t fNRotate; // number of rotations / sector crossing
+
+ Double_t fMass; // mass hypothesis
+ Double_t fdEdX; // dE/dX
ClassDef(AliBarrelTrack,1)
};