]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDCalibGain.h
Fixes from P2. Allow pre-setting cuts and factor in display.
[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 #include <iosfwd>
21
22 //____________________________________________________________________
23 /** @brief Gain value and width for each strip in the FMD 
24     @ingroup FMD_base
25 */
26 class AliFMDCalibGain : public TObject 
27 {
28 public:
29   /** Constructor */
30   AliFMDCalibGain();
31   /** Destructor */
32   ~AliFMDCalibGain() {}
33   /** Copy constructor 
34       @param o object to copy from */
35   AliFMDCalibGain(const AliFMDCalibGain& o);
36   /** Assignment operator 
37       @param o Object to assign from */
38   AliFMDCalibGain& operator=(const AliFMDCalibGain& o);
39   /** Set the values for a strip. 
40       @param det  Detector 
41       @param ring Ring 
42       @param sec  Sector 
43       @param str  Strip
44       @param val  Value of gain */
45   void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Float_t val);
46   /** Set the global threshold 
47       @param thres Threshold */
48   void Set(Float_t thres) { fThreshold = thres; }
49   /** Get gain for a strip. 
50       @param det  Detector 
51       @param ring Ring 
52       @param sec  Sector 
53       @param str  Strip
54       @return Gain for strip */
55   Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
56
57   /**
58      Read information from file and set values
59      @param inFile inputFile
60    */
61   Bool_t ReadFromFile(std::istream & inFile);
62
63   /** @return threshold */
64   Float_t Threshold() const { return fThreshold; }
65   const AliFMDFloatMap& Values() const { return fValue; }
66 private:
67   AliFMDFloatMap fValue;       // Map
68   Float_t        fThreshold;   // Global threshold
69   ClassDef(AliFMDCalibGain, 1) // Gain data for the FMD 
70 };
71
72
73 #endif
74 //____________________________________________________________________
75 //
76 // Local Variables:
77 //   mode: C++
78 // End:
79 //
80
81