1 #ifndef ALIFMDCALIBGAIN_H
2 #define ALIFMDCALIBGAIN_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
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
13 // Gain value and width for each strip in the FMD.
17 #ifndef ALIFMDFLOATMAP_H
18 # include <AliFMDFloatMap.h>
22 //____________________________________________________________________
23 /** @brief Gain value and width for each strip in the FMD
26 class AliFMDCalibGain : public TObject
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.
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.
54 @return Gain for strip */
55 Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
58 Read information from file and set values
59 @param inFile inputFile
61 Bool_t ReadFromFile(std::istream & inFile);
63 /** @return threshold */
64 Float_t Threshold() const { return fThreshold; }
65 const AliFMDFloatMap& Values() const { return fValue; }
67 AliFMDFloatMap fValue; // Map
68 Float_t fThreshold; // Global threshold
69 ClassDef(AliFMDCalibGain, 1) // Gain data for the FMD
74 //____________________________________________________________________