]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrections to obey the coding conventions
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Nov 2003 15:25:49 +0000 (15:25 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Nov 2003 15:25:49 +0000 (15:25 +0000)
STEER/AliESDtrack.cxx
STEER/AliESDtrack.h

index 2460f7376f07cf01e007b6eb2f86cf9c8a60da39..400805ae755c432146b26fdfed2cb882228260fe 100644 (file)
 
 //-----------------------------------------------------------------
 //           Implementation of the ESD track class
+//   ESD = Event Summary Data
 //   This is the class to deal with during the phisical analysis of data
-//
-//      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
+//      Origin: Iouri Belikov, CERN
+//      e-mail: Jouri.Belikov@cern.ch
 //-----------------------------------------------------------------
 
 #include "TMath.h"
@@ -75,6 +76,7 @@ fTOFsignal(0)
 
 //_______________________________________________________________________
 Float_t AliESDtrack::GetMass() const {
+  // Returns the mass of the most probable particle type
   Float_t max=0.;
   Int_t k=-1;
   for (Int_t i=0; i<kSPECIES; i++) {
@@ -233,22 +235,26 @@ void AliESDtrack::GetExternalCovariance(Double_t c[15]) const {
 
 //_______________________________________________________________________
 void AliESDtrack::GetIntegratedTimes(Double_t *times) const {
+  // Returns the array with integrated times for each particle hypothesis
   for (Int_t i=0; i<kSPECIES; i++) times[i]=fTrackTime[i];
 }
 
 //_______________________________________________________________________
 void AliESDtrack::SetIntegratedTimes(const Double_t *times) {
+  // Sets the array with integrated times for each particle hypotesis
   for (Int_t i=0; i<kSPECIES; i++) fTrackTime[i]=times[i];
 }
 
 //_______________________________________________________________________
-void AliESDtrack::SetITSpid(const Double_t *p) {  
+void AliESDtrack::SetITSpid(const Double_t *p) {
+  // Sets values for the probability of each particle type (in ITS)
   for (Int_t i=0; i<kSPECIES; i++) fITSr[i]=p[i];
   SetStatus(AliESDtrack::kITSpid);
 }
 
 //_______________________________________________________________________
 void AliESDtrack::GetITSpid(Double_t *p) const {
+  // Gets the probability of each particle type (in ITS)
   for (Int_t i=0; i<kSPECIES; i++) p[i]=fITSr[i];
 }
 
@@ -272,56 +278,66 @@ Int_t AliESDtrack::GetTPCclusters(Int_t *idx) const {
 
 //_______________________________________________________________________
 void AliESDtrack::SetTPCpid(const Double_t *p) {  
+  // Sets values for the probability of each particle type (in TPC)
   for (Int_t i=0; i<kSPECIES; i++) fTPCr[i]=p[i];
   SetStatus(AliESDtrack::kTPCpid);
 }
 
 //_______________________________________________________________________
 void AliESDtrack::GetTPCpid(Double_t *p) const {
+  // Gets the probability of each particle type (in TPC)
   for (Int_t i=0; i<kSPECIES; i++) p[i]=fTPCr[i];
 }
 
 //_______________________________________________________________________
 void AliESDtrack::SetTRDpid(const Double_t *p) {  
+  // Sets values for the probability of each particle type (in TRD)
   for (Int_t i=0; i<kSPECIES; i++) fTRDr[i]=p[i];
   SetStatus(AliESDtrack::kTRDpid);
 }
 
 //_______________________________________________________________________
 void AliESDtrack::GetTRDpid(Double_t *p) const {
+  // Gets the probability of each particle type (in TRD)
   for (Int_t i=0; i<kSPECIES; i++) p[i]=fTRDr[i];
 }
 
 //_______________________________________________________________________
 void    AliESDtrack::SetTRDpid(Int_t iSpecies, Float_t p)
 {
+  // Sets the probability of particle type iSpecies to p (in TRD)
   fTRDr[iSpecies] = p;
 }
 
 Float_t AliESDtrack::GetTRDpid(Int_t iSpecies) const
 {
+  // Returns the probability of particle type iSpecies (in TRD)
   return fTRDr[iSpecies];
 }
 
 //_______________________________________________________________________
 void AliESDtrack::SetTOFpid(const Double_t *p) {  
+  // Sets the probability of each particle type (in TOF)
   for (Int_t i=0; i<kSPECIES; i++) fTOFr[i]=p[i];
   SetStatus(AliESDtrack::kTOFpid);
 }
 
 //_______________________________________________________________________
 void AliESDtrack::GetTOFpid(Double_t *p) const {
+  // Gets probabilities of each particle type (in TOF)
   for (Int_t i=0; i<kSPECIES; i++) p[i]=fTOFr[i];
 }
 
 //_______________________________________________________________________
 void AliESDtrack::SetESDpid(const Double_t *p) {  
+  // Sets the probability of each particle type for the ESD track
   for (Int_t i=0; i<kSPECIES; i++) fR[i]=p[i];
   SetStatus(AliESDtrack::kESDpid);
 }
 
 //_______________________________________________________________________
 void AliESDtrack::GetESDpid(Double_t *p) const {
+  // Gets probability of each particle type for the ESD track
   for (Int_t i=0; i<kSPECIES; i++) p[i]=fR[i];
 }
 
index 3fac114b90026909bafd4c55ebd0ecc7d210cc9d..44ed3c745e7d43ee5ce404121f69482e89b2d41c 100644 (file)
@@ -104,15 +104,15 @@ protected:
   Float_t fITSsignal;      // detector's PID signal
   Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID)
   
-  Double_t fVertexX;
-  Double_t fVertexY;
-  Double_t fVertexZ;
+  Double_t fVertexX; // X coordinate of point of closest approach to the vertex
+  Double_t fVertexY; // Y coordinate of point of closest approach to the vertex
+  Double_t fVertexZ; // Z coordinate of point of closest approach to the vertex
   
-  Double_t fVertexPx;
-  Double_t fVertexPy;
-  Double_t fVertexPz;
+  Double_t fVertexPx; // Px at point of closest approach to the vertex
+  Double_t fVertexPy; // Py at point of closest approach to the vertex
+  Double_t fVertexPz; // Pz at point of closest approach to the vertex
   
-  Bool_t   fVertex;
+  Bool_t   fVertex; // TRUE if the track was prolongated to the vertex
   
   // TPC related track information
   Float_t fTPCchi2;        // chi2 in the TPC