Small corrections from A.Morsch for weighted events handling
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 1999 06:52:09 +0000 (06:52 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 1999 06:52:09 +0000 (06:52 +0000)
EVGEN/AliGenParam.cxx
EVGEN/GenTypeDefs.h

index 54ee2ed..24b92eb 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;
index 47459a2..5a1b9d6 100644 (file)
@@ -29,7 +29,7 @@ StrucFunc_t;
 typedef enum
 {
     analog,
-    non_analo
+    non_analog
 }
 Weighting_t;
 #endif