]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixes by Simone Schuchmann
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Sep 2010 16:31:29 +0000 (16:31 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Sep 2010 16:31:29 +0000 (16:31 +0000)
PWG1/TPC/AliPerformancePtCalib.cxx

index 8e43928b5bee0f31c48064c27f4fa438ec6681be..fdcfce5b7c3677353283f1aa1edb3df9973b9899 100755 (executable)
@@ -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;