]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for report #66820 Request - remove Error message in AliESDtrack::GetTRDmomentum
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 May 2010 12:58:59 +0000 (12:58 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 May 2010 12:58:59 +0000 (12:58 +0000)
STEER/AliESDtrack.cxx

index bd752b2e92a9c1e463aee74686cbf4002fe9727f..a282477d538344c99f6a98a64ee23a1d525a20ae 100644 (file)
@@ -1805,11 +1805,11 @@ Double_t AliESDtrack::GetTRDmomentum(Int_t plane, Double_t *sp) const
 // in TRD layer "plane".
 
   if (!fTRDnSlices) {
-    AliError("No TRD info allocated for this track !");
+    AliDebug(2, "No TRD info allocated for this track.");
     return -1.;
   }
   if ((plane<0) || (plane>=kTRDnPlanes)) {
-    AliError("Info for TRD plane not available!");
+    AliWarning(Form("Request for TRD plane[%d] outside range.", plane)); 
     return -1.;
   }