Added docs and fixed a bug
[u/mrichter/AliRoot.git] / FMD / AliFMDRawWriter.h
index 2e0d4cb57c90bcc3e361db8c3a3fa67e828cbb9b..7a841a08617ba4aa20533b1ef0c5e0830fde5c1d 100644 (file)
@@ -18,6 +18,8 @@
 
 //____________________________________________________________________
 class AliFMD;
+class AliAltroBuffer;
+class TArrayI;
 
 
 //____________________________________________________________________
@@ -29,10 +31,16 @@ public:
   virtual void Exec(Option_t* option="");
   void SetSampleRate(UShort_t sampleRate=1) { fSampleRate = sampleRate; }
   void SetChannelsPerAltro(UShort_t size=128) { fChannelsPerAltro = size; }
+  void SetThreshold(UShort_t t=0) { fThreshold = t; }
 protected:
-  AliFMD*       fFMD;        //! Pointer to detector description 
-  UShort_t      fSampleRate; // The sample rate (if 0, inferred from data)
-  UShort_t      fChannelsPerAltro;
+  virtual void WriteChannel(AliAltroBuffer* altro, 
+                           UShort_t strip, UShort_t sector, Char_t ring, 
+                           const TArrayI& data);
+  AliFMD*       fFMD;              //! Pointer to detector description 
+  UShort_t      fSampleRate;       // The sample rate (0 -> inferred from data)
+  UShort_t      fChannelsPerAltro; // Number of pre-amp. channels/adc channel 
+  UShort_t      fThreshold;        // Threshold for zero-suppression
+  
   ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
 };