Init with values, to satisfy CINT compilation
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Apr 2009 07:48:11 +0000 (07:48 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Apr 2009 07:48:11 +0000 (07:48 +0000)
PWG4/JetTasks/AliAnalysisTaskPWG4PidDetEx.cxx
PWG4/JetTasks/AliAnalysisTaskPWG4PidDetEx.h

index d30d91e..dac0025 100644 (file)
@@ -61,9 +61,14 @@ using namespace std;
 ClassImp(AliAnalysisTaskPWG4PidDetEx)
 
 const Double_t AliAnalysisTaskPWG4PidDetEx::fgkCtau = 370;                //  distance for kaon decay
-const Double_t AliAnalysisTaskPWG4PidDetEx::fgkPionMass = TDatabasePDG::Instance()->GetParticle(211)->Mass();
-const Double_t AliAnalysisTaskPWG4PidDetEx::fgkKaonMass = TDatabasePDG::Instance()->GetParticle(321)->Mass();
-const Double_t AliAnalysisTaskPWG4PidDetEx::fgkProtonMass = TDatabasePDG::Instance()->GetParticle(2212)->Mass();
+const Double_t AliAnalysisTaskPWG4PidDetEx::fgkPionMass = 1.39570000000000000e-01;
+const Double_t AliAnalysisTaskPWG4PidDetEx::fgkKaonMass = 4.93599999999999983e-01; 
+const Double_t AliAnalysisTaskPWG4PidDetEx::fgkProtonMass = 9.38270000000000048e-01;
+const Double_t AliAnalysisTaskPWG4PidDetEx::fgkC = 2.99792458e-2;
+
+
+
+
 
 //_____________________________________________________________________________
 AliAnalysisTaskPWG4PidDetEx::AliAnalysisTaskPWG4PidDetEx():
@@ -576,7 +581,7 @@ Double_t AliAnalysisTaskPWG4PidDetEx::IntegratedLength(AliVTrack* track) const
   AliAODTrack* trackAOD = (AliAODTrack*)track;
   trackAOD->GetDetPid()->GetIntegratedTimes(intTime);
   timeElectron = intTime[0];
-  intLength = TMath::C()*timeElectron;
+  intLength = fgkC*timeElectron;
 
   return intLength;
 }
@@ -588,13 +593,13 @@ Double_t AliAnalysisTaskPWG4PidDetEx::MassSquared(AliVTrack* track) const
 
   if(fAnalysisType == "ESD"){
     AliESDtrack* trackESD = (AliESDtrack*)track;
-    beta = trackESD->GetIntegratedLength()/trackESD->GetTOFsignal()/TMath::C();
+    beta = trackESD->GetIntegratedLength()/trackESD->GetTOFsignal()/fgkC;
     mass = trackESD->P()*trackESD->P()*(1./(beta*beta) - 1.0);
   }
 
   if(fAnalysisType == "AOD"){
     AliAODTrack* trackAOD = (AliAODTrack*)track;
-    beta =IntegratedLength(trackAOD)/trackAOD->GetDetPid()->GetTOFsignal()/TMath::C();
+    beta =IntegratedLength(trackAOD)/trackAOD->GetDetPid()->GetTOFsignal()/fgkC;
     mass = trackAOD->P()*trackAOD->P()*(1./(beta*beta) - 1.0);
   }
   
index c70fcb0..d257dc7 100644 (file)
@@ -47,6 +47,7 @@ class AliAnalysisTaskPWG4PidDetEx : public AliAnalysisTaskSE {
   static const Double_t fgkPionMass;            //  pion mass
   static const Double_t fgkKaonMass;            //  kaon mass
   static const Double_t fgkProtonMass;          //  proton mass
+  static const Double_t fgkC;                  //  peed of light
 
 
   AliESDEvent* fESD;                //! ESD object