]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibPedestal.cxx
added loading libTestShuttle.so
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibPedestal.cxx
index 776cdc06f5ccc1bfc3d7324cffc8bdc1849e725f..8795c0272833446d5582d91bda67171c457eda41 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
+/** @file    AliFMDCalibPedestal.cxx
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Sun Mar 26 18:30:36 2006
+    @brief   Per strip pedestal calibration 
+    @ingroup FMD_base
+*/
 //____________________________________________________________________
 //                                                                          
-//
+// This class stores a pedestal and pedestal width for each strip in
+// the FMD detectors. 
+// The values are stored as floats, since they may be results from a
+// fit. 
+// Need to make algorithm that makes this data
 //
 #include "AliFMDCalibPedestal.h"       // ALIFMDCALIBPEDESTAL_H
 //____________________________________________________________________
@@ -28,20 +36,28 @@ ClassImp(AliFMDCalibPedestal)
 
 //____________________________________________________________________
 AliFMDCalibPedestal::AliFMDCalibPedestal()
+  : fValue(), 
+    fWidth()
 {
+  // CTOR 
   fValue.Reset(-1.);
   fWidth.Reset(-1.);
 }
 
 //____________________________________________________________________
 AliFMDCalibPedestal::AliFMDCalibPedestal(const AliFMDCalibPedestal& o)
-  : TObject(o), fValue(o.fValue), fWidth(o.fWidth)
-{}
+  : TObject(o), 
+    fValue(o.fValue), 
+    fWidth(o.fWidth)
+{
+  // Copy Ctor 
+}
 
 //____________________________________________________________________
 AliFMDCalibPedestal&
 AliFMDCalibPedestal::operator=(const AliFMDCalibPedestal& o)
 {
+  // Assignment operator 
   fValue = o.fValue;
   fWidth = o.fWidth;
   return (*this);
@@ -52,6 +68,7 @@ void
 AliFMDCalibPedestal::Set(UShort_t det, Char_t ring, UShort_t sec, 
                         UShort_t str, Float_t ped, Float_t pedW)
 {
+  // set value and width for a strip 
   if (fValue.CheckIndex(det, ring, sec, str) < 0) return;
   fValue(det, ring, sec, str) = ped;
   fWidth(det, ring, sec, str) = pedW;
@@ -62,6 +79,7 @@ Float_t
 AliFMDCalibPedestal::Value(UShort_t det, Char_t ring, UShort_t sec, 
                           UShort_t str)
 {
+  // Get pedestal value for a strip 
   return fValue(det, ring, sec, str);
 }
 
@@ -70,7 +88,8 @@ Float_t
 AliFMDCalibPedestal::Width(UShort_t det, Char_t ring, UShort_t sec, 
                           UShort_t str)
 {
-  return fValue(det, ring, sec, str);
+  // Get pedestal width for a strip 
+  return fWidth(det, ring, sec, str);
 }
 
 //____________________________________________________________________