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() {}
39 @param o Object to copy from */
40 AliFMDCalibPedestal(const AliFMDCalibPedestal& o);
42 @param o Object to assign from
43 @return Reference to this object */
44 AliFMDCalibPedestal& operator=(const AliFMDCalibPedestal& o);
45 /** Set the values for a strip.
50 @param ped Value of pedestal
51 @param pedW Width of pedestal */
52 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
53 Float_t ped, Float_t pedW);
54 /** Get pedestal for a strip.
59 @return Pedestal for strip */
60 Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
61 /** Get pedestal width for a strip.
66 @return Pedestal width for strip */
67 Float_t Width(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
70 Read information from file and set values
71 @param inFile inputFile
73 Bool_t ReadFromFile(std::istream & inFile);
75 * Make a dead map based on the noise of the channels. If the noise
76 * of a paraticular channel is larger than @a maxW, then the channel
79 * If the argument @a dead is non-null, then the map passed is
80 * modified. That is, channels marked as dead in the map will
81 * remain marked. Channels that meat the criterion (noise larger
82 * than @a maxW) will in addition be marked as dead.
84 * If the argument @a dead is null, then a new map is created and a
85 * pointer to this will be returned.
87 * @param maxW Maximum value of noise for a channel before it is
89 * @param dead If non-null, then modify this map.
91 * @return A pointer to possibly newly allocated dead map.
93 AliFMDBoolMap* MakeDeadMap(Float_t maxW, AliFMDBoolMap* dead=0) const;
95 AliFMDFloatMap fValue; /** Pedestal */
96 AliFMDFloatMap fWidth; /** Pedestal width */
97 ClassDef(AliFMDCalibPedestal, 1) // Pedestal data for the FMD
102 //____________________________________________________________________