]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverty fixes (Salvatore)
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 May 2013 16:10:44 +0000 (16:10 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 May 2013 16:10:44 +0000 (16:10 +0000)
PWGJE/EMCALJetTasks/AliJetModelBaseTask.cxx
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskSAJF.cxx

index 6d2942b752af102ba08241388ae858895af6ee32..d6c325f0dd7360f0698c8196d0236ca13c3cbd28 100644 (file)
@@ -74,6 +74,10 @@ AliJetModelBaseTask::AliJetModelBaseTask() :
   fOutput(0)
 {
   // Default constructor.
+
+  fVertex[0] = 0;
+  fVertex[1] = 0;
+  fVertex[2] = 0;
 }
 
 //________________________________________________________________________
@@ -125,6 +129,10 @@ AliJetModelBaseTask::AliJetModelBaseTask(const char *name, Bool_t drawqa) :
   if (fQAhistos) {
     DefineOutput(1, TList::Class()); 
   }
+
+  fVertex[0] = 0;
+  fVertex[1] = 0;
+  fVertex[2] = 0;
 }
 
 //________________________________________________________________________
index dbc3bb9b82e599f8f3ac6b5bc3b0dafdbd128a8e..999034a97ebc3e0298fa3e8086d5971de57e0a4b 100644 (file)
@@ -370,9 +370,9 @@ Bool_t AliAnalysisTaskSAJF::FillHistograms()
   }
 
   static Int_t sortedJets[9999] = {-1};
-  GetSortedArray(sortedJets, fJets, fRhoVal);
+  Bool_t r = GetSortedArray(sortedJets, fJets, fRhoVal);
   
-  if (sortedJets[0] < 0) { // no accepted jets, skipping
+  if (!r || sortedJets[0] < 0) { // no accepted jets, skipping
     fHistEvents[fCentBin]->Fill("No jets", 1);
     return kTRUE;
   }