]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding Convention Violations
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Apr 2004 15:07:47 +0000 (15:07 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Apr 2004 15:07:47 +0000 (15:07 +0000)
STEER/AliBarrelTrack.cxx
STEER/AliBarrelTrack.h

index 50133439610341dcccb19bc753e66a8670b16bd2..21e4726c90730b05bc423e6475d95028ce070d7b 100644 (file)
@@ -1,3 +1,20 @@
+/**************************************************************************
+ * 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$ */
+
 
 ////////////////////////////////////////////////////////////////////////////////
 //
@@ -67,24 +84,33 @@ void AliBarrelTrack::SetX(Double_t x, Double_t alpha) {
 
 ////////////////////////////////////////////////////////////////////////////////
 
-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];
 
index b4d8acd8e718152732f5afee3df5dfd89ba39a7b..45cc682b95f37cc9ee2457b0d9f7bd2641ddf2ce 100644 (file)
@@ -1,52 +1,23 @@
-
 #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() {}
@@ -105,6 +76,45 @@ class AliBarrelTrack : public TObject {
   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)
 };