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