Phi-weights with slightly better statistics and I had to fix 2 coverity defects.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 1 Apr 2012 08:56:01 +0000 (08:56 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 1 Apr 2012 08:56:01 +0000 (08:56 +0000)
Robert Grajcarek <grajcarek@physi.uni-heidelberg.de>

ANALYSIS/AliEPSelectionTask.cxx
OADB/COMMON/EVENTPLANE/data/epphidist2011.root

index 9b8842d..da3e419 100644 (file)
@@ -175,7 +175,7 @@ AliEPSelectionTask::~AliEPSelectionTask()
       delete fEPContainer;
       fEPContainer = 0;
   }
-  if (fPhiDist && fPeriod.CompareTo("LHC11h")==0){
+  if (fPeriod.CompareTo("LHC11h")==0){
       for(Int_t i = 0; i < 4; i++) {
         if(fPhiDist[i]){
           delete fPhiDist[i];
@@ -613,7 +613,8 @@ Double_t AliEPSelectionTask::GetPhiWeight(TObject* track1)
   Double_t phiweight=1;
   AliVTrack* track = dynamic_cast<AliVTrack*>(track1);
 
-  TH1F *phiDist = SelectPhiDist(track);
+  TH1F *phiDist = 0x0;
+  if(track) phiDist = SelectPhiDist(track);
   
   if (fUsePhiWeight && phiDist && track) {
     Double_t nParticles = phiDist->Integral();
index ae7ee22..cdfa9c9 100644 (file)
Binary files a/OADB/COMMON/EVENTPLANE/data/epphidist2011.root and b/OADB/COMMON/EVENTPLANE/data/epphidist2011.root differ