]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDCalibGain.h
Replaced by JETANLinkDef.h
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibGain.h
1 #ifndef ALIFMDCALIBGAIN_H
2 #define ALIFMDCALIBGAIN_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 /** @file    AliFMDCalibGain.h
9     @author  Christian Holm Christensen <cholm@nbi.dk>
10     @date    Sun Mar 26 18:30:16 2006
11     @brief   Per strip gain calibration 
12 */
13 // Gain value and width for each strip in the FMD. 
14 // Foo 
15 // Bar 
16 //
17 #ifndef ALIFMDFLOATMAP_H
18 # include <AliFMDFloatMap.h>
19 #endif
20 //____________________________________________________________________
21 /** @brief Gain value and width for each strip in the FMD 
22     @ingroup FMD_base
23 */
24 class AliFMDCalibGain : public TObject 
25 {
26 public:
27   /** Constructor */
28   AliFMDCalibGain();
29   /** Destructor */
30   ~AliFMDCalibGain() {}
31   /** Copy constructor 
32       @param o object to copy from */
33   AliFMDCalibGain(const AliFMDCalibGain& o);
34   /** Assignment operator 
35       @param o Object to assign from */
36   AliFMDCalibGain& operator=(const AliFMDCalibGain& o);
37   /** Set the values for a strip. 
38       @param det  Detector 
39       @param ring Ring 
40       @param sec  Sector 
41       @param str  Strip
42       @param val  Value of gain */
43   void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Float_t val);
44   /** Set the global threshold 
45       @param thres Threshold */
46   void Set(Float_t thres) { fThreshold = thres; }
47   /** Get gain for a strip. 
48       @param det  Detector 
49       @param ring Ring 
50       @param sec  Sector 
51       @param str  Strip
52       @return Gain for strip */
53   Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
54   /** @return threshold */
55   Float_t Threshold() const { return fThreshold; }
56 private:
57   AliFMDFloatMap fValue;       // Map
58   Float_t        fThreshold;   // Global threshold
59   ClassDef(AliFMDCalibGain, 1) // Gain data for the FMD 
60 };
61
62
63 #endif
64 //____________________________________________________________________
65 //
66 // Local Variables:
67 //   mode: C++
68 // End:
69 //
70
71