1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //____________________________________________________________________
22 #include "AliFMDCalibSampleRate.h" // ALIFMDCALIBGAIN_H
23 #include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
25 //____________________________________________________________________
26 ClassImp(AliFMDCalibSampleRate)
28 ; // This is here to keep Emacs for indenting the next line
31 //____________________________________________________________________
32 AliFMDCalibSampleRate::AliFMDCalibSampleRate()
38 //____________________________________________________________________
39 AliFMDCalibSampleRate::AliFMDCalibSampleRate(const AliFMDCalibSampleRate& o)
40 : TObject(o), fRates(o.fRates)
43 //____________________________________________________________________
44 AliFMDCalibSampleRate&
45 AliFMDCalibSampleRate::operator=(const AliFMDCalibSampleRate& o)
51 //____________________________________________________________________
53 AliFMDCalibSampleRate::Set(UShort_t ddl, UShort_t rate)
55 if (ddl - AliFMDParameters::kBaseDDL < 0) return;
56 fRates[ddl - AliFMDParameters::kBaseDDL] = rate;
59 //____________________________________________________________________
61 AliFMDCalibSampleRate::Rate(UShort_t ddl) const
63 if (ddl - AliFMDParameters::kBaseDDL < 0) return 0;
64 return fRates[ddl - AliFMDParameters::kBaseDDL];
67 //____________________________________________________________________