]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliKalmanTrack.cxx
Corrections to obey the coding conventions
[u/mrichter/AliRoot.git] / STEER / AliKalmanTrack.cxx
index 6c983b5bab0274a11f85a20d5a22cc6767820354..5b1a85f0a2a776354e75ccfd9d5164c957d921fe 100644 (file)
@@ -81,7 +81,7 @@ void AliKalmanTrack::StartTimeIntegral()
   //  Warning("StartTimeIntegral", "Reseting Recorded Time.");
 
   fStartTimeIntegral = kTRUE;
-  for(Int_t i=0; i<fTypes; i++) fIntegratedTime[i] = 0;  
+  for(Int_t i=0; i<fgkTypes; i++) fIntegratedTime[i] = 0;  
   fIntegratedLength = 0;
 }
 //_______________________________________________________________________
@@ -107,13 +107,13 @@ void AliKalmanTrack:: AddTimeStep(Double_t length)
   // S.Radomski@gsi.de
   // 
   
-  static const Double_t cc = 2.99792458e-2;
+  static const Double_t kcc = 2.99792458e-2;
 
   if (!fStartTimeIntegral) return;
   
   fIntegratedLength += length;
 
-  static Int_t pdgCode[fTypes]  = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+  static Int_t pdgCode[fgkTypes]  = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
   TDatabasePDG *db = TDatabasePDG::Instance();
 
   Double_t xr, param[5];
@@ -127,11 +127,11 @@ void AliKalmanTrack:: AddTimeStep(Double_t length)
 
   if (length > 100) return;
 
-  for (Int_t i=0; i<fTypes; i++) {
+  for (Int_t i=0; i<fgkTypes; i++) {
     
     Double_t mass = db->GetParticle(pdgCode[i])->Mass();
     Double_t correction = TMath::Sqrt( pt*pt * (1 + tgl*tgl) + mass * mass ) / p;
-    Double_t time = length * correction / cc;
+    Double_t time = length * correction / kcc;
 
     //cout << mass << "\t" << pt << "\t" << p << "\t" 
     //     << correction << endl;
@@ -158,9 +158,9 @@ Double_t AliKalmanTrack::GetIntegratedTime(Int_t pdg) const
     return 0.;
   }
 
-  static Int_t pdgCode[fTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+  static Int_t pdgCode[fgkTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
 
-  for (Int_t i=0; i<fTypes; i++)
+  for (Int_t i=0; i<fgkTypes; i++)
     if (pdgCode[i] == TMath::Abs(pdg)) return fIntegratedTime[i];
 
   Warning(":GetIntegratedTime","Particle type [%d] not found", pdg);
@@ -174,9 +174,9 @@ void AliKalmanTrack::PrintTime() const
   // Prints time for all hypothesis
   //
 
-  static Int_t pdgCode[fTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
+  static Int_t pdgCode[fgkTypes] = {kElectron, kMuonMinus, kPiPlus, kKPlus, kProton};
 
-  for (Int_t i=0; i<fTypes; i++)
+  for (Int_t i=0; i<fgkTypes; i++)
     printf("%d: %.2f  ", pdgCode[i], fIntegratedTime[i]);
   printf("\n");  
 }