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 ba06782..ebc8470 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 b1a0a30..20c1615 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 acf7b62..7b18b71 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 57c5ef6..5c9d16f 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;