]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDCalibGain.cxx
New RAW I/O. I rolled my own, because I wasn't happy with the old
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibGain.cxx
CommitLineData
a3537838 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18//____________________________________________________________________
19//
20//
21//
22#include "AliFMDCalibGain.h" // ALIFMDCALIBGAIN_H
23//____________________________________________________________________
24ClassImp(AliFMDCalibGain)
25#if 0
26 ; // This is here to keep Emacs for indenting the next line
27#endif
28
29//____________________________________________________________________
30AliFMDCalibGain::AliFMDCalibGain()
31{
32 fValue.Reset(-1.);
33 fThreshold = -1.;
34}
35
36//____________________________________________________________________
37AliFMDCalibGain::AliFMDCalibGain(const AliFMDCalibGain& o)
38 : TObject(o), fValue(o.fValue), fThreshold(o.fThreshold)
39{}
40
41//____________________________________________________________________
42AliFMDCalibGain&
43AliFMDCalibGain::operator=(const AliFMDCalibGain& o)
44{
45 fValue = o.fValue;
46 fThreshold = o.fThreshold;
47 return (*this);
48}
49
50//____________________________________________________________________
51void
52AliFMDCalibGain::Set(UShort_t det, Char_t ring, UShort_t sec,
53 UShort_t str, Float_t val)
54{
55 if (fValue.CheckIndex(det, ring, sec, str) < 0) return;
56 fValue(det, ring, sec, str) = val;
57}
58
59//____________________________________________________________________
60Float_t
61AliFMDCalibGain::Value(UShort_t det, Char_t ring, UShort_t sec,
62 UShort_t str)
63{
64 return fValue(det, ring, sec, str);
65}
66
67//____________________________________________________________________
68//
69// EOF
70//