AliRoot Core  3dc7879 (3dc7879)
AliFMDCalibSampleRate.h
Go to the documentation of this file.
1 #ifndef ALIFMDCALIBSAMPLERATE_H
2 #define ALIFMDCALIBSAMPLERATE_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 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.
15 //
23 #include <iosfwd>
24 #ifndef ROOT_TObject
25 # include <TObject.h>
26 #endif
27 #ifndef ALIFMDUSHORTMAP_H
28 # include "AliFMDUShortMap.h"
29 #endif
30 #ifndef ROOT_TArrayI
31 # include <TArrayI.h>
32 #endif
33 //____________________________________________________________________
37 class AliFMDCalibSampleRate : public TObject
38 {
39 public:
65  void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str,
66  UShort_t rate);
77  UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
83  void WriteToFile(std::ostream & outFile, Bool_t* detectors=0);
89  void ReadFromFile(std::istream & inFile);
90 
91  const AliFMDUShortMap& Rates() const { return fRates; }
92 protected:
93  // TArrayI fRates; // Sample rates
94  AliFMDUShortMap fRates; // Sample rates
95  ClassDef(AliFMDCalibSampleRate,2); // Sample rates
96 };
97 
98 #endif
99 //____________________________________________________________________
100 //
101 // Local Variables:
102 // mode: C++
103 // End:
104 //
105 
106 
void WriteToFile(std::ostream &outFile, Bool_t *detectors=0)
Map of an integer per strip.
UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const
void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t rate)
void ReadFromFile(std::istream &inFile)
Per strip of unisgned shorts (16 bit) data.
const AliFMDUShortMap & Rates() const
AliFMDCalibSampleRate & operator=(const AliFMDCalibSampleRate &o)
Per digitizer card pulser calibration.