]>
Commit | Line | Data |
---|---|---|
8f6ee336 | 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 | */ | |
02a27b50 | 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 | // | |
c2fc1258 | 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 | |
02a27b50 | 20 | @ingroup FMD_base |
c2fc1258 | 21 | */ |
bd727bee | 22 | |
23 | #include <iostream> | |
24 | #include <fstream> | |
8f6ee336 | 25 | #ifndef ROOT_TObject |
26 | # include <TObject.h> | |
27 | #endif | |
c2fc1258 | 28 | #ifndef ALIFMDUSHORTMAP_H |
29 | # include "AliFMDUShortMap.h" | |
30 | #endif | |
8f6ee336 | 31 | #ifndef ROOT_TArrayI |
32 | # include <TArrayI.h> | |
33 | #endif | |
34 | //____________________________________________________________________ | |
c2fc1258 | 35 | /** @brief Per digitizer card pulser calibration |
9f662337 | 36 | @ingroup FMD_base |
37 | */ | |
8f6ee336 | 38 | class AliFMDCalibSampleRate : public TObject |
39 | { | |
40 | public: | |
9f662337 | 41 | /** CTOR */ |
8f6ee336 | 42 | AliFMDCalibSampleRate(); |
9f662337 | 43 | /** Copy CTOR |
44 | @param o Object to copy from */ | |
8f6ee336 | 45 | AliFMDCalibSampleRate(const AliFMDCalibSampleRate& o); |
9f662337 | 46 | /** Assignment operator |
47 | @param o Object to assign from | |
48 | @return Reference to assign from */ | |
8f6ee336 | 49 | AliFMDCalibSampleRate& operator=(const AliFMDCalibSampleRate& o); |
9f662337 | 50 | /** Set sample for a DDL |
c2fc1258 | 51 | @param det Detector # |
52 | @param ring Ring ID | |
53 | @param sec Sector # | |
54 | @param str Strip number (not used) | |
9f662337 | 55 | @param rate Sample rate */ |
c2fc1258 | 56 | void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, |
57 | UShort_t rate); | |
9f662337 | 58 | /** Get sample rate for a detector |
c2fc1258 | 59 | @param det Detector # |
60 | @param ring Ring ID | |
61 | @param sec Sector # | |
62 | @param str Strip number (not used) | |
9f662337 | 63 | @return Sample rate */ |
c2fc1258 | 64 | UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const; |
bd727bee | 65 | |
66 | void WriteToFile(ofstream &); | |
67 | ||
68 | void ReadFromFile(ifstream &); | |
8f6ee336 | 69 | protected: |
c2fc1258 | 70 | // TArrayI fRates; // Sample rates |
02a27b50 | 71 | AliFMDUShortMap fRates; // Sample rates |
c2fc1258 | 72 | ClassDef(AliFMDCalibSampleRate,2); // Sample rates |
8f6ee336 | 73 | }; |
74 | ||
75 | #endif | |
76 | //____________________________________________________________________ | |
77 | // | |
78 | // Local Variables: | |
79 | // mode: C++ | |
80 | // End: | |
81 | // | |
82 | ||
83 |