]>
Commit | Line | Data |
---|---|---|
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 an Int | |
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 "AliPHOSQAIntCheckable.h" | |
35 | ||
36 | ClassImp(AliPHOSQAIntCheckable) | |
37 | ||
38 | ||
39 | //____________________________________________________________________________ | |
40 | AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) | |
41 | { | |
42 | //ctor initial value is zero | |
43 | fType = new char[1] ; | |
44 | strcpy(fType,"I") ; | |
45 | fValue = 0 ; | |
46 | } | |
47 | ||
48 | ||
49 | //____________________________________________________________________________ | |
50 | AliPHOSQAIntCheckable::~AliPHOSQAIntCheckable() | |
51 | { | |
52 | // dtor | |
53 | delete fType ; | |
54 | } | |
55 | ||
56 | //____________________________________________________________________________ | |
57 | void AliPHOSQAIntCheckable::Print() const | |
58 | { | |
59 | // Print the chekable name and its value | |
60 | cout << " Checkable-> " << GetName() << " : value = " << fValue << endl ; | |
61 | } | |
62 | ||
63 | //____________________________________________________________________________ | |
64 | void AliPHOSQAIntCheckable::Set(Int_t value) | |
65 | { | |
66 | // Changes the value of the checkable and modifies its status | |
67 | fValue = value ; | |
68 | fChange = kTRUE ; | |
69 | } | |
70 | ||
71 | //____________________________________________________________________________ | |
72 | void AliPHOSQAIntCheckable::Update(Int_t value) | |
73 | { | |
74 | // Increments the value of the checkable and modifies its status | |
75 | fValue += value ; | |
76 | fChange = kTRUE ; | |
77 | } |