]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAFloatCheckable.cxx
Classes imported from EVGEN
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAFloatCheckable.cxx
index 31d299eb4020a03f6d4f725085dd7de260ff2fd6..8686f28190b15c840d9fbfa09ae5870466b19955 100644 (file)
 //_________________________________________________________________________
 // Class for a QA checkable that is a Float  
 //
+// To be used with AliPHOSChecker
+// or any derived class
+//
 //*-- Author :  Yves Schutz (SUBATECH) 
 //////////////////////////////////////////////////////////////////////////////
 
 // --- ROOT system ---
 
-#include "TClass.h"
-
 // --- Standard library ---
 
-#include <iostream.h>
-
 // --- AliRoot header files ---
 
 #include "AliPHOSQAFloatCheckable.h"
@@ -40,17 +39,22 @@ 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. ; 
 }
 
+//____________________________________________________________________________ 
+  AliPHOSQAFloatCheckable::AliPHOSQAFloatCheckable(AliPHOSQAFloatCheckable &  fch) : AliPHOSQAVirtualCheckable(fch.GetName()) 
+{
+  //ctor initial value is zero
+  fType = "F" ;
+  fValue = fch.fValue  ; 
+}
 
 //____________________________________________________________________________ 
   AliPHOSQAFloatCheckable::~AliPHOSQAFloatCheckable()
 {
  // dtor
-  delete fType ; 
 }
 
 
@@ -58,7 +62,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) ; 
 }
 
 //____________________________________________________________________________