]>
Commit | Line | Data |
---|---|---|
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 | // | |
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 | |
20 | @ingroup FMD_base | |
21 | */ | |
22 | ||
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 | //____________________________________________________________________ | |
34 | /** @brief Per digitizer card pulser calibration | |
35 | @ingroup FMD_base | |
36 | */ | |
37 | class AliFMDCalibSampleRate : public TObject | |
38 | { | |
39 | public: | |
40 | /** CTOR */ | |
41 | AliFMDCalibSampleRate(); | |
42 | /** Copy CTOR | |
43 | @param o Object to copy from */ | |
44 | AliFMDCalibSampleRate(const AliFMDCalibSampleRate& o); | |
45 | /** Assignment operator | |
46 | @param o Object to assign from | |
47 | @return Reference to assign from */ | |
48 | AliFMDCalibSampleRate& operator=(const AliFMDCalibSampleRate& o); | |
49 | /** Set sample for a DDL | |
50 | @param det Detector # | |
51 | @param ring Ring ID | |
52 | @param sec Sector # | |
53 | @param str Strip number (not used) | |
54 | @param rate Sample rate */ | |
55 | void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, | |
56 | UShort_t rate); | |
57 | /** Get sample rate for a detector | |
58 | @param det Detector # | |
59 | @param ring Ring ID | |
60 | @param sec Sector # | |
61 | @param str Strip number (not used) | |
62 | @return Sample rate */ | |
63 | UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const; | |
64 | /** Write stored samplerates to file | |
65 | @param outFile Output file stream | |
66 | */ | |
67 | void WriteToFile(std::ostream & outFile, Bool_t* detectors=0); | |
68 | /** Read information from file and set sample rates | |
69 | @param inFile input file stream | |
70 | */ | |
71 | void ReadFromFile(std::istream & inFile); | |
72 | protected: | |
73 | // TArrayI fRates; // Sample rates | |
74 | AliFMDUShortMap fRates; // Sample rates | |
75 | ClassDef(AliFMDCalibSampleRate,2); // Sample rates | |
76 | }; | |
77 | ||
78 | #endif | |
79 | //____________________________________________________________________ | |
80 | // | |
81 | // Local Variables: | |
82 | // mode: C++ | |
83 | // End: | |
84 | // | |
85 | ||
86 |