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