Added the possibility to do diagnostics histograms.
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibPedestal.h
CommitLineData
a3537838 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 */
02a27b50 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
c2fc1258 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
02a27b50 19 @ingroup FMD_base
c2fc1258 20*/
a3537838 21#ifndef ALIFMDFLOATMAP_H
22# include <AliFMDFloatMap.h>
23#endif
24//____________________________________________________________________
c2fc1258 25/** @brief Pedestal value and width for each strip in the FMD
9f662337 26 @ingroup FMD_base
27*/
a3537838 28class AliFMDCalibPedestal : public TObject
29{
30public:
9f662337 31 /** CTOR */
a3537838 32 AliFMDCalibPedestal();
9f662337 33 /** DTOR */
a3537838 34 ~AliFMDCalibPedestal() {}
9f662337 35 /** Copy ctor
36 @param o Object to copy from */
a3537838 37 AliFMDCalibPedestal(const AliFMDCalibPedestal& o);
9f662337 38 /** Assignment
39 @param o Object to assign from
40 @return Reference to this object */
a3537838 41 AliFMDCalibPedestal& operator=(const AliFMDCalibPedestal& o);
9f662337 42 /** Set the values for a strip.
43 @param det Detector
44 @param ring Ring
45 @param sec Sector
46 @param str Strip
47 @param ped Value of pedestal
48 @param pedW Width of pedestal */
a3537838 49 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
50 Float_t ped, Float_t pedW);
9f662337 51 /** Get pedestal for a strip.
52 @param det Detector
53 @param ring Ring
54 @param sec Sector
55 @param str Strip
9f662337 56 @return Pedestal for strip */
a3537838 57 Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
9f662337 58 /** Get pedestal width for a strip.
59 @param det Detector
60 @param ring Ring
61 @param sec Sector
62 @param str Strip
9f662337 63 @return Pedestal width for strip */
a3537838 64 Float_t Width(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
65private:
9f662337 66 AliFMDFloatMap fValue; /** Pedestal */
67 AliFMDFloatMap fWidth; /** Pedestal width */
a3537838 68 ClassDef(AliFMDCalibPedestal, 1) // Pedestal data for the FMD
69};
70
71
72#endif
73//____________________________________________________________________
74//
75// Local Variables:
76// mode: C++
77// End:
78//
79
80