]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/AliHLTMUONTriggerRecord.cxx
correcting function names and parameter const'ness according to coding rules
[u/mrichter/AliRoot.git] / HLT / MUON / AliHLTMUONTriggerRecord.cxx
index 812f83c3977fbfc128950447eddb1c8f1e5036da..b096a6f6d7e46d6366a92e00949a9656e6bce73a 100644 (file)
@@ -331,12 +331,23 @@ void AliHLTMUONTriggerRecord::Print(Option_t* option) const
                        << setw(12) << "DetElemID" << endl;
                for (int i = 0; i < 4; i++)
                {
-                       cout << setw(9) << i+11
-                               << setw(14) << fHit[i].X()
-                               << setw(12) << fHit[i].Y()
-                               << setw(12) << fHit[i].Z()
-                               << setw(12) << fDetElemId[i]
-                               << endl;
+                       cout << setw(9) << i+11;
+                       if (fDetElemId[i] != -1)
+                       {
+                               cout << setw(14) << fHit[i].X()
+                                       << setw(12) << fHit[i].Y()
+                                       << setw(12) << fHit[i].Z()
+                                       << setw(12) << fDetElemId[i]
+                                       << endl;
+                       }
+                       else
+                       {
+                               cout << setw(14) << "-"
+                                       << setw(12) << "-"
+                                       << setw(12) << "-"
+                                       << setw(12) << "-"
+                                       << endl;
+                       }
                }
                cout << setw(9) << "Chamber"
                        << setw(18+17*2) << "X bit patterns for local boards"