Fixed Effective C++ warnings
[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:
b5ee4425 60 AliFMDRawWriter(const AliFMDRawWriter& o)
61 : TTask(o),
62 fFMD(0),
63 fSampleRate(0),
64 fChannelsPerAltro(0),
65 fThreshold(0)
66 {}
02a27b50 67 AliFMDRawWriter& operator=(const AliFMDRawWriter&) { return *this; }
7684b53c 68 AliFMD* fFMD; //! Pointer to detector description
69 UShort_t fSampleRate; // The sample rate (0 -> inferred from data)
70 UShort_t fChannelsPerAltro; // Number of pre-amp. channels/adc channel
71 UShort_t fThreshold; // Threshold for zero-suppression
72
e802be3e 73 ClassDef(AliFMDRawWriter, 0) // Write FMD raw data to a DDL file
74};
75
76#endif
77//____________________________________________________________________
78//
79// Local Variables:
80// mode: C++
81// End:
82//
83// EOF
84//