]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSQAFloatCheckable.cxx
Erased first 2 rows. They were unnecessary.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAFloatCheckable.cxx
CommitLineData
66f72ab4 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
18//_________________________________________________________________________
19// Class for a QA checkable that is a Float
20//
21//*-- Author : Yves Schutz (SUBATECH)
22//////////////////////////////////////////////////////////////////////////////
23
24// --- ROOT system ---
25
26#include "TClass.h"
27
28// --- Standard library ---
29
30#include <iostream.h>
31
32// --- AliRoot header files ---
33
34#include "AliPHOSQAFloatCheckable.h"
35
36ClassImp(AliPHOSQAFloatCheckable)
37
38
39//____________________________________________________________________________
40 AliPHOSQAFloatCheckable::AliPHOSQAFloatCheckable(const char * name) : AliPHOSQAVirtualCheckable(name)
41{
42 //ctor initial value is zero
7b7c1533 43 fType = "F" ;
66f72ab4 44 fValue = 0. ;
45}
46
47
48//____________________________________________________________________________
49 AliPHOSQAFloatCheckable::~AliPHOSQAFloatCheckable()
50{
51 // dtor
66f72ab4 52}
53
54
55//____________________________________________________________________________
56void AliPHOSQAFloatCheckable::Print() const
57{
58 // Print the chekable name and its value
59 cout << " Checkable-> " << GetName() << " : value = " << fValue << endl ;
60}
61
62//____________________________________________________________________________
63void AliPHOSQAFloatCheckable::Set(Float_t value)
64{
65 // Changes the value of the checkable and modifies its status
66 fValue = value ;
67 fChange = kTRUE ;
68}
69
70//____________________________________________________________________________
71void AliPHOSQAFloatCheckable::Update(Float_t value)
72{
73 // Increments the value of the checkable and modifies its status
74 fValue += value ;
75 fChange = kTRUE ;
76}