New GetUID method
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibGain.h
CommitLineData
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
20//____________________________________________________________________
c2fc1258 21/** @brief Gain value and width for each strip in the FMD
9f662337 22 @ingroup FMD_base
23*/
a3537838 24class AliFMDCalibGain : public TObject
25{
26public:
9f662337 27 /** Constructor */
a3537838 28 AliFMDCalibGain();
9f662337 29 /** Destructor */
a3537838 30 ~AliFMDCalibGain() {}
9f662337 31 /** Copy constructor
32 @param o object to copy from */
a3537838 33 AliFMDCalibGain(const AliFMDCalibGain& o);
9f662337 34 /** Assignment operator
35 @param o Object to assign from */
a3537838 36 AliFMDCalibGain& operator=(const AliFMDCalibGain& o);
9f662337 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 */
a3537838 43 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Float_t val);
9f662337 44 /** Set the global threshold
45 @param thres Threshold */
a3537838 46 void Set(Float_t thres) { fThreshold = thres; }
9f662337 47 /** Get gain for a strip.
48 @param det Detector
49 @param ring Ring
50 @param sec Sector
51 @param str Strip
9f662337 52 @return Gain for strip */
a3537838 53 Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
9f662337 54 /** @return threshold */
a3537838 55 Float_t Threshold() const { return fThreshold; }
56private:
9f662337 57 AliFMDFloatMap fValue; // Map
58 Float_t fThreshold; // Global threshold
a3537838 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