]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibPedestal.h
Protect against multiple initialisations of the transforms.
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibPedestal.h
index afb69f059f366eddfc4daeb1a79c3f83c5c4010a..7014ce1e995f9279753d3dd53a6bf4c9d68dabde 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef ALIFMDFLOATMAP_H
 # include <AliFMDFloatMap.h>
 #endif
+#include <iosfwd>
+class AliFMDBoolMap;
+
 //____________________________________________________________________
 /** @brief Pedestal value and width for each strip in the FMD 
     @ingroup FMD_base
@@ -62,6 +65,32 @@ public:
       @param str  Strip
       @return Pedestal width for strip */  
   Float_t Width(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
+
+  /**
+     Read information from file and set values
+     @param inFile inputFile
+   */
+  Bool_t ReadFromFile(std::istream & inFile);
+  /** 
+   * Make a dead map based on the noise of the channels.  If the noise
+   * of a paraticular channel is larger than @a maxW, then the channel
+   * is marked as dead. 
+   *
+   * If the argument @a dead is non-null, then the map passed is
+   * modified.  That is, channels marked as dead in the map will
+   * remain marked.   Channels that meat the criterion (noise larger
+   * than @a maxW) will in addition be marked as dead. 
+   *
+   * If the argument @a dead is null, then a new map is created and a
+   * pointer to this will be returned. 
+   * 
+   * @param maxW Maximum value of noise for a channel before it is
+   * marked as dead. 
+   * @param dead If non-null, then modify this map. 
+   * 
+   * @return A pointer to possibly newly allocated dead map. 
+   */
+  AliFMDBoolMap* MakeDeadMap(Float_t maxW, AliFMDBoolMap* dead=0) const;
 private:
   AliFMDFloatMap fValue; /** Pedestal */
   AliFMDFloatMap fWidth; /** Pedestal width */