]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibSampleRate.h
Fix memory leak
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibSampleRate.h
index fbd3a34257c46b0bebad40eb4055757e92b95421..0567a0cf100da495683fd615c7b3e23c1282a768 100644 (file)
@@ -5,12 +5,24 @@
  *
  * See cxx source for full Copyright notice                               
  */
+//____________________________________________________________________
+//                                                                          
+// This class stores the sample rate (that is, how many times the
+// ATLRO's sample each VA1 channel).  In principle these can be
+// controlled per half ring, but in real life it's most likely that
+// this value will be the same for all detectors.  This value must be
+// retrived from DCS or the like. 
+//
 /** @file    AliFMDCalibSampleRate.h
     @author  Christian Holm Christensen <cholm@nbi.dk>
     @date    Sun Mar 26 18:32:14 2006
     @brief   Per digitizer card pulser calibration
-    
+    @ingroup FMD_base    
 */
+
+#ifndef FSTREAM
+# include <fstream>
+#endif
 #ifndef ROOT_TObject
 # include <TObject.h>
 #endif
@@ -51,9 +63,17 @@ public:
       @param str  Strip number (not used)
       @return Sample rate */
   UShort_t Rate(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
+  /** Write stored samplerates to file
+      @param outFile Output file stream
+   */
+  void WriteToFile(ofstream &);
+  /** Read information from file and set sample rates
+      @param inFile input file stream
+   */
+  void ReadFromFile(ifstream &);
 protected:
   // TArrayI fRates; // Sample rates 
-  AliFMDUShortMap fRates;
+  AliFMDUShortMap fRates; // Sample rates
   ClassDef(AliFMDCalibSampleRate,2); // Sample rates 
 };