X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGeneratorEta.cxx;h=e1844441553f6037c258dcf0756bdbe4099e3019;hb=d750130ac6a69ac0b6ba55dc6474025a53856127;hp=ecb200dc76b19bfb67e9e530f916bf9a904489b0;hpb=10bd75357a851b6027fdcb113bc2a736a94d9dfc;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGeneratorEta.cxx b/STEER/AliLegoGeneratorEta.cxx index ecb200dc76b..e1844441553 100644 --- a/STEER/AliLegoGeneratorEta.cxx +++ b/STEER/AliLegoGeneratorEta.cxx @@ -13,20 +13,19 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.2 2000/11/30 07:12:49 alibrary -Introducing new Rndm and QA classes +/* $Id$ */ -Revision 1.1 2000/10/26 14:18:05 morsch -Add new AliLegoGenerator classes: -AliLegoGeneratorXYZ: carthesian binning -AliLegoGeneratorEta: eta-phi binning - -*/ +//------------------------------------------------------------------------ +// 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) @@ -47,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++; @@ -84,6 +83,6 @@ void AliLegoGeneratorEta::Generate() Float_t polar[3]={0.,0.,0.}; Int_t ntr; - gAlice->SetTrack(1, 0, kMpart, pmom, orig, polar, 0, kPPrimary, ntr); + gAlice->GetMCApp()->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr); }