* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
-////////////////////////////////////////////////////////////////////////
-//
-// generates n particles with in the same phi angle, varies theta
+/* $Id$ */
+
+
+// Generates n particles with in the same phi angle, varies theta
// in equidistant intervals
// This class is intended to use for studies of TPC response
// via merging with background event.
-//
// Note that for a given theta pt and p are not independent
// Range for only one variable (pt or p) should be given.
// Based on the AliGenBox class written by andreas.morsch@cern.ch
//
// Comments and suggestions: Jiri.Chudoba@cern.ch
-//
-////////////////////////////////////////////////////////////////////////
+
+#include <TPDGCode.h>
+
+#include "AliConst.h"
#include "AliGenThetaSlice.h"
#include "AliRun.h"
-#include "AliConst.h"
-#include "AliPDG.h"
ClassImp(AliGenThetaSlice)
//_____________________________________________________________________________
AliGenThetaSlice::AliGenThetaSlice()
- :AliGenerator()
+ :AliGenerator(),
+ fIpart(0)
{
//
// Default constructor
//
- fIpart=0;
}
//_____________________________________________________________________________
AliGenThetaSlice::AliGenThetaSlice(Int_t npart)
- :AliGenerator(npart)
+ :AliGenerator(npart),
+ fIpart(kProton)
{
//
// Standard constructor
//
fName = "ThetaSlice";
fTitle = "Particle generator - const. phi, slices in theta";
- // Generate Proton by default
- fIpart=kProton;
}
//_____________________________________________________________________________
TMath::Sqrt(-2*TMath::Log(random[2*j+1]));
}
}
- SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+ PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
}
}