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