]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TUHKMgen/AliGenUHKM.cxx
Container made browsable
[u/mrichter/AliRoot.git] / TUHKMgen / AliGenUHKM.cxx
index bf16aac88c612c319b63c473308e94a150953e56..f555186bceec6a9649ae38c2091ac499f270ae79 100755 (executable)
@@ -346,8 +346,6 @@ void AliGenUHKM::Generate()
   }
 
   Int_t* idsOnStack = new Int_t[np];
-  Int_t* newPos     = new Int_t[np];
-  for(Int_t i=0; i<np; i++) newPos[i] = i;
   
   //_________ Loop for particle selection
   for(Int_t i=0; i<np; i++) {
@@ -468,8 +466,8 @@ void AliGenUHKM::Generate()
   ((AliGenHijingEventHeader*) header)->SetImpactParameter(b);
   ((AliGenHijingEventHeader*) header)->SetTotalEnergy(0.0);
   ((AliGenHijingEventHeader*) header)->SetHardScatters(0);
-  ((AliGenHijingEventHeader*) header)->SetParticipants(npart, 0);
-  ((AliGenHijingEventHeader*) header)->SetCollisions(nbin, 0, 0, 0);
+  ((AliGenHijingEventHeader*) header)->SetParticipants(Int_t(npart), 0);
+  ((AliGenHijingEventHeader*) header)->SetCollisions(Int_t(nbin), 0, 0, 0);
   ((AliGenHijingEventHeader*) header)->SetSpectators(0, 0, 0, 0);
   ((AliGenHijingEventHeader*) header)->SetReactionPlaneAngle(0);//evrot);