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