]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONCalibParam2F.h
Important bugfix. Missing reset of the equipment header data. It was causing a wrong...
[u/mrichter/AliRoot.git] / MUON / AliMUONCalibParam2F.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 AliMUONCalibParam2F
8 /// \brief Implementation of AliMUONVCalibParam for pair of floats
9 /// 
10 //  Author Laurent Aphecetche
11
12 #ifndef ALIMUONCALIBPARAM2F_H
13 #define ALIMUONCALIBPARAM2F_H
14
15 #ifndef ALIMUONVCALIBPARAM_H
16 #  include "AliMUONVCalibParam.h"
17 #endif
18
19 class AliMUONCalibParam2F : public AliMUONVCalibParam
20 {
21 public:
22   AliMUONCalibParam2F();
23   AliMUONCalibParam2F(Int_t theSize, Int_t fillWithValue=0);
24   AliMUONCalibParam2F(const AliMUONCalibParam2F& other);
25   AliMUONCalibParam2F& operator=(const AliMUONCalibParam2F& other);
26   
27   virtual ~AliMUONCalibParam2F();
28
29   /// Return dimension (here 2)
30   virtual Int_t Dimension() const { return 2; } 
31   
32   virtual void Print(Option_t* opt="") const;
33   
34   virtual void SetValueAsFloat(Int_t i, Int_t j, Float_t value);
35   virtual void SetValueAsInt(Int_t i, Int_t j, Int_t value);
36   
37   /// Return size - the number of float pair we hold
38   virtual Int_t Size() const { return fSize; } 
39
40   virtual Float_t ValueAsFloat(Int_t i, Int_t j=0) const;
41   virtual Int_t ValueAsInt(Int_t i, Int_t j=0) const;
42      
43 private:
44   void CopyTo(AliMUONCalibParam2F& destination) const;
45   Int_t Index(Int_t i, Int_t j) const;  
46     
47 private:
48   Int_t fSize; ///< The number of float pair we hold
49   Int_t fN;    ///< The total number of floats we hold (2*fSize)
50
51   /// The values array
52   Float_t* fValues; //[fN] The values array
53   
54   ClassDef(AliMUONCalibParam2F,1) // Container for calibration parameters
55 };
56
57 #endif