]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONHitForRec.cxx
Added Print method (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONHitForRec.cxx
index ae4accd7d660207ee8bf69915fa05767475b4486..a5fbcee4365c7fc60979413026c924abda764908 100644 (file)
@@ -27,6 +27,7 @@
 #include "AliMUONHit.h"
 #include "AliMUONConstants.h"
 #include "AliLog.h"
+#include "Riostream.h"
 
 ClassImp(AliMUONHitForRec) // Class implementation in ROOT context
 
@@ -229,3 +230,20 @@ Double_t AliMUONHitForRec::NormalizedChi2WithHitForRec(AliMUONHitForRec* hitForR
   chi2 = chi2 + normDiff;
   return chi2;
 }
+
+//______________________________________________________________________________
+void
+AliMUONHitForRec::Print(Option_t* /*opt*/) const
+{
+  cout << "<AliMUONHitForRec> Coordinates (B,NB,Z) = (" 
+  << setw(8) << setprecision(5) << fBendingCoor
+  << "," << setw(8) << setprecision(5) << fNonBendingCoor << "," 
+  << setw(8) << setprecision(5) << fZ << ") "
+  << "Reso (B,NB)=(" << setw(8) << setprecision(5) << TMath::Sqrt(fBendingReso2) 
+  << "," << setw(8) << setprecision(5) << TMath::Sqrt(fNonBendingReso2)
+  << ") " 
+  << "Number " << setw(3) << fHitNumber 
+  << " within chamber " << setw(3) <<fChamberNumber 
+  << " DE " << setw(4) << fDetElemId
+  << endl;
+}