]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFv3.cxx
Correctly taking into account multiple coulomb scattering effects
[u/mrichter/AliRoot.git] / TOF / AliTOFv3.cxx
index 589d27e4aefc3f466ecac818db19a2756d507305..4c871b3bf6810bc888525ea122714ca0fbb7181b 100644 (file)
@@ -22,7 +22,7 @@
 //                                                                           //
 //  VERSION WITH 5 MODULES AND TILTED STRIPS                                 //
 //  HITS DEFINED FOR THIS VERSION                                            //
-//  HOLES FOR RICH DETECTOR                                                  //
+//  HOLES FOR HMPID DETECTOR                                                  //
 //                                                                           //
 //   Authors:                                                                //
 //                                                                           //
@@ -57,6 +57,7 @@
 #include "AliRun.h"
 #include "AliTOFv3.h"
 #include "AliTOFConstants.h" // AdC
+#include "AliMC.h"
  
 ClassImp(AliTOFv3)
  
@@ -169,7 +170,7 @@ void AliTOFv3::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 !=1 && nodeNum !=17 && nodeNum !=18)
       { 
@@ -177,7 +178,7 @@ void AliTOFv3::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 RICH detector, central part
+      } // Holes for HMPID detector, central part
   }
 }
 
@@ -1025,7 +1026,7 @@ void AliTOFv3::Init()
            "  TOF  "
            "**************************************\n",ClassName());
     printf("\n%s   Version 3 of TOF initialing, "
-                "TOF with holes for RICH detector\n",ClassName());
+                "TOF with holes for HMPID detector\n",ClassName());
   }
 
   AliTOF::Init();
@@ -1059,7 +1060,7 @@ void AliTOFv3::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) 
   {    
@@ -1140,6 +1141,6 @@ void AliTOFv3::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
+    AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol, hits);
   }
 }