]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSFastRecParticle.cxx
removed iostream
[u/mrichter/AliRoot.git] / PHOS / AliPHOSFastRecParticle.cxx
index 14d12133ea864a6f5126c8c80392c269c6f08a3f..9a9cb8d5465869d00236576cdb006d89183938e8 100644 (file)
@@ -25,8 +25,6 @@
 
 // --- Standard library ---
 
-#include <iostream.h>
-
 // --- AliRoot header files ---
 
 #include "AliPHOSFastRecParticle.h"
@@ -245,9 +243,16 @@ void AliPHOSFastRecParticle::Print(const char * opt)
 {
   // Print the type, energy and momentum of the reconstructed particle
   
-  cout << "AliPHOSFastRecParticle > " << "type is  " << Name() << endl 
-       << "                     " << "Energy = " << fE << endl 
-       << "                     " << "Px     = " << fPx << endl 
-       << "                     " << "Py     = " << fPy << endl 
-       << "                     " << "Pz     = " << fPz << endl ; 
+  TString message ; 
+  message  = "AliPHOSFastRecParticle > type is  %s\n" ; 
+  message += "                         Energy = %f\n" ; 
+  message += "                         Px     = %f\n" ; 
+  message += "                         Py     = %f\n" ;
+  message += "                         Pz     = %f\n" ;
+  Info("Print", message.Data(), 
+       Name().Data(), 
+       fE, 
+       fPx, 
+       fPy,
+       fPz ); 
 }