]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFv2FHoles.cxx
Bug in V0A fixed (Guillermo)
[u/mrichter/AliRoot.git] / TOF / AliTOFv2FHoles.cxx
index 7dde1d8f51613c628a80801c71dd9c8ea2456425..572171a54219ca266464f8832f5425d26fc791f4 100644 (file)
@@ -22,7 +22,7 @@
 //
 //  VERSION WITH 5 MODULES AND TILTED STRIPS 
 //  
-//  HOLES FOR PHOS AND RICH DETECTOR
+//  HOLES FOR PHOS AND HMPID DETECTOR
 //
 //  !Not Official version!
 //
@@ -176,7 +176,7 @@ void AliTOFv2FHoles::BuildGeometry()
        node = new TNode(nodeName3,nodeName3,"S_TOF_B",krTof*TMath::Cos(ang),krTof*TMath::Sin(ang),-zOffsetB,rotMatNum);
        node->SetLineColor(kColorTOF);
        fNodes->Add(node); 
-      } // Holes for RICH detector
+      } // Holes for HMPID detector
     
     if ((nodeNum<7 || nodeNum>11) && nodeNum !=1 && nodeNum!=17 && nodeNum !=18)
       { 
@@ -184,7 +184,7 @@ void AliTOFv2FHoles::BuildGeometry()
        node = new TNode(nodeName4,nodeName4,"S_TOF_A",krTof*TMath::Cos(ang),krTof*TMath::Sin(ang),zOffsetA,rotMatNum);
        node->SetLineColor(kColorTOF);
        fNodes->Add(node); 
-      } // Holes for PHOS detector (+ Holes for RICH detector, central part)
+      } // Holes for PHOS detector (+ Holes for HMPID detector, central part)
   } // end loop on nodeNum
 }
 
@@ -1046,7 +1046,7 @@ void AliTOFv2FHoles::Init()
            "  TOF  "
            "**************************************\n",ClassName());
     printf("\n%s:   Version 2 of TOF initialing, "
-           "TOF with holes for PHOS and RICH \n",ClassName());
+           "TOF with holes for PHOS and HMPID \n",ClassName());
   }  
 
   AliTOF::Init();
@@ -1080,7 +1080,7 @@ void AliTOFv2FHoles::StepManager()
   Int_t   *idtmed = fIdtmed->GetArray()-499;
   Float_t incidenceAngle;
   
-  if(gMC->GetMedium()==idtmed[513] && 
+  if(gMC->CurrentMedium()==idtmed[513] && 
      gMC->IsTrackEntering() && gMC->TrackCharge()
      && gMC->CurrentVolID(copy)==fIdSens) 
   {