]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix coverity 20267, 23156, 23258, check null pointer and fix the size of the histogra...
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Mon, 30 Jun 2014 16:07:23 +0000 (18:07 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Mon, 30 Jun 2014 16:41:59 +0000 (18:41 +0200)
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.h

index 87782773f0e600156fb7f81950b00be0ad00e4ae..2f85892ac3984fdb4fb009f352d34ad3f0d092e2 100755 (executable)
@@ -3317,7 +3317,7 @@ void AliAnaParticleHadronCorrelation::MakeChargedMixCorrelation(AliAODPWG4Partic
     TObjArray* bgCalo   = 0;
 
     // Check if the particle is isolated in the mixed event, it not, do not fill the histograms
-    if(OnlyIsolated() || fFillNeutralEventMixPool)
+    if((OnlyIsolated() || fFillNeutralEventMixPool) && poolCalo)
     {
       if(pool->GetSize()!=poolCalo->GetSize()) 
         printf("AliAnaParticleHadronCorrelationNew::MakeChargedMixCorrelation() - Different size of calo and track pools\n");
index 770795b7f530d9b1eba71cb64a6c7986b0b03282..7cd6b8910eb33e6e45fea3f96c2f4164ecb4646c 100755 (executable)
@@ -253,7 +253,7 @@ class AliAnaParticleHadronCorrelation : public AliAnaCaloTrackCorrBaseClass {
   TH2F *       fhPhiLeading;                   //! phi distribution vs pT of leading particles
   TH2F *       fhEtaLeading;                   //! eta distribution vs pT of leading particles
   
-  TH1F *       fhPtLeadingMC[6];               //! pT distribution of leading particles, check the origin of the cluster : decay photon (pi0, eta, other), merged photon (pi0), hadron, rest of photons (prompt, FSR, ISR)
+  TH1F *       fhPtLeadingMC[7];               //! pT distribution of leading particles, check the origin of the cluster : "Photon","Pi0","Pi0Decay","EtaDecay","OtherDecay","Electron","Hadron"
 
   TH2F *       fhPtLeadingCentrality;          //! pT distribution of leading particles vs centrality
   TH2F *       fhPtLeadingEventPlane;          //! pT distribution of leading particles vs centrality