* 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)
// 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++;
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);
}