]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDRawWriter.h
New detector numbering scheme (common for DAQ/HLT/Offline). All the subdetectors...
[u/mrichter/AliRoot.git] / FMD / AliFMDRawWriter.h
CommitLineData
e802be3e 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$ */
c2fc1258 11/** @file AliFMDRawWriter.h
12 @author Christian Holm Christensen <cholm@nbi.dk>
13 @date Mon Mar 27 12:45:56 2006
14 @brief Class to write raw data
15*/
e802be3e 16//____________________________________________________________________
17//
18// Class to writer ADC values to a Raw File
088f8e79 19// Uses general ALTRO class - which is wrong
20// Should make it right!
e802be3e 21//
22#ifndef ROOT_TTask
23# include <TTask.h>
24#endif
25
26//____________________________________________________________________
27class AliFMD;
7684b53c 28class AliAltroBuffer;
29class TArrayI;
1e8f773e 30class TClonesArray;
e802be3e 31
32//____________________________________________________________________
9f662337 33/** @class AliFMDRawWriter
34 @brief Class to write ALTRO formated raw data from an array of
35 AliFMDDigit objects.
36 @code
37 AliFMDRawWriter* fmdWriter = new AliFMDRawWriter(0);
38 TClonesArray* array = fmd->DigitArray();
39 fmdWriter->WriteDigits(array);
40 @endcode
41 @ingroup FMD_sim
42*/
e802be3e 43class AliFMDRawWriter : public TTask
44{
45public:
9f662337 46 /** Constructor
47 @param fmd Pointer to detector object. */
e802be3e 48 AliFMDRawWriter(AliFMD* fmd);
9f662337 49 /** Destructor */
088f8e79 50 virtual ~AliFMDRawWriter() {}
e802be3e 51
9f662337 52 /** Write the output from AliFMD object.
53 @param option Not used */
e802be3e 54 virtual void Exec(Option_t* option="");
9f662337 55 /** Write an array of AliFMDDigit objects as raw ALTRO data.
56 @param digits Array of AliFMDDigit objects to convert to raw
57 ALTRO data. */
1e8f773e 58 virtual void WriteDigits(TClonesArray* digits);
9f662337 59protected:
02a27b50 60 AliFMDRawWriter(const AliFMDRawWriter& o) : TTask(o) {}
61 AliFMDRawWriter& operator=(const AliFMDRawWriter&) { return *this; }
7684b53c 62 AliFMD* fFMD; //! Pointer to detector description
63 UShort_t fSampleRate; // The sample rate (0 -> inferred from data)
64 UShort_t fChannelsPerAltro; // Number of pre-amp. channels/adc channel
65 UShort_t fThreshold; // Threshold for zero-suppression
66
e802be3e 67 ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
68};
69
70#endif
71//____________________________________________________________________
72//
73// Local Variables:
74// mode: C++
75// End:
76//
77// EOF
78//