]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDCalibGain.cxx
Correct raw data reconstruction in case of trigger
[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 **************************************************************************/
a3537838 15/* $Id$ */
c2fc1258 16/** @file AliFMDCalibGain.cxx
17 @author Christian Holm Christensen <cholm@nbi.dk>
18 @date Sun Mar 26 18:30:02 2006
19 @brief Per strip gain calibration
20*/
a3537838 21//____________________________________________________________________
22//
23//
24//
25#include "AliFMDCalibGain.h" // ALIFMDCALIBGAIN_H
26//____________________________________________________________________
27ClassImp(AliFMDCalibGain)
28#if 0
29 ; // This is here to keep Emacs for indenting the next line
30#endif
31
32//____________________________________________________________________
33AliFMDCalibGain::AliFMDCalibGain()
34{
35 fValue.Reset(-1.);
36 fThreshold = -1.;
37}
38
39//____________________________________________________________________
40AliFMDCalibGain::AliFMDCalibGain(const AliFMDCalibGain& o)
41 : TObject(o), fValue(o.fValue), fThreshold(o.fThreshold)
42{}
43
44//____________________________________________________________________
45AliFMDCalibGain&
46AliFMDCalibGain::operator=(const AliFMDCalibGain& o)
47{
48 fValue = o.fValue;
49 fThreshold = o.fThreshold;
50 return (*this);
51}
52
53//____________________________________________________________________
54void
55AliFMDCalibGain::Set(UShort_t det, Char_t ring, UShort_t sec,
56 UShort_t str, Float_t val)
57{
58 if (fValue.CheckIndex(det, ring, sec, str) < 0) return;
59 fValue(det, ring, sec, str) = val;
60}
61
62//____________________________________________________________________
63Float_t
64AliFMDCalibGain::Value(UShort_t det, Char_t ring, UShort_t sec,
65 UShort_t str)
66{
67 return fValue(det, ring, sec, str);
68}
69
70//____________________________________________________________________
71//
72// EOF
73//