]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenParam.cxx
Small corrections from A.Morsch for weighted events handling
[u/mrichter/AliRoot.git] / EVGEN / AliGenParam.cxx
index 54ee2ed4153477572abc7319c4c15bf5cf5efae7..24b92ebaba6f3944c1db00473edf1c21d1e2019a 100644 (file)
@@ -90,7 +90,7 @@ void AliGenParam::Init()
   Float_t IntPt0 = PtPara->Integral(0,15);
   Float_t IntPtS = PtPara->Integral(fPtMin,fPtMax);
   Float_t PhiWgt=(fPhiMax-fPhiMin)/2./TMath::Pi();
-  if (fAnalog) {
+  if (fAnalog == analog) {
      fYWgt  = IntYS/fdNdy0;
      fPtWgt = IntPtS/IntPt0;
      fParentWeight = fYWgt*fPtWgt*PhiWgt/fNpart;
@@ -179,7 +179,7 @@ void AliGenParam::Generate()
          ty=Float_t(TMath::TanH(fYPara->GetRandom()));
 //
 // pT
-         if (fAnalog) {
+         if (fAnalog == analog) {
              pt=fPtPara->GetRandom();
              wgtp=fParentWeight;
              wgtch=fChildWeight;