Fix compilation error on gcc 4.2
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Jun 2009 17:19:36 +0000 (17:19 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Jun 2009 17:19:36 +0000 (17:19 +0000)
ITS/AliITSdEdxAnalyzer.cxx

index c5c981f..3d61c24 100644 (file)
@@ -222,15 +222,12 @@ Int_t AliITSdEdxAnalyzer::GetPaticleIdFromTPC(const AliESDtrack* track) const {
 Double_t AliITSdEdxAnalyzer::BetheBloch(const Float_t p, const Float_t m) const {
   //
   Double_t dedxbb=0.;
-  switch(fBBmodel){
-  case 0:
+  if(fBBmodel==0){
     Double_t betagamma=p/m;
     Double_t conv=fDensity*1E6*fThickness/116.31*fMIP;
     dedxbb=conv*AliExternalTrackParam::BetheBlochSolid(betagamma);
-    break;
-  case 1:
+  }else if(fBBmodel==1){
     dedxbb=fMIP*AliITSpidESD::Bethe(p,m);
-    break;
   }
   return dedxbb;
 }