AliFMDRawWriter.h

Go to the documentation of this file.
00001 #ifndef ALIFMDRAWWRITER_H
00002 #define ALIFMDRAWWRITER_H
00003 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
00004  * reserved. 
00005  *
00006  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
00007  *
00008  * See cxx source for full Copyright notice                               
00009  */
00010 /* $Id: AliFMDRawWriter.h,v 1.6 2006/03/24 01:47:25 cholm Exp $ */
00011 //____________________________________________________________________
00012 // 
00013 // Class to writer ADC values to a Raw File
00014 // Uses general ALTRO class - which is wrong
00015 // Should make it right!
00016 //
00017 #ifndef ROOT_TTask
00018 # include <TTask.h>
00019 #endif
00020 
00021 //____________________________________________________________________
00022 class AliFMD;
00023 class AliAltroBuffer;
00024 class TArrayI;
00025 class TClonesArray;
00026 
00027 //____________________________________________________________________
00038 class AliFMDRawWriter : public TTask 
00039 {
00040 public:
00043   AliFMDRawWriter(AliFMD* fmd);
00045   virtual ~AliFMDRawWriter() {}
00046 
00049   virtual void Exec(Option_t* option="");
00053   virtual void WriteDigits(TClonesArray* digits);
00054 protected:
00055   /* Write a single channel.  This member function is obsolete. */
00056   // virtual void WriteChannel(AliAltroBuffer* altro, UShort_t strip, 
00057   //                           UShort_t sector, Char_t ring, const TArrayI& d);
00058   AliFMD*       fFMD;              
00059   UShort_t      fSampleRate;       // The sample rate (0 -> inferred from data)
00060   UShort_t      fChannelsPerAltro; // Number of pre-amp. channels/adc channel 
00061   UShort_t      fThreshold;        // Threshold for zero-suppression
00062   
00063   ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
00064 };
00065 
00066 #endif
00067 //____________________________________________________________________
00068 //
00069 // Local Variables:
00070 //   mode: C++
00071 // End:
00072 //
00073 // EOF
00074 //

Generated on Fri Mar 24 17:11:21 2006 for ALICE FMD Off-line by  doxygen 1.4.6