X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGeneratorPhiZ.cxx;h=7ffaa4df63e1a53beb26fc470693752c7b35eb7a;hb=4642ac4bd21da41fbc67953351c2695ba0962f83;hp=24a3807e285666a0facd9966f44a6b7b098f76fa;hpb=116cbefdd457541a56d5dfd1a53b09c3ccc50964;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGeneratorPhiZ.cxx b/STEER/AliLegoGeneratorPhiZ.cxx index 24a3807e285..7ffaa4df63e 100644 --- a/STEER/AliLegoGeneratorPhiZ.cxx +++ b/STEER/AliLegoGeneratorPhiZ.cxx @@ -13,16 +13,19 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* $Header$ */ +/* $Id$ */ //------------------------------------------------------------------------- -// // Lego generator in Phi - Z bins -// +// Uses geantino rays to check the material distributions and detector's +// geometry +// Author: A.Morsch //------------------------------------------------------------------------- #include "AliLegoGeneratorPhiZ.h" #include "AliRun.h" +#include "AliMC.h" +#include "AliLog.h" ClassImp(AliLegoGeneratorPhiZ) @@ -43,11 +46,11 @@ void AliLegoGeneratorPhiZ::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 Phi-bin:%d\n",fCoor2Bin); + AliDebug(1, Form("Generating rays in Phi-bin:%d",fCoor2Bin)); fCoor1Bin=0; } else fCoor1Bin++; fCurCoor1 = (fCoor1Min+(fCoor1Bin+0.5)*(fCoor1Max-fCoor1Min)/fNCoor1); @@ -77,6 +80,6 @@ void AliLegoGeneratorPhiZ::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); }