Fix warnings
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jun 2009 10:17:33 +0000 (10:17 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jun 2009 10:17:33 +0000 (10:17 +0000)
TTherminator/Therminator/Event.cxx

index 61d62ad..0949c42 100644 (file)
@@ -198,19 +198,22 @@ Event::AddParticle(Particle* aParticle)
        if (((*tPLIter).GetMass() == aParticle->GetMass()) &&
            ((*tPLIter).GetI3() == aParticle->GetI3()) &&
            ((*tPLIter).GetBarionN() == aParticle->GetBarionN()) &&
-           ((*tPLIter).GetStrangeness() == aParticle->GetStrangeness()))
-         break;
-       if ((*tPLIter).GetMass() < aParticle->GetMass())
-         break;
-       else if ((*tPLIter).GetMass() == aParticle->GetMass())
-         if ((*tPLIter).GetI3() < aParticle->GetI3())
-           break;
-         else if ((*tPLIter).GetI3() == aParticle->GetI3())
-           if ((*tPLIter).GetBarionN() < aParticle->GetBarionN())
-             break;
-           else if ((*tPLIter).GetBarionN() == aParticle->GetBarionN())
-             if ((*tPLIter).GetStrangeness() < aParticle->GetStrangeness())
-               break;
+           ((*tPLIter).GetStrangeness() == aParticle->GetStrangeness())) {
+         break; }
+       if ((*tPLIter).GetMass() < aParticle->GetMass()) {
+         break; }
+       else if ((*tPLIter).GetMass() == aParticle->GetMass()) {
+         if ((*tPLIter).GetI3() < aParticle->GetI3()) {
+           break; }
+         else if ((*tPLIter).GetI3() == aParticle->GetI3()) {
+           if ((*tPLIter).GetBarionN() < aParticle->GetBarionN()) {
+             break; }
+           else if ((*tPLIter).GetBarionN() == aParticle->GetBarionN()) {
+             if ((*tPLIter).GetStrangeness() < aParticle->GetStrangeness()) {
+               break; }
+           }
+         }
+       }
        tPLIter++;
       }
     mParticles.insert(tPLIter, *aParticle);
@@ -294,7 +297,7 @@ Event::DecayParticles()
   //  InitParticleScan();
   while ((tFather = GetParticleOfCount(tCount))) 
     {
-      if (tFather->GetParticleType()->GetGamma() >= 0.0)
+      if (tFather->GetParticleType()->GetGamma() >= 0.0) {
        if ((tFather->GetParticleType()->GetTable()) && (((DecayTable *) tFather->GetParticleType()->GetTable())->GetChannelCount()+1 > 0))
          {
            tDecayer->DecayParticle(tFather, &tPart1, &tPart2, &tPart3);
@@ -336,6 +339,7 @@ Event::DecayParticles()
        else
          {
          }
+      }
       tCount++;
     }