From: mchojnac Date: Tue, 8 Jan 2013 10:16:08 +0000 (+0000) Subject: coverity fix X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=94a8ed7182bc22c8394f683a5b6b77f1af9e8b16 coverity fix --- diff --git a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx index 1a21e8f23f1..25de150895f 100644 --- a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx +++ b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx @@ -332,7 +332,7 @@ void AliAnalysisTaskSpectraBoth::UserExec(Option_t *) // cout<<" functions "<IsPhysicalPrimary()<<" "<IsSecondaryFromWeakDecay()<<" "<IsSecondaryFromMaterial()<GetPtHistogram(kHistPtRecPrimary)->Fill(track->Pt(),dca); // PT histo of primaries + fHistMan->GetPtHistogram(kHistPtRecPrimaryAll)->Fill(track->Pt(),dca); // PT histo of primaries //nsigma cut (reconstructed nsigma) if(idRec == kSpUndefined) diff --git a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx index b48c2976ceb..1b0fb647bf3 100644 --- a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx +++ b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx @@ -98,7 +98,7 @@ Bool_t AliSpectraBothEventCuts::IsSelected(AliVEvent * aod,AliSpectraBothTrackCu { esdevent=dynamic_cast(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(fAOD); if(!aodevent) - kFALSE; + return kFALSE; if(aodevent->GetFiredTriggerClasses().Contains("ALLNOTRD")) isSDD=kTRUE; } diff --git a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.h b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.h index 944f9ea6280..eab64d92ea8 100644 --- a/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.h +++ b/PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.h @@ -45,6 +45,7 @@ namespace AliSpectraNameSpaceBoth kHistPtRecSigma, kHistPtRecTrue, kHistPtRecTruePrimary, + kHistPtRecPrimary, kHistPtRecSigmaPrimary, kHistPtRecSigmaSecondaryMaterial, kHistPtRecSigmaSecondaryWeakDecay, diff --git a/PWGLF/SPECTRA/PiKaPr/TestAOD/HistogramsBoth.h b/PWGLF/SPECTRA/PiKaPr/TestAOD/HistogramsBoth.h index 7bc96e20572..41bb20cff94 100644 --- a/PWGLF/SPECTRA/PiKaPr/TestAOD/HistogramsBoth.h +++ b/PWGLF/SPECTRA/PiKaPr/TestAOD/HistogramsBoth.h @@ -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,