1 #ifndef ALIFMDCALIBSAMPLERATE_H
2 #define ALIFMDCALIBSAMPLERATE_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 the sample rate (that is, how many times the
11 // ATLRO's sample each VA1 channel). In principle these can be
12 // controlled per half ring, but in real life it's most likely that
13 // this value will be the same for all detectors. This value must be
14 // retrived from DCS or the like.
16 /** @file AliFMDCalibSampleRate.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
27 #ifndef ALIFMDUSHORTMAP_H
28 # include "AliFMDUShortMap.h"
33 //____________________________________________________________________
34 /** @brief Per digitizer card pulser calibration
37 class AliFMDCalibSampleRate : public TObject
41 AliFMDCalibSampleRate();
45 * @param o Object to copy from
47 AliFMDCalibSampleRate(const AliFMDCalibSampleRate& o);
51 * @param o Object to assign from
53 * @return Reference to this object
55 AliFMDCalibSampleRate& operator=(const AliFMDCalibSampleRate& o);
57 * Set sample for a sector
59 * @param det Detector #
62 * @param str Strip number (not used)
63 * @param rate Sample rate
65 void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
68 * Get sample rate for a sector
70 * @param det Detector #
73 * @param str Strip number (not used)
77 UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
79 * Write stored samplerates to file
81 * @param outFile Output file stream
83 void WriteToFile(std::ostream & outFile, Bool_t* detectors=0);
85 * Read information from file and set sample rates
87 * @param inFile input file stream
89 void ReadFromFile(std::istream & inFile);
91 const AliFMDUShortMap& Rates() const { return fRates; }
93 // TArrayI fRates; // Sample rates
94 AliFMDUShortMap fRates; // Sample rates
95 ClassDef(AliFMDCalibSampleRate,2); // Sample rates
99 //____________________________________________________________________