]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONVCalibParam.h
Bug fix
[u/mrichter/AliRoot.git] / MUON / AliMUONVCalibParam.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup base
7 /// \class AliMUONVCalibParam
8 /// \brief Container of calibration values for a given number of channels.
9 /// 
10 //  Author Laurent Aphecetche
11
12 #ifndef ALIMUONVCALIBPARAM_H
13 #define ALIMUONVCALIBPARAM_H
14
15 #ifndef ROOT_TObject
16 #  include "TObject.h"
17 #endif
18
19 class AliMUONVCalibParam : public TObject
20 {
21 public:
22   AliMUONVCalibParam();
23   virtual ~AliMUONVCalibParam();
24
25   /// j indices in following methods are valid from 0 to Dimension()-1.
26   virtual Int_t Dimension() const = 0;
27   
28   /// Set one value, for channel i, dimension j. Consider value is a float.
29   virtual void SetValueAsFloat(Int_t i, Int_t j, Float_t value) = 0;
30   
31   /// Set one value, for channel i, dimension j. Consider value is an integer.
32   virtual void SetValueAsInt(Int_t i, Int_t j, Int_t value) = 0;
33   
34   /// The number of channels handled by this object.
35   virtual Int_t Size() const = 0;
36
37   /// Retrieve the value for a given (channel,dim) as a float.
38   virtual Float_t ValueAsFloat(Int_t i, Int_t j=0) const = 0;
39   
40   /// Retrieve the value for a given (channel,dim) as an integer.
41   virtual Int_t ValueAsInt(Int_t i, Int_t j=0) const = 0;
42
43   /// Return 1E38 as invalid float value
44   static Float_t InvalidFloatValue() { return 1E38; }
45   
46   ClassDef(AliMUONVCalibParam,0) // 
47 };
48
49 #endif