gcc 4.3 warnings fixed.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Nov 2008 14:27:01 +0000 (14:27 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Nov 2008 14:27:01 +0000 (14:27 +0000)
EVGEN/AliGenCorrHF.cxx
EVGEN/AliGenGSIlib.cxx

index e70337c..81bf8f4 100644 (file)
@@ -439,7 +439,7 @@ void AliGenCorrHF::Generate()
            //
            // children
            
-           if (ChildSelected(TMath::Abs(kf)) || fForceDecay == kAll && trackIt[i])
+           if ((ChildSelected(TMath::Abs(kf)) || fForceDecay == kAll) && trackIt[i])
              {
                if (fCutOnChild) {
                  pc[0]=iparticle->Px();
index 799e1fb..af3bded 100644 (file)
@@ -67,7 +67,7 @@ Double_t AliGenGSIlib::PtUpsilonFlat( Double_t *px, Double_t */*dummy*/ )
   Double_t x=*px;
   Double_t weight = 0.;
 
-  if (kptmin < x < kptmax) weight = 1.;
+  if ((x > kptmin) &&  (x < kptmax)) weight = 1.;
 
   return weight;
    
@@ -222,7 +222,7 @@ Double_t AliGenGSIlib::PtJpsiFlat( Double_t *px, Double_t */*dummy*/ )
   Double_t x=*px;
   Double_t weight = 0.;
 
-  if (kptmin < x < kptmax) weight = 1.;
+  if ((x > kptmin) && (x < kptmax)) weight = 1.;
 
   return weight;