AliRoot Core  3dc7879 (3dc7879)
AliFMDRawWriter.h
Go to the documentation of this file.
1 #ifndef ALIFMDRAWWRITER_H
2 #define ALIFMDRAWWRITER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved.
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice
9  */
10 /* $Id$ */
16 //____________________________________________________________________
17 //
18 // Class to writer ADC values to a Raw File
19 // Uses general ALTRO class - which is wrong
20 // Should make it right!
21 //
22 #ifndef ROOT_TTask
23 # include <TTask.h>
24 #endif
25 
26 //____________________________________________________________________
27 class AliFMD;
28 class AliAltroBuffer;
29 class AliAltroBufferV3;
30 class TArrayI;
31 class TArrayF;
32 class TClonesArray;
33 
34 //____________________________________________________________________
45 class AliFMDRawWriter : public TTask
46 {
47 public:
50  AliFMDRawWriter(AliFMD* fmd);
52  virtual ~AliFMDRawWriter() {}
53 
56  virtual void Exec(Option_t* option="");
60  virtual Long_t WriteDigits(TClonesArray* digits);
68  void ZeroSuppress(Int_t*& data, Int_t nWords, const Float_t* peds,
69  const Float_t* noise, UShort_t threshold) const;
70 protected:
72  : TTask(o),
73  fFMD(o.fFMD),
77  {}
78  AliFMDRawWriter& operator=(const AliFMDRawWriter&) { return *this; }
79  void WriteRCUTrailer(AliAltroBufferV3* altro,
80  UInt_t ddl,
81  Bool_t zs,
82  UShort_t factor,
83  UShort_t rate) const;
85  UShort_t fSampleRate; // The sample rate (0 -> inferred from data)
86  UShort_t fChannelsPerAltro; // Number of pre-amp. channels/adc channel
87  UShort_t fThreshold; // Threshold for zero-suppression
88 
89  ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
90 };
91 
92 #endif
93 //____________________________________________________________________
94 //
95 // Local Variables:
96 // mode: C++
97 // End:
98 //
99 // EOF
100 //
AliFMDRawWriter(AliFMD *fmd)
void ZeroSuppress(Int_t *&data, Int_t nWords, const Float_t *peds, const Float_t *noise, UShort_t threshold) const
Class to write ALTRO formated raw data from an array of AliFMDDigit objects.
UShort_t fSampleRate
Pointer to detector description.
Forward Multiplicity Detector based on Silicon wafers. This class is the driver for especially simula...
Definition: AliFMD.h:306
AliFMDRawWriter(const AliFMDRawWriter &o)
AliFMDRawWriter & operator=(const AliFMDRawWriter &)
UShort_t fChannelsPerAltro
virtual Long_t WriteDigits(TClonesArray *digits)
virtual void Exec(Option_t *option="")
void WriteRCUTrailer(AliAltroBufferV3 *altro, UInt_t ddl, Bool_t zs, UShort_t factor, UShort_t rate) const
virtual ~AliFMDRawWriter()