]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSQAIntCheckable.cxx
coding conventions corrections
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAIntCheckable.cxx
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 an Int  
20 // To be used with AliPHOSChecker
21 // or any derived class
22 // ..
23 //*-- Author :  Yves Schutz (SUBATECH) 
24 //////////////////////////////////////////////////////////////////////////////
25
26 // --- ROOT system ---
27
28 // --- Standard library ---
29
30 // --- AliRoot header files ---
31
32 #include "AliPHOSQAIntCheckable.h"
33
34 ClassImp(AliPHOSQAIntCheckable)
35
36
37 //____________________________________________________________________________ 
38   AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
39 {
40   //ctor initial value is zero
41   fType  = "I" ; 
42   fValue = 0 ; 
43 }
44
45 //____________________________________________________________________________ 
46   AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(AliPHOSQAIntCheckable & ich) : AliPHOSQAVirtualCheckable(ich.GetName()) 
47 {
48   //ctor initial value is zero
49   fType  = "I" ; 
50   fValue = ich.fValue ; 
51 }
52
53 //____________________________________________________________________________ 
54   AliPHOSQAIntCheckable::~AliPHOSQAIntCheckable()
55 {
56   // dtor
57 }
58
59 //____________________________________________________________________________ 
60 void AliPHOSQAIntCheckable::Print() const 
61 {
62   // Print the chekable name and its value
63   Info("Print", "Checkable-> %s : value = %d", GetName(), fValue) ; 
64 }
65
66 //____________________________________________________________________________ 
67 void AliPHOSQAIntCheckable::Set(Int_t value)
68 {
69   // Changes the value of the checkable and modifies its status
70   fValue = value ; 
71   fChange = kTRUE ; 
72 }
73
74 //____________________________________________________________________________ 
75 void AliPHOSQAIntCheckable::Update(Int_t value) 
76 {
77   // Increments the value of the checkable and modifies its status
78   fValue += value ; 
79   fChange = kTRUE ; 
80 }