X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGenerator.cxx;h=e6ba5e14b94ad6abf2581e88c77c429d416ac09d;hb=1de75654edbe942377a500b8d91a4986daa36ece;hp=14d580084f69fee3baf72d8c2df93cbafeccce53;hpb=fb17acd412e4de1f64fd41bde1684280cacc9016;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGenerator.cxx b/STEER/AliLegoGenerator.cxx index 14d580084f6..e6ba5e14b94 100644 --- a/STEER/AliLegoGenerator.cxx +++ b/STEER/AliLegoGenerator.cxx @@ -13,10 +13,19 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* $Header$ */ +/* $Id$ */ + +//------------------------------------------------------------------------ +// Generic Lego generator code +// Uses geantino rays to check the material distributions and detector's +// geometry +// Author: A.Morsch +//------------------------------------------------------------------------ #include "AliLegoGenerator.h" #include "AliRun.h" +#include "AliMC.h" +#include "AliLog.h" ClassImp(AliLegoGenerator) @@ -86,11 +95,11 @@ void AliLegoGenerator::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++; @@ -118,7 +127,7 @@ void AliLegoGenerator::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); }