]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDPedestalDA.h
Move setting of cluster in array after the cluster has been modified with distance...
[u/mrichter/AliRoot.git] / FMD / AliFMDPedestalDA.h
index 56174675672cf8ab99745bed8e34eaaadb5bb57e..da291d3b276351325897dfd23a28f7fa7cd2a59f 100644 (file)
@@ -15,6 +15,7 @@
 #include "AliFMDBaseDA.h"
 #include "TH1.h"
 #include "TObjArray.h"
+class TH2;
 
 class AliFMDPedestalDA: public AliFMDBaseDA 
 {
@@ -30,7 +31,12 @@ public:
    * @param pedDA Object to copy from
    */  
   AliFMDPedestalDA(const AliFMDPedestalDA & pedDA);
-  //  AliFMDPedestalDA& operator = (const AliFMDPedestalDA & pedDA) ; 
+  /** 
+   * Assignment operator 
+   * 
+   * @param pedDA Object to assign from
+   */  
+  AliFMDPedestalDA& operator=(const AliFMDPedestalDA&) { return *this; }
   /** 
    * Destructor
    * 
@@ -68,6 +74,7 @@ protected:
    * @param ring  Ring
    * @param sec   Sector 
    * @param strip Strip.
+   * @param h     Summary histogram with bins for sector and strip
    */
   void Analyse(UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
   /** 
@@ -114,28 +121,36 @@ private:
                UShort_t chan) const;
   void FillinTimebins(std::ofstream& out, UShort_t ddl);
   /** Current strip */ 
-  Int_t fCurrentChannel;
-  /** Pedestal summary */
-  TH1F  fPedSummary;
+  Int_t fCurrentChannel;                           //The current channel
+  /** Pedestal summary */ 
+  TH1F  fPedSummary;                               //Summary of pedestals
   /** Noise summary */
-  TH1F  fNoiseSummary;
+  TH1F  fNoiseSummary;                             //Summary of noises
   /** Output file for zero-suppression for FMD1 */
-  std::ofstream fZSfileFMD1;
+  std::ofstream fZSfileFMD1;                       //Stream for ZS FMD1
   /** Output file for zero-suppression for FMD2 */
-  std::ofstream fZSfileFMD2;
+  std::ofstream fZSfileFMD2;                       //Stream for ZS FMD2
   /** Output file for zero-suppression for FMD3 */
-  std::ofstream fZSfileFMD3;
+  std::ofstream fZSfileFMD3;                       //Stream for ZS FMD3 
   /** The minimum timebin seen for all channels */
-  TArrayS fMinTimebin;
+  TArrayS fMinTimebin;                             //minimum timebin
   /** The maximum timebin seen for all channels */
-  TArrayS fMaxTimebin;
+  TArrayS fMaxTimebin;                             //maximum timebin
   
+  void  MakeSummary(UShort_t det, Char_t ring);
+
+  TH2* fSummaryFMD1i;                              //Summary of FMD1
+  TH2* fSummaryFMD2i;                              //Summary of FMD2I 
+  TH2* fSummaryFMD2o;                              //Summary of FMD2O
+  TH2* fSummaryFMD3i;                              //Summary of FMD3I
+  TH2* fSummaryFMD3o;                              //Summary of FMD3O
   
   ClassDef(AliFMDPedestalDA,0)
 };
 
 inline Int_t
-AliFMDPedestalDA::HWIndex(UShort_t ddl, UShort_t b, UShort_t a, UShort_t c)const
+AliFMDPedestalDA::HWIndex(UShort_t ddl, UShort_t b, 
+                         UShort_t a, UShort_t c) const
 {
   // Save some array entries 
   UShort_t lb = (b > 1 ? b-16+2 : b);