]>
Commit | Line | Data |
---|---|---|
e4da63c2 | 1 | #ifndef ALISTARTRAWDATA_H |
2 | #define ALISTARTRAWDATA_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // Converts START digits into a raw data stream // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TObject.h" | |
e4da63c2 | 15 | class AliSTART; |
16 | class AliSTARTdigit; | |
06fb27f4 | 17 | //class TTRee; |
18 | //class TBranch; | |
e4da63c2 | 19 | //class AliRawDataHeader; |
20 | class AliSTARTRawData : public TObject { | |
21 | ||
22 | public: | |
23 | ||
24 | AliSTARTRawData(); // default constructor | |
25 | AliSTARTRawData(const AliSTARTRawData &r); // copy constructor | |
26 | virtual ~AliSTARTRawData(); // destructor | |
27 | AliSTARTRawData &operator=(const AliSTARTRawData &r); // ass. op. | |
28 | ||
29 | Int_t RawDataSTART (AliSTARTdigit *fDigits); | |
30 | // This method generates the files with the TOF detector data | |
31 | void SetVerbose(Int_t Verbose){fVerbose=Verbose;} | |
32 | // To set the verbose level | |
33 | void GetDigits(AliSTARTdigit *fDigits, UInt_t *buf); | |
34 | //This method formats and stores in buf all the digits of a TOF module | |
35 | ||
4c7da157 | 36 | void PackWord(UInt_t &BaseWord, UInt_t Word, Int_t StartBit, Int_t StopBit); |
e4da63c2 | 37 | //This method stores the value of the variable Word of StopBit-StartBit+1 bits |
38 | //in BaseWord, starting from the bit StartBit | |
39 | ||
40 | ||
41 | //START digits arrays | |
42 | ||
e4da63c2 | 43 | |
460b4363 | 44 | TArrayI *TimeLED() {return fTimeLED;} |
db173afc | 45 | TArrayI *ADC() {return fADC;} |
460b4363 | 46 | TArrayI *TimeCFD() {return fTimeCFD;} |
47 | TArrayI *ADC0() {return fADC0;} | |
db173afc | 48 | |
49 | ||
e4da63c2 | 50 | |
51 | protected: | |
52 | ||
53 | Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) | |
54 | Int_t fIndex; //number of 32 words to be stored into the output file | |
55 | ||
e4da63c2 | 56 | Int_t fTimeDiff ; //time difference |
57 | Int_t fMeanTime ; // average time - ALICE start signal | |
06fb27f4 | 58 | Int_t fBestTimeLeft; //first particle on the left |
59 | Int_t fBestTimeRight; //first particle on the right | |
460b4363 | 60 | Int_t fSumMult; // sum multiplicity |
61 | TArrayI * fTimeCFD; //TDC on the each PMT | |
06fb27f4 | 62 | TArrayI * fADC; //QTC (ADC) on the each PMT |
460b4363 | 63 | TArrayI * fTimeLED; // TDC with amplified signal |
64 | TArrayI * fADC0; //QTC amplified | |
65 | ||
06fb27f4 | 66 | AliSTARTdigit *fDigits; //! The START digits manager |
e4da63c2 | 67 | |
68 | ClassDef(AliSTARTRawData,1) // START raw data class | |
69 | ||
70 | }; | |
71 | #endif |