]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONCalibParam1I.h
Decoupling trigX and trigY in LocalTrigger (Philippe C.)
[u/mrichter/AliRoot.git] / MUON / AliMUONCalibParam1I.h
CommitLineData
9369bbee 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 AliMUONCalibParam1I
5398f946 8/// \brief Implementation of AliMUONVCalibParam,
9/// handle the case of 1 integer parameter per channel.
9369bbee 10///
5398f946 11// Author Laurent Aphecetche
9369bbee 12
13#ifndef ALIMUONCALIBPARAM1I_H
14#define ALIMUONCALIBPARAM1I_H
15
16#ifndef ALIMUONVCALIBPARAM_H
17# include "AliMUONVCalibParam.h"
18#endif
19
20class AliMUONCalibParam1I : public AliMUONVCalibParam
21{
22public:
23 AliMUONCalibParam1I();
24 AliMUONCalibParam1I(Int_t theSize, Int_t fillWithValue=0);
9d5f6a64 25 AliMUONCalibParam1I(const AliMUONCalibParam1I& other);
26 AliMUONCalibParam1I& operator=(const AliMUONCalibParam1I& other);
9369bbee 27 virtual ~AliMUONCalibParam1I();
28
9d5f6a64 29 /// The dimension of this object is 1, i.e. it's a vector.
9369bbee 30 virtual Int_t Dimension() const { return 1; }
31
32 virtual void Print(Option_t* opt="") const;
33
9d5f6a64 34 /** Set the value located at i (j must be zero).
35 * Note that the internal structure store ints, so the float is rounded
36 * prior to be stored
37 */
9369bbee 38 virtual void SetValueAsFloat(Int_t i, Int_t j, Float_t value);
9d5f6a64 39
40 /// Set the value located at i (j must be zero), as an int.
9369bbee 41 virtual void SetValueAsInt(Int_t i, Int_t j, Int_t value);
42
9d5f6a64 43 /// The number of values we hold.
9369bbee 44 virtual Int_t Size() const { return fSize; }
45
9d5f6a64 46 /// Retrieve the value located at i (j must remain zero), as a float.
9369bbee 47 virtual Float_t ValueAsFloat(Int_t i, Int_t j=0) const;
9d5f6a64 48
49 /// Retrieve the value located at i (j must remain zero).
9369bbee 50 virtual Int_t ValueAsInt(Int_t i, Int_t j=0) const;
51
9d5f6a64 52private:
53 /// Copy *this to destination (used by copy ctor and operator=).
54 void CopyTo(AliMUONCalibParam1I& destination) const;
55
56private:
18b6b8c7 57 Int_t fSize; ///< The number of values we hold
58
59 /// The values array
60 Int_t* fValues; //[fSize] The values array
9369bbee 61
62 ClassDef(AliMUONCalibParam1I,1) // Container for calibration parameters
63};
64
65#endif