X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGeneratorXYZ.cxx;h=72de0f141de76633506c94b0d5453382ef958186;hb=8e1ee57ad4a96be0d152e98f0c1f4b25cfd63d8b;hp=1ad9748fe7a7d811a4b6aa8d7c46542a0eb1a174;hpb=5d8718b8c08f9365868aedf62eb815945720f4da;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGeneratorXYZ.cxx b/STEER/AliLegoGeneratorXYZ.cxx index 1ad9748fe7a..72de0f141de 100644 --- a/STEER/AliLegoGeneratorXYZ.cxx +++ b/STEER/AliLegoGeneratorXYZ.cxx @@ -24,6 +24,8 @@ #include "AliLegoGeneratorXYZ.h" #include "AliRun.h" +#include "AliMC.h" +#include "AliLog.h" ClassImp(AliLegoGeneratorXYZ) @@ -98,11 +100,11 @@ void AliLegoGeneratorXYZ::Generate() // Prepare for next step if(fCoor1Bin>=fNCoor1-1) if(fCoor2Bin>=fNCoor2-1) { - Warning("Generate","End of Lego Generation"); + AliWarning("End of Lego Generation"); return; } else { fCoor2Bin++; - printf("Generating rays in Coordinate 2 bin:%d\n",fCoor2Bin); + AliDebug(1, Form("Generating rays in Coordinate 2 bin:%d",fCoor2Bin)); fCoor1Bin=0; } else fCoor1Bin++; @@ -128,7 +130,7 @@ void AliLegoGeneratorXYZ::Generate() Float_t polar[3]={0.,0.,0.}; Int_t ntr; - gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr); + gAlice->GetMCApp()->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr); }