]>
Commit | Line | Data |
---|---|---|
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 | const AliFMDFloatMap& Values() const { return fValue; } | |
57 | private: | |
58 | AliFMDFloatMap fValue; // Map | |
59 | Float_t fThreshold; // Global threshold | |
60 | ClassDef(AliFMDCalibGain, 1) // Gain data for the FMD | |
61 | }; | |
62 | ||
63 | ||
64 | #endif | |
65 | //____________________________________________________________________ | |
66 | // | |
67 | // Local Variables: | |
68 | // mode: C++ | |
69 | // End: | |
70 | // | |
71 | ||
72 |