]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAFloatCheckable.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAFloatCheckable.cxx
index 31d299eb4020a03f6d4f725085dd7de260ff2fd6..9ad160d8b67be33d4c07241975ce4dfa9e81925a 100644 (file)
@@ -27,8 +27,6 @@
 
 // --- Standard library ---
 
-#include <iostream.h>
-
 // --- AliRoot header files ---
 
 #include "AliPHOSQAFloatCheckable.h"
@@ -40,8 +38,7 @@ ClassImp(AliPHOSQAFloatCheckable)
   AliPHOSQAFloatCheckable::AliPHOSQAFloatCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
 {
   //ctor initial value is zero
-  fType = new char[1] ; 
-  strcpy(fType,"F") ;
+  fType = "F" ;
   fValue = 0. ; 
 }
 
@@ -50,7 +47,6 @@ ClassImp(AliPHOSQAFloatCheckable)
   AliPHOSQAFloatCheckable::~AliPHOSQAFloatCheckable()
 {
  // dtor
-  delete fType ; 
 }
 
 
@@ -58,7 +54,7 @@ ClassImp(AliPHOSQAFloatCheckable)
 void AliPHOSQAFloatCheckable::Print() const
 {
   // Print the chekable name and its value
-  cout << " Checkable-> " << GetName() << " : value = " << fValue << endl ; 
+  Info("Print", "Checkable-> %s : value = %f", GetName(), fValue) ; 
 }
 
 //____________________________________________________________________________