]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDCalibGain.cxx
Update of clusterizer
[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//
02a27b50 23// Gain value and width for each strip in the FMD.
24// Foo
25// Bar
26// Baz
27// Gnus
a3537838 28//
29#include "AliFMDCalibGain.h" // ALIFMDCALIBGAIN_H
30//____________________________________________________________________
31ClassImp(AliFMDCalibGain)
32#if 0
33 ; // This is here to keep Emacs for indenting the next line
34#endif
35
36//____________________________________________________________________
37AliFMDCalibGain::AliFMDCalibGain()
b5ee4425 38 : fValue(),
39 fThreshold(-1.)
a3537838 40{
02a27b50 41 // CTOR
a3537838 42 fValue.Reset(-1.);
43 fThreshold = -1.;
44}
45
46//____________________________________________________________________
47AliFMDCalibGain::AliFMDCalibGain(const AliFMDCalibGain& o)
b5ee4425 48 : TObject(o),
49 fValue(o.fValue),
50 fThreshold(o.fThreshold)
02a27b50 51{
52 // Copy CTOR
53}
a3537838 54
55//____________________________________________________________________
56AliFMDCalibGain&
57AliFMDCalibGain::operator=(const AliFMDCalibGain& o)
58{
02a27b50 59 // Assignment operator
a3537838 60 fValue = o.fValue;
61 fThreshold = o.fThreshold;
62 return (*this);
63}
64
65//____________________________________________________________________
66void
67AliFMDCalibGain::Set(UShort_t det, Char_t ring, UShort_t sec,
68 UShort_t str, Float_t val)
69{
02a27b50 70 // Set the value for a strip
a3537838 71 if (fValue.CheckIndex(det, ring, sec, str) < 0) return;
72 fValue(det, ring, sec, str) = val;
73}
74
75//____________________________________________________________________
76Float_t
77AliFMDCalibGain::Value(UShort_t det, Char_t ring, UShort_t sec,
78 UShort_t str)
79{
02a27b50 80 // Get the value for a strip
a3537838 81 return fValue(det, ring, sec, str);
82}
83
84//____________________________________________________________________
85//
86// EOF
87//