// Create output objects
//
- OpenFile(1, "RECREATE");
const Int_t nbins = AliTRDCalPID::kNMom;
Float_t xbins[nbins+1] = {.5, .7, .9, 1.3, 1.7, 2.4, 3.5, 4.5, 5.5, 7., 9., 11.};
TH1 *h = NULL;
- fContainer = new TObjArray();
+ fContainer = new TObjArray(); fContainer->SetOwner();
for(Int_t is=0; is<AliPID::kSPECIES; is++){
fContainer->Add(h = new TProfile(Form("h%s", AliTRDCalPID::GetPartSymb(is)), AliPID::ParticleShortName(is), nbins, xbins));
h->SetLineColor(AliTRDCalPID::GetPartColor(is));
}
fContainer->Add(h = new TProfile("h", "", nbins, xbins));
h->SetMarkerStyle(7);
+ PostData(1, fContainer);
}
//____________________________________________________________________
mom = ref ? ref->P(): esd->P();
pidx = AliTRDCalPID::GetPartIndex(track->GetPDG());
pidx = TMath::Max(pidx, 0);
+ AliDebug(4, Form("PID: %d", pidx));
//Int_t n = track->GetNumberOfClusters();
// where are this tracklets ???
for(Int_t itk = 0; itk < nTRD - 1; itk++)
if(labelsacc[indices[itk]] ==labelsacc[indices[itk + 1]]) printf("Double counted MC track: %d\n", labelsacc[indices[itk]]);
}
- PostData(1, fContainer);
}
}
bFIRST = kFALSE;
}
- leg->Draw();
+ if(leg) leg->Draw();
break;
}
return kTRUE;