X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGeneratorEta.cxx;h=e1844441553f6037c258dcf0756bdbe4099e3019;hb=961fb9b8cd68336ecf6ee22d4295d324f4093e1d;hp=3de42d5291ec78865bac64ef5f78c9c6a5eb2d47;hpb=acd848976f35aa0d797a794f59e7d83f4bfa2c8c;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGeneratorEta.cxx b/STEER/AliLegoGeneratorEta.cxx index 3de42d5291e..e1844441553 100644 --- a/STEER/AliLegoGeneratorEta.cxx +++ b/STEER/AliLegoGeneratorEta.cxx @@ -16,13 +16,16 @@ /* $Id$ */ //------------------------------------------------------------------------ -// // Lego generator in Eta bins -// +// Uses geantino rays to check the material distributions and detector's +// geometry +// Author: A.Morsch //------------------------------------------------------------------------ #include "AliLegoGeneratorEta.h" #include "AliRun.h" +#include "AliMC.h" +#include "AliLog.h" ClassImp(AliLegoGeneratorEta) @@ -43,11 +46,11 @@ void AliLegoGeneratorEta::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 eta bin:%d\n",fCoor2Bin); + AliDebug(1, Form("Generating rays in eta bin:%d",fCoor2Bin)); fCoor1Bin=0; } else fCoor1Bin++; @@ -80,6 +83,6 @@ void AliLegoGeneratorEta::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); }