coverity fix
authormchojnac <mchojnac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Jan 2013 10:16:08 +0000 (10:16 +0000)
committermchojnac <mchojnac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Jan 2013 10:16:08 +0000 (10:16 +0000)
PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx
PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx
PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.h
PWGLF/SPECTRA/PiKaPr/TestAOD/HistogramsBoth.h

index 1a21e8f..25de150 100644 (file)
@@ -332,7 +332,7 @@ void AliAnalysisTaskSpectraBoth::UserExec(Option_t *)
                        //        cout<<" functions "<<partMC->IsPhysicalPrimary()<<" "<<partMC->IsSecondaryFromWeakDecay()<<" "<<partMC->IsSecondaryFromMaterial()<<endl;\r
                  \r
                                if (isPrimary&&irec==kSpPion)\r
-                                       fHistMan->GetPtHistogram(kHistPtRecPrimary)->Fill(track->Pt(),dca);  // PT histo of primaries\r
+                                       fHistMan->GetPtHistogram(kHistPtRecPrimaryAll)->Fill(track->Pt(),dca);  // PT histo of primaries\r
                  \r
                        //nsigma cut (reconstructed nsigma)\r
                                if(idRec == kSpUndefined) \r
index b48c297..1b0fb64 100644 (file)
@@ -98,7 +98,7 @@ Bool_t AliSpectraBothEventCuts::IsSelected(AliVEvent * aod,AliSpectraBothTrackCu
                {
                        esdevent=dynamic_cast<AliESDEvent*>(fAOD);
                        if(!esdevent)
-                               kFALSE;
+                               return kFALSE;
                        if(esdevent->GetFiredTriggerClasses().Contains("ALLNOTRD"))
                                isSDD=kTRUE;
                }       
@@ -110,7 +110,7 @@ Bool_t AliSpectraBothEventCuts::IsSelected(AliVEvent * aod,AliSpectraBothTrackCu
                {
                        aodevent=dynamic_cast<AliAODEvent*>(fAOD);
                        if(!aodevent)
-                               kFALSE;
+                               return kFALSE;
                        if(aodevent->GetFiredTriggerClasses().Contains("ALLNOTRD"))
                                isSDD=kTRUE;    
                }       
index 944f9ea..eab64d9 100644 (file)
@@ -45,6 +45,7 @@ namespace AliSpectraNameSpaceBoth
      kHistPtRecSigma,
      kHistPtRecTrue,
      kHistPtRecTruePrimary,
+     kHistPtRecPrimary,        
      kHistPtRecSigmaPrimary,
      kHistPtRecSigmaSecondaryMaterial,
      kHistPtRecSigmaSecondaryWeakDecay,
index 7bc96e2..41bb20c 100644 (file)
@@ -89,8 +89,8 @@ namespace AliSpectraNameSpaceBoth
       
       // Rest
       kHistPtRec,                               // Pt histo for all particles, reconstructed tracks
-      kHistPtRecPrimary,                               // Pt histo for all particles, reconstructed tracks
-      kNPtRecAllChHist = kHistPtRecPrimary,                    // Number of ptRec-likehistos histos - no PID
+      kHistPtRecPrimaryAll,                               // Pt histo for all particles, reconstructed tracks
+      kNPtRecAllChHist = kHistPtRecPrimaryAll,                    // Number of ptRec-likehistos histos - no PID
       
       kHistPIDTPC,                              // Particle Identification histo
       kHistPIDTOF,