1 #ifndef ALIFMDCALIBPEDESTAL_H
2 #define ALIFMDCALIBPEDESTAL_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 //____________________________________________________________________
10 // This class stores a pedestal and pedestal width for each strip in
12 // The values are stored as floats, since they may be results from a
14 // Need to make algorithm that makes this data
15 /** @file AliFMDCalibPedestal.h
16 @author Christian Holm Christensen <cholm@nbi.dk>
17 @date Sun Mar 26 18:30:51 2006
18 @brief Per strip pedestal calibration
21 #ifndef ALIFMDFLOATMAP_H
22 # include <AliFMDFloatMap.h>
27 //____________________________________________________________________
28 /** @brief Pedestal value and width for each strip in the FMD
31 class AliFMDCalibPedestal : public TObject
35 AliFMDCalibPedestal();
37 ~AliFMDCalibPedestal() {}
41 * @param o Object to copy from
43 AliFMDCalibPedestal(const AliFMDCalibPedestal& o);
47 * @param o Object to assign from
48 * @return Reference to this object
50 AliFMDCalibPedestal& operator=(const AliFMDCalibPedestal& o);
52 * Set the values for a strip.
58 * @param ped Value of pedestal
59 * @param pedW Width of pedestal
61 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
62 Float_t ped, Float_t pedW);
64 * Get pedestal for a strip.
70 * @return Pedestal for strip
72 Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
73 /** Get pedestal width for a strip.
78 @return Pedestal width for strip */
79 Float_t Width(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
82 * Read information from file and set values
84 * @param inFile inputFile
86 Bool_t ReadFromFile(std::istream & inFile);
88 * Make a dead map based on the noise of the channels. If the noise
89 * of a paraticular channel is larger than @a maxW, then the channel
92 * If the argument @a dead is non-null, then the map passed is
93 * modified. That is, channels marked as dead in the map will
94 * remain marked. Channels that meat the criterion (noise larger
95 * than @a maxW) will in addition be marked as dead.
97 * If the argument @a dead is null, then a new map is created and a
98 * pointer to this will be returned.
100 * @param maxW Maximum value of noise for a channel before it is
102 * @param dead If non-null, then modify this map.
104 * @return A pointer to possibly newly allocated dead map.
106 AliFMDBoolMap* MakeDeadMap(Float_t maxW, AliFMDBoolMap* dead=0) const;
108 AliFMDFloatMap fValue; /** Pedestal */
109 AliFMDFloatMap fWidth; /** Pedestal width */
110 ClassDef(AliFMDCalibPedestal, 1) // Pedestal data for the FMD
115 //____________________________________________________________________