coverity
authorrvernet <rvernet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 10:08:52 +0000 (10:08 +0000)
committerrvernet <rvernet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 10:08:52 +0000 (10:08 +0000)
CORRFW/AliCFEventGenCuts.cxx
CORRFW/AliCFParticleGenCuts.cxx
CORRFW/AliCFTrackQualityCuts.cxx

index cddebf5..a6eb8a5 100644 (file)
@@ -225,20 +225,23 @@ Bool_t AliCFEventGenCuts::IsMBProcType(AliMCEvent *ev, PrType iproc){
       if ( process!=92 && process!=93 && process!=94)
        return kTRUE;
     }
+    break;
   case kSD: //Single Diffractive
     {
       if ( process==92 || process==93)
        return kTRUE;
     }
+    break;
   case kDD: //Double Diffractive
     {
       if ( process==94)
        return kTRUE;
     }
-  default: return kFALSE;
+    break;
+  default: return kFALSE; break;
   }
   
-  return kFALSE;     
+  return kFALSE;
 }
  //____________________________________________________________________________
 Int_t AliCFEventGenCuts::ProcType(AliGenEventHeader *genHeader) {
index 4d9bc03..d50ed06 100644 (file)
@@ -545,6 +545,7 @@ void AliCFParticleGenCuts::SelectionBitMap(AliAODMCParticle* mcPart)
        goodDecay = kTRUE ;
        for (Int_t iDaughter = 0 ; iDaughter<nDaughters; iDaughter++) {
          AliAODMCParticle* daug = dynamic_cast<AliAODMCParticle*>(mcArray->At(mcPart->GetDaughter(1)-iDaughter));
+         if (!daug) AliFatal("");
          if (daug->GetPdgCode() != fDecayChannel->DaughterPdgCode(iDaughter)) {goodDecay = kFALSE; break;}
        }
       }
index 057db7c..0a7a05a 100644 (file)
@@ -903,7 +903,7 @@ void AliCFTrackQualityCuts::FillHistograms(TObject* obj, Bool_t b)
   // fill the QA histograms
   //
 
-  if (!obj) return;
+  //if (!obj) return;
   if (!obj->InheritsFrom("AliVParticle")) {
     AliError("object must derived from AliVParticle !");
     return;