]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibPedestal.h
Possibility to make PT sorting (Jochen)
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibPedestal.h
index f6161b6252d2d3d7090a22f2ec2fcbed98d35142..fdfe290dce6378ab571abb576fdbe035402a6266 100644 (file)
@@ -22,6 +22,7 @@
 # include <AliFMDFloatMap.h>
 #endif
 #include <iosfwd>
+class AliFMDBoolMap;
 
 //____________________________________________________________________
 /** @brief Pedestal value and width for each strip in the FMD 
@@ -34,28 +35,40 @@ public:
   AliFMDCalibPedestal();
   /** DTOR */
   ~AliFMDCalibPedestal() {}
-  /** Copy ctor 
-      @param o Object to copy from  */
+  /** 
+   * Copy ctor 
+   *
+   * @param o Object to copy from  
+   */
   AliFMDCalibPedestal(const AliFMDCalibPedestal& o);
-  /** Assignment 
-      @param o Object to assign from
-      @return Reference to this object   */
+  /** 
+   * Assignment 
+   *
+   * @param o Object to assign from
+   * @return Reference to this object   
+   */
   AliFMDCalibPedestal& operator=(const AliFMDCalibPedestal& o);
-  /** Set the values for a strip. 
-      @param det  Detector 
-      @param ring Ring 
-      @param sec  Sector 
-      @param str  Strip
-      @param ped  Value of pedestal 
-      @param pedW Width of pedestal */
+  /** 
+   * Set the values for a strip. 
+   * 
+   * @param det  Detector 
+   * @param ring Ring 
+   * @param sec  Sector 
+   * @param str  Strip
+   * @param ped  Value of pedestal 
+   * @param pedW Width of pedestal 
+   */
   void Set(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, 
           Float_t ped, Float_t pedW);
-  /** Get pedestal for a strip. 
-      @param det  Detector 
-      @param ring Ring 
-      @param sec  Sector 
-      @param str  Strip
-      @return Pedestal for strip */  
+  /** 
+   * Get pedestal for a strip. 
+   *
+   * @param det  Detector 
+   * @param ring Ring 
+   * @param sec  Sector 
+   * @param str  Strip
+   * @return Pedestal for strip 
+   */  
   Float_t Value(UShort_t det, Char_t ring, UShort_t sec, UShort_t str);
   /** Get pedestal width for a strip. 
       @param det  Detector 
@@ -66,11 +79,34 @@ public:
   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
+   * 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;
 
+  const AliFMDFloatMap& Values() const { return fValue; }
+  const AliFMDFloatMap& Widths() const { return fWidth; }
 private:
   AliFMDFloatMap fValue; /** Pedestal */
   AliFMDFloatMap fWidth; /** Pedestal width */