* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
+/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// //
#include <stdlib.h>
#include <TRandom.h>
+#include <TMCProcess.h>
+
+#include "AliRun.h"
#include "AliTRDsimpleGen.h"
#include "AliTRDsimpleMC.h"
+#include "AliMC.h"
ClassImp(AliTRDsimpleGen)
}
//_____________________________________________________________________________
-AliTRDsimpleGen::AliTRDsimpleGen(const AliTRDsimpleGen &g)
+AliTRDsimpleGen::AliTRDsimpleGen(const AliTRDsimpleGen &g):TObject(g)
{
//
// AliTRDsimpleGen copy constructor
,fMomMax);
}
printf("\n");
+
+ // Add one dummy particle to the stack so that AddHit will work
+ Float_t mom[3] = { 0.0 };
+ Float_t vtx[3] = { 0.0 };
+ Float_t pol[3] = { 0.0 };
+ Int_t ntr = 0;
+ gAlice->GetMCApp()->PushTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
+
}
Double_t p = fMomMax;