]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSBaseline.h
14d26a5f43f71cbb1f32090907b4f96e058df341
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSBaseline.h
1
2 /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        * 
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Authors: Oystein Djuvsland                                     *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          * 
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17 #ifndef ALIHLTPHOSBASELINE_H
18 #define ALIHLTPHOSBASELINE_H
19
20 #include "TObject.h"
21 #include "AliHLTPHOSConstants.h"
22
23 using namespace PhosHLTConst;
24
25 /**
26  @author Ã˜ystein Djuvsland <oystein.djuvsland@gmail.com>
27  */
28 class AliHLTPHOSBaseline : public TObject
29 {
30   
31 public: 
32   /**
33    * Default constructor
34    */
35   AliHLTPHOSBaseline();
36   /**
37    * Default destructor
38    */
39   virtual ~AliHLTPHOSBaseline();
40
41   /**
42    * 
43    * @param baseline 
44    */
45   void SetBaseline(Float_t baseline) { fBaseline = baseline; }
46   void SetX(Int_t x) { fX = x; }
47   void SetZ(Int_t z) { fZ = z; }
48   void SetGain(Int_t gain) { fGain = gain; }
49   void SetEntries(Int_t /*entries*/) { fEntries = 0; }  //TODO: should we not set fEntries to entries? is this a bug?
50
51   Float_t GetBaseline() { return fBaseline; }  
52   Int_t GetX() { return fX; }
53   Int_t GetZ() { return fZ; }
54   Int_t GetGain() { return fGain; }
55   Int_t GetEntries() { return fEntries; }
56
57 private:
58
59   Float_t fBaseline;
60   Int_t fX;
61   Int_t fZ;
62   Int_t fGain;
63   Int_t fEntries;
64   
65   ClassDef(AliHLTPHOSBaseline, 1);
66   
67 };
68
69 #endif