]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDCalibPedestal.h
Fixes to AliFMDDisplay and AliFMDPattern for use in DQM environment.
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibPedestal.h
1 #ifndef ALIFMDCALIBPEDESTAL_H
2 #define ALIFMDCALIBPEDESTAL_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 //____________________________________________________________________
9 //                                                                          
10 // This class stores a pedestal and pedestal width for each strip in
11 // the FMD detectors. 
12 // The values are stored as floats, since they may be results from a
13 // fit. 
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 
19     @ingroup FMD_base
20 */
21 #ifndef ALIFMDFLOATMAP_H
22 # include <AliFMDFloatMap.h>
23 #endif
24 #include <iosfwd>
25
26 //____________________________________________________________________
27 /** @brief Pedestal value and width for each strip in the FMD 
28     @ingroup FMD_base
29 */
30 class AliFMDCalibPedestal : public TObject 
31 {
32 public:
33   /** CTOR */
34   AliFMDCalibPedestal();
35   /** DTOR */
36   ~AliFMDCalibPedestal() {}
37   /** Copy ctor 
38       @param o Object to copy from  */
39   AliFMDCalibPedestal(const AliFMDCalibPedestal& o);
40   /** Assignment 
41       @param o Object to assign from
42       @return Reference to this object   */
43   AliFMDCalibPedestal& operator=(const AliFMDCalibPedestal& o);
44   /** Set the values for a strip. 
45       @param det  Detector 
46       @param ring Ring 
47       @param sec  Sector 
48       @param str  Strip
49       @param ped  Value of pedestal 
50       @param pedW Width of pedestal */
51   void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, 
52            Float_t ped, Float_t pedW);
53   /** Get pedestal for a strip. 
54       @param det  Detector 
55       @param ring Ring 
56       @param sec  Sector 
57       @param str  Strip
58       @return Pedestal for strip */  
59   Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
60   /** Get pedestal width for a strip. 
61       @param det  Detector 
62       @param ring Ring 
63       @param sec  Sector 
64       @param str  Strip
65       @return Pedestal width for strip */  
66   Float_t Width(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
67
68   /**
69      Read information from file and set values
70      @param inFile inputFile
71    */
72   Bool_t ReadFromFile(std::istream & inFile);
73
74 private:
75   AliFMDFloatMap fValue; /** Pedestal */
76   AliFMDFloatMap fWidth; /** Pedestal width */
77   ClassDef(AliFMDCalibPedestal, 1) // Pedestal data for the FMD 
78 };
79
80
81 #endif
82 //____________________________________________________________________
83 //
84 // Local Variables:
85 //   mode: C++
86 // End:
87 //
88
89