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