]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFv2.cxx
First version of Raw Data reconstruction. Added appropriate Reconstruct method to...
[u/mrichter/AliRoot.git] / TOF / AliTOFv2.cxx
index 549f7f1f2dc3807d563554ed1373bc91f9549dc3..362603bd838d19f54232ab8e5b9efce99dbb580b 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                                         //
 //                                                                           //
 //   Authors:                                                                //
 //                                                                           //
@@ -171,7 +171,7 @@ void AliTOFv2::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)
       { 
@@ -179,7 +179,7 @@ void AliTOFv2::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
 }
 
@@ -1037,7 +1037,7 @@ void AliTOFv2::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();
@@ -1071,7 +1071,7 @@ void AliTOFv2::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) 
   {