]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDCalibSampleRate.h
Use VMC id's rather than TGeo id's
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibSampleRate.h
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 #ifndef ROOT_TObject
23 # include <TObject.h>
24 #endif
25 #ifndef ALIFMDUSHORTMAP_H
26 # include "AliFMDUShortMap.h"
27 #endif
28 #ifndef ROOT_TArrayI
29 # include <TArrayI.h>
30 #endif
31 //____________________________________________________________________
32 /** @brief Per digitizer card pulser calibration
33     @ingroup FMD_base
34 */
35 class AliFMDCalibSampleRate : public TObject
36 {
37 public:
38   /** CTOR */
39   AliFMDCalibSampleRate();
40   /** Copy CTOR
41       @param o Object to copy from  */
42   AliFMDCalibSampleRate(const AliFMDCalibSampleRate& o);
43   /** Assignment operator 
44       @param o Object to assign from 
45       @return Reference to assign from  */
46   AliFMDCalibSampleRate& operator=(const AliFMDCalibSampleRate& o);
47   /** Set sample for a DDL
48       @param det   Detector #
49       @param ring  Ring ID 
50       @param sec   Sector # 
51       @param str   Strip number (not used)
52       @param rate  Sample rate */
53   void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, 
54            UShort_t rate);
55   /** Get sample rate for a detector 
56       @param det  Detector #
57       @param ring Ring ID 
58       @param sec  Sector # 
59       @param str  Strip number (not used)
60       @return Sample rate */
61   UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
62 protected:
63   // TArrayI fRates; // Sample rates 
64   AliFMDUShortMap fRates; // Sample rates
65   ClassDef(AliFMDCalibSampleRate,2); // Sample rates 
66 };
67
68 #endif
69 //____________________________________________________________________
70 //
71 // Local Variables:
72 //   mode: C++
73 // End:
74 //
75
76