]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenHIJINGpara.cxx
Added histogram with ITS cluster map (Francesco)
[u/mrichter/AliRoot.git] / EVGEN / AliGenHIJINGpara.cxx
index 22115af47fb369e86bb45eb364ecfeb4690a25e3..e630b8ee74a37b6684af27ea9952ee9d2523e310 100644 (file)
@@ -60,7 +60,7 @@ ClassImp(AliGenHIJINGpara)
 
 
 //_____________________________________________________________________________
-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
@@ -200,23 +200,6 @@ AliGenHIJINGpara::AliGenHIJINGpara(Int_t npart)
     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()
 {
@@ -298,6 +281,13 @@ void AliGenHIJINGpara::Init()
 //
     if (fPi0Decays && gMC)
        fDecayer = gMC->GetDecayer();
+
+    if (fPi0Decays)
+    {
+       fDecayer->SetForceDecay(kNeutralPion);
+       fDecayer->Init();
+    }
+    
 }
 
 
@@ -438,7 +428,7 @@ void AliGenHIJINGpara::DecayPi0(Float_t* orig, Float_t * p)
     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);
@@ -453,12 +443,6 @@ void AliGenHIJINGpara::DecayPi0(Float_t* orig, Float_t * p)
     fNt = nt;
 }
 
-void AliGenHIJINGpara::Copy(TObject &) const
-{
-  Fatal("Copy","Not implemented!\n");
-}
-
-
 void AliGenHIJINGpara::Draw( const char * /*opt*/)
 {
     //