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