1 #ifndef ALIFMDCALIBSTRIPRANGE_H
2 #define ALIFMDCALIBSTRIPRANGE_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 which strips are read-out.
11 // In principle this can be set for each half-ring.
12 // However, in real life, all the detectors will probably read out all
13 // strips, and dead areas can be handled off-line.
14 // This information comes from DCS or the like.
16 /** @file AliFMDCalibStripRange.h
17 @author Christian Holm Christensen <cholm@nbi.dk>
18 @date Sun Mar 26 18:32:14 2006
19 @brief Per digitizer card pulser calibration
28 #ifndef ALIFMDUSHORTMAP_H
29 # include "AliFMDUShortMap.h"
35 //____________________________________________________________________
36 /** @brief Per digitizer card pulser calibration
39 class AliFMDCalibStripRange : public TObject
43 AliFMDCalibStripRange();
45 @param o Object to copy from */
46 AliFMDCalibStripRange(const AliFMDCalibStripRange& o);
47 /** Assignment operator
48 @param o Object to assign from
49 @return Reference to assign from */
50 AliFMDCalibStripRange& operator=(const AliFMDCalibStripRange& o);
51 /** Set sample for a DDL
55 @param str Strip number (not used)
56 @param min Minimum strip (0-127)
57 @param max Maximum strip (0-127) */
58 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
59 UShort_t min, UShort_t max);
60 /** Get minimum strip read out (0-127)
64 @param str Strip number (not used)
65 @return Minimum strip */
66 UShort_t Min(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
67 /** Get maximum strip read out (0-127)
71 @param str Strip number (not used)
72 @return Maximum strip */
73 UShort_t Max(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
75 Dump stored strip ranges to file passed as ofstream
76 @param outFile Outputfile
78 void WriteToFile(ofstream &);
80 Read information from file and set values
81 @param inFile inputFile
83 void ReadFromFile(ifstream &);
86 // TArrayI fRates; // Sample rates
87 AliFMDUShortMap fRanges; // Min max
88 ClassDef(AliFMDCalibStripRange,1); // Sample rates
92 //____________________________________________________________________