]>
Commit | Line | Data |
---|---|---|
acf814d1 | 1 | /* $id$ |
2 | Author: Constantin Loizides <mailto: loizides@ikf.physik.uni-frankfurt.de> | |
3 | */ | |
4 | ||
5 | #ifndef ALIL3ALTROMEMHANDLER_H | |
6 | #define ALIL3ALTROMEMHANDLER_H | |
7 | ||
8 | #include "AliL3RootTypes.h" | |
9 | #include "AliL3Logging.h" | |
10 | ||
11 | //Maximum Size of Altro Packet equals 1000 Bit | |
12 | #define ALTRO_SIZE 125 | |
13 | //Maximum 10Bit ADCs to be stored in one Packet | |
14 | #define MAX_VALS 94 | |
15 | ||
16 | class AliL3AltroMemHandler { | |
17 | ||
18 | public: | |
19 | AliL3AltroMemHandler(); | |
20 | Bool_t Write(UShort_t row, UChar_t pad, UShort_t charge, UShort_t time); | |
21 | Bool_t WriteFinal(); | |
22 | Bool_t SetBinaryOutput(FILE *file); | |
23 | //Bool_t SetBinaryInput(FILE *file); | |
24 | void SetBinary(Bool_t flag_=kTRUE){flag=flag_;}; | |
25 | ||
26 | private: | |
27 | UShort_t altromem[ALTRO_SIZE]; | |
28 | //FILE *fInBinary; | |
29 | FILE *fOutBinary; | |
30 | UShort_t lrow; | |
31 | UChar_t lpad; | |
32 | UShort_t ltime; | |
33 | UShort_t counter; | |
34 | UShort_t tcounter; | |
35 | Bool_t flag; | |
36 | void WriteTrailer(); | |
37 | void Clear(); | |
38 | }; | |
39 | ||
40 | #endif | |
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 |