X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDCalibPedestal.h;h=7014ce1e995f9279753d3dd53a6bf4c9d68dabde;hb=352482dcde1670f39267dc5642a09c480ce7907f;hp=afb69f059f366eddfc4daeb1a79c3f83c5c4010a;hpb=02a27b508bdd34a6febe776298cc20b18fdbb2ed;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDCalibPedestal.h b/FMD/AliFMDCalibPedestal.h index afb69f059f3..7014ce1e995 100644 --- a/FMD/AliFMDCalibPedestal.h +++ b/FMD/AliFMDCalibPedestal.h @@ -21,6 +21,9 @@ #ifndef ALIFMDFLOATMAP_H # include #endif +#include +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 */