X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliLegoGeneratorXYZ.cxx;h=72de0f141de76633506c94b0d5453382ef958186;hb=9b373e9a4a6f778183d34c5b4adbb049456f472f;hp=3f407fea606dd8f44dd244d337fc65658ae84933;hpb=9e1a0ddb8feb3fb19ca04ee19673f48c265a8fe6;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliLegoGeneratorXYZ.cxx b/STEER/AliLegoGeneratorXYZ.cxx index 3f407fea606..72de0f141de 100644 --- a/STEER/AliLegoGeneratorXYZ.cxx +++ b/STEER/AliLegoGeneratorXYZ.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 x - y - z bins +// Uses geantino rays to check the material distributions and detector's +// geometry +// Author: A.Morsch +//------------------------------------------------------------------------- #include "AliLegoGeneratorXYZ.h" #include "AliRun.h" +#include "AliMC.h" +#include "AliLog.h" ClassImp(AliLegoGeneratorXYZ) @@ -101,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++; @@ -131,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); }