]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTARTv2.cxx
syntax correction for Mylar
[u/mrichter/AliRoot.git] / START / AliSTARTv2.cxx
index c855cb2390888e8b44540e6949360f8fff8c8658..39716f998821c6fcb026bc94b75df967f42a4258 100644 (file)
@@ -45,6 +45,7 @@
 #include "AliRun.h"
 #include "AliSTARThit.h"
 #include "AliSTARTv2.h"
+#include "AliMC.h"
 //#include "AliSTARThitPhoton.h"
 //#include "TGeant3.h"
 
@@ -101,8 +102,8 @@ void AliSTARTv2::CreateGeometry()
     
   gMC->Gsvolu ("0RST", "TUBE", idtmed[3], pstart, 3);
   gMC->Gsvolu ("0LST", "TUBE", idtmed[3], pstart, 3);
-  gMC->Gspos ("0RST", 1, "ALIC", 0., 0., zRight, 0, "ONLY");
-  gMC->Gspos ("0LST", 1, "ALIC", 0., 0., -zLeft, idrotm[901], "ONLY");
+  gMC->Gspos ("0RST", 1, "ALIC", 0., 0., -zRight, 0, "ONLY");
+  gMC->Gspos ("0LST", 1, "ALIC", 0., 0., zLeft, idrotm[901], "ONLY");
 
 //  12 unit: PMT + divider
   gMC->Gsvolu("0INS", "TUBE", idtmed[3], pinstart, 3);   
@@ -372,7 +373,7 @@ void AliSTARTv2::StepManager()
           hitPhoton[4] = 1e9 * gMC->TrackTime();
           hitPhoton[5] = 1e9 * gMC->Etot();
           
-          AddHitPhoton (gAlice->GetCurrentTrackNumber(), vol, hitPhoton);
+          AddHitPhoton (gAlice->GetMCApp()->GetCurrentTrackNumber(), vol, hitPhoton);
        }
        gMC->StopTrack();
      }
@@ -436,7 +437,7 @@ void AliSTARTv2::StepManager()
       //        printf(" HITS on START Exit %f\n",hits[i]); } 
       //for (i=0; i<=1; i++) { printf("START vol %d\n",vol[i]);}
      
-      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);      
+      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,hits);      
     }
   }