]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibStripRange.h
Adding TOF calib task for calibration of problematic channels
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibStripRange.h
index a02f7a790d581556feb138ab756635aa30478b09..9b326424887f9d9204a5a25166e37007c3919618 100644 (file)
@@ -5,11 +5,21 @@
  *
  * See cxx source for full Copyright notice                               
  */
+//____________________________________________________________________
+//                                                                          
+// This class stores which strips are read-out.  
+// In principle this can be set for each half-ring.   
+// However, in real life, all the detectors will probably read out all
+// strips, and dead areas can be handled off-line. 
+// This information comes from DCS or the like.
+//
 /** @file    AliFMDCalibStripRange.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
 */
+#include <iosfwd>
 #ifndef ROOT_TObject
 # include <TObject.h>
 #endif
@@ -19,6 +29,7 @@
 #ifndef ROOT_TArrayI
 # include <TArrayI.h>
 #endif
+
 //____________________________________________________________________
 /** @brief Per digitizer card pulser calibration
     @ingroup FMD_base
@@ -58,9 +69,21 @@ public:
       @param str  Strip number (not used)
       @return Maximum strip  */
   UShort_t Max(UShort_t det, Char_t ring, UShort_t sec, UShort_t str=0) const;
+  /**
+     Dump stored strip ranges to file passed as ofstream
+     @param outFile Outputfile
+  */
+  void WriteToFile(std::ostream &, Bool_t* detectors=0);
+  /**
+     Read information from file and set values
+     @param inFile inputFile
+   */
+  void ReadFromFile(std::istream &);
+  
+  const AliFMDUShortMap& Ranges() const { return fRanges; }
 protected:
   // TArrayI fRates; // Sample rates 
-  AliFMDUShortMap fRates;
+  AliFMDUShortMap fRanges; // Min max 
   ClassDef(AliFMDCalibStripRange,1); // Sample rates 
 };