]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTARTv2.cxx
syntax correction for Mylar
[u/mrichter/AliRoot.git] / START / AliSTARTv2.cxx
index 3f17c686ce12fb498824c9588820923add9b32a3..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);   
@@ -243,7 +244,7 @@ void AliSTARTv2::CreateMaterials()
    
    AliMixture (3, "Al2O3   $", aal2o3, zal2o3, denscer, -2, wal2o3);
    AliMixture (4, "PMT glass   $", aglass, zglass, dglass, -2, wglass);
-   char namate[21];
+   char namate[21]="";
    gMC->Gfmate ((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
    acer[0] = a;
    zcer[0] = z;
@@ -372,7 +373,7 @@ void AliSTARTv2::StepManager()
           hitPhoton[4] = 1e9 * gMC->TrackTime();
           hitPhoton[5] = 1e9 * gMC->Etot();
           
-          AddHitPhoton (gAlice->CurrentTrack(), 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->CurrentTrack(),vol,hits);      
+      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,hits);      
     }
   }