]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Nov 2011 09:05:15 +0000 (09:05 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Nov 2011 09:05:15 +0000 (09:05 +0000)
PWG3/vertexingHF/AliAnalysisTaskSEDplus.cxx
PWG3/vertexingHF/AliAnalysisTaskSELambdac.cxx
PWG3/vertexingHF/AliRDHFCutsDStartoKpipi.cxx
PWG3/vertexingHF/AliRDHFCutsLctopKpi.cxx

index ba067828f5d965d41cce987954696cc607731841..ebc847092b4b7012b8dff88bbb6651fa341f1b80 100644 (file)
@@ -721,7 +721,8 @@ void AliAnalysisTaskSEDplus::UserExec(Option_t */*option*/)
   fHistNEvents->Fill(0); // count event
 
   Bool_t isEvSel=fRDCutsAnalysis->IsEventSelected(aod);
-  fRDCutsProduction->IsEventSelected(aod); // to have proper PID object settings
+  Bool_t isEvSelP=kTRUE;
+  isEvSelP=fRDCutsProduction->IsEventSelected(aod); // to have proper PID object settings
 
   Float_t centrality=aod->GetNTracks();//fRDCutsAnalysis->GetCentrality(aod);
   fHistCentrality[0]->Fill(centrality);
index b1a0a308234afaf6ca31bb53b6913f01e47751bf..20c16151944efb8642aac013593b54b3ad1ca4e0 100644 (file)
@@ -102,6 +102,8 @@ ClassImp(AliAnalysisTaskSELambdac)
     fPIDResponse(0)
 {
   // Default constructor
+  Float_t ptlims[7]={0.,2.,4.,6.,8.,12.,24.};
+  SetPtBinLimit(7,ptlims);
 }
 
 //________________________________________________________________________
@@ -1384,10 +1386,11 @@ Bool_t AliAnalysisTaskSELambdac::VertexingKF(AliAODRecoDecayHF3Prong *d,Int_t *p
   if(TMath::Abs(pdgs[0])==211){
     ipRes[0]=0;ipRes[1]=1;
     pdgres[0]=pdgs[0];pdgres[1]=321;
-  }
-  if(TMath::Abs(pdgs[2])==211){
+  }else if(TMath::Abs(pdgs[2])==211){
     ipRes[0]=2;ipRes[1]=1;
     pdgres[0]=pdgs[2];pdgres[1]=321;
+  }else{
+    return kFALSE;
   }
   AliKFParticle *kappaStar=d->ApplyVertexingKF(ipRes,2,pdgres,kFALSE,field,mass);
 
index acf7b624ef78e7fa05495e80a1adb6377792f88c..7b18b7124d704d8aff8d3690b9d17c429aa8fe0c 100644 (file)
@@ -278,7 +278,7 @@ Int_t AliRDHFCutsDStartoKpipi::IsSelected(TObject* obj,Int_t selectionLevel) {
   if(dd->HasBadDaughters()) return 0;
 
   AliAODTrack *b = (AliAODTrack*)d->GetBachelor();
-  if(fTrackCutsSoftPi->GetRequireTPCRefit()){
+  if(fTrackCutsSoftPi && fTrackCutsSoftPi->GetRequireTPCRefit()){
     if(!(b->TestFilterMask(BIT(4)))) return 0;
   }
   
index 57c5ef6686c34a28025b4fba2b66a65c44a01ee8..5c9d16f6f159e73f6781ff69826bda86e358f469 100644 (file)
@@ -98,7 +98,7 @@ AliRDHFCutsLctopKpi::AliRDHFCutsLctopKpi(const AliRDHFCutsLctopKpi &source) :
   AliRDHFCuts(source),
   fPidObjprot(0),
   fPidObjpion(0),
-  fRecoKF(kFALSE),
+  fRecoKF(source.fRecoKF),
   fUseImpParProdCorrCut(source.fUseImpParProdCorrCut)
 {
   //
@@ -722,7 +722,7 @@ void AliRDHFCutsLctopKpi::SetStandardCutsPbPb2010() {
 //------------------
 Bool_t AliRDHFCutsLctopKpi::ReconstructKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field) const{
 
- Int_t nprongs=d->GetNProngs();
const Int_t nprongs=d->GetNProngs();
  Int_t iprongs[nprongs];
  for(Int_t i=0;i<nprongs;i++) iprongs[i]=i;