]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 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;
index 47459a256ff1369ffa562b76664d22ae87173c27..5a1b9d62e293460cd76711921c0610e8fec93b4e 100644 (file)
@@ -29,7 +29,7 @@ StrucFunc_t;
 typedef enum
 {
     analog,
-    non_analo
+    non_analog
 }
 Weighting_t;
 #endif