]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix crash due to missing track ref
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Oct 2008 08:47:17 +0000 (08:47 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Oct 2008 08:47:17 +0000 (08:47 +0000)
TRD/qaRec/AliTRDtrackingResolution.cxx

index 53dc349bccc53dc1e40e04a68b69aa46bfe6bee2..f66db545861dc4434f75e2535fea33bd563271e5 100644 (file)
@@ -454,7 +454,7 @@ TH1* AliTRDtrackingResolution::PlotResolution(const AliTRDtrackV1 *track)
 
     // Fill Debug stream
     if(fDebugLevel>=1){
-      Float_t p = fMC->GetTrackRef()->P();
+      Float_t p = fMC->GetTrackRef() ? fMC->GetTrackRef()->P() : -1.;
       (*fDebugStream) << "TrkltResolution"
         << "det="                << det
         << "pdg="     << pdg