From: jotwinow Date: Thu, 16 Sep 2010 16:31:29 +0000 (+0000) Subject: fixes by Simone Schuchmann X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=c2b8d123e3a0276669226ba6d484a1f72b621fc9;p=u%2Fmrichter%2FAliRoot.git fixes by Simone Schuchmann --- diff --git a/PWG1/TPC/AliPerformancePtCalib.cxx b/PWG1/TPC/AliPerformancePtCalib.cxx index 8e43928b5be..fdcfce5b7c3 100755 --- a/PWG1/TPC/AliPerformancePtCalib.cxx +++ b/PWG1/TPC/AliPerformancePtCalib.cxx @@ -259,8 +259,9 @@ AliPerformancePtCalib::~AliPerformancePtCalib() { if(fHistTPCMomentaPosPt) delete fHistTPCMomentaPosPt;fHistTPCMomentaPosPt=0; if(fHistTPCMomentaNegPt) delete fHistTPCMomentaNegPt ;fHistTPCMomentaNegPt=0; if(fHistUserPtShift) delete fHistUserPtShift;fHistUserPtShift=0; + if(fHistdedxPions) delete fHistdedxPions;fHistdedxPions=0; //esd track cuts - if(fESDTrackCuts) delete fESDTrackCuts; + if(fESDTrackCuts) delete fESDTrackCuts;fESDTrackCuts=0; //pid if(fESDpid) delete fESDpid;fESDpid=0; //analysis folder @@ -327,7 +328,7 @@ void AliPerformancePtCalib::Init() fHistdedxPions = new TH2F ("fHistdedxPions","dEdx of pions ident. via kPID vs signed Pt",300,-15.05,15.05,200,0.0,400.0); fList->Add(fHistdedxPions); //pid - fESDpid = NULL; + fESDpid = new AliESDpid(); // esd track cuts fESDTrackCuts =NULL; @@ -402,7 +403,7 @@ void AliPerformancePtCalib::Exec(AliMCEvent* const /*mcEvent*/, AliESDEvent *con // pid if(fPions){ - fESDpid= new AliESDpid(); + fESDpid->GetTPCResponse().SetBetheBlochParameters(0.0283086,2.63394e+01,5.04114e-11, 2.12543e+00,4.88663e+00); if( TMath::Abs(fESDpid->NumberOfSigmasTPC(esdTrack,AliPID::kPion)) >1) continue;