//_____________________________________________________________________________
-static Double_t ptpi(Double_t *px, Double_t *)
+static Double_t ptpi(const Double_t *px, const Double_t *)
{
//
// PT-PARAMETERIZATION CDF, PRL 61(88) 1819
SetPtRange();
}
-AliGenHIJINGpara::AliGenHIJINGpara(const AliGenHIJINGpara & para):
- AliGenerator(para),
- fNt(-1),
- fNpartProd(0),
- fPi0Decays(kFALSE),
- fPtWgtPi(0.),
- fPtWgtKa(0.),
- fPtpi(0),
- fPtka(0),
- fETApic(0),
- fETAkac(0),
- fDecayer(0)
-{
-// Copy constructor
- para.Copy(*this);
-}
-
//_____________________________________________________________________________
AliGenHIJINGpara::~AliGenHIJINGpara()
{
//
if (fPi0Decays && gMC)
fDecayer = gMC->GetDecayer();
+
+ if (fPi0Decays)
+ {
+ fDecayer->SetForceDecay(kNeutralPion);
+ fDecayer->Init();
+ }
+
}
Float_t polar[3] = {0., 0., 0.};
Int_t np = fDecayer->ImportParticles(particles);
fNpartProd += (np-1);
- Int_t nt;
+ Int_t nt = 0;
for (Int_t i = 1; i < np; i++)
{
TParticle* iParticle = (TParticle *) particles->At(i);
fNt = nt;
}
-void AliGenHIJINGpara::Copy(TObject &) const
-{
- Fatal("Copy","Not implemented!\n");
-}
-
-
void AliGenHIJINGpara::Draw( const char * /*opt*/)
{
//