]>
Commit | Line | Data |
---|---|---|
a3537838 | 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 | */ | |
c2fc1258 | 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 | */ | |
02a27b50 | 13 | // Gain value and width for each strip in the FMD. |
14 | // Foo | |
15 | // Bar | |
16 | // | |
a3537838 | 17 | #ifndef ALIFMDFLOATMAP_H |
18 | # include <AliFMDFloatMap.h> | |
19 | #endif | |
e064ab4a | 20 | #include <iosfwd> |
21 | ||
a3537838 | 22 | //____________________________________________________________________ |
c2fc1258 | 23 | /** @brief Gain value and width for each strip in the FMD |
9f662337 | 24 | @ingroup FMD_base |
25 | */ | |
a3537838 | 26 | class AliFMDCalibGain : public TObject |
27 | { | |
28 | public: | |
9f662337 | 29 | /** Constructor */ |
a3537838 | 30 | AliFMDCalibGain(); |
9f662337 | 31 | /** Destructor */ |
a3537838 | 32 | ~AliFMDCalibGain() {} |
9f662337 | 33 | /** Copy constructor |
34 | @param o object to copy from */ | |
a3537838 | 35 | AliFMDCalibGain(const AliFMDCalibGain& o); |
9f662337 | 36 | /** Assignment operator |
37 | @param o Object to assign from */ | |
a3537838 | 38 | AliFMDCalibGain& operator=(const AliFMDCalibGain& o); |
9f662337 | 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 */ | |
a3537838 | 45 | void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Float_t val); |
9f662337 | 46 | /** Set the global threshold |
47 | @param thres Threshold */ | |
a3537838 | 48 | void Set(Float_t thres) { fThreshold = thres; } |
9f662337 | 49 | /** Get gain for a strip. |
50 | @param det Detector | |
51 | @param ring Ring | |
52 | @param sec Sector | |
53 | @param str Strip | |
9f662337 | 54 | @return Gain for strip */ |
a3537838 | 55 | Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str); |
e064ab4a | 56 | |
57 | /** | |
58 | Read information from file and set values | |
59 | @param inFile inputFile | |
60 | */ | |
61 | Bool_t ReadFromFile(std::istream & inFile); | |
62 | ||
9f662337 | 63 | /** @return threshold */ |
a3537838 | 64 | Float_t Threshold() const { return fThreshold; } |
a9579262 | 65 | const AliFMDFloatMap& Values() const { return fValue; } |
a3537838 | 66 | private: |
9f662337 | 67 | AliFMDFloatMap fValue; // Map |
68 | Float_t fThreshold; // Global threshold | |
a3537838 | 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 |