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 */
8 ///////////////////////////////////////////////////////////////////////////////
10 // Converts START digits into a raw data stream //
12 ///////////////////////////////////////////////////////////////////////////////
18 //class AliRawDataHeader;
19 class AliSTARTRawData : public TObject {
23 AliSTARTRawData(); // default constructor
24 AliSTARTRawData(const AliSTARTRawData &r); // copy constructor
25 virtual ~AliSTARTRawData(); // destructor
26 AliSTARTRawData &operator=(const AliSTARTRawData &r); // ass. op.
28 Int_t RawDataSTART (AliSTARTdigit *fDigits);
29 // This method generates the files with the TOF detector data
30 void SetVerbose(Int_t Verbose){fVerbose=Verbose;}
31 // To set the verbose level
32 void GetDigits(AliSTARTdigit *fDigits, UInt_t *buf);
33 //This method formats and stores in buf all the digits of a TOF module
35 void PackWord(UInt_t &BaseWord, UInt_t Word, Int_t StartBit, Int_t StopBit);
36 //This method stores the value of the variable Word of StopBit-StartBit+1 bits
37 //in BaseWord, starting from the bit StartBit
42 AliSTARTdigit *fDigits; //! The START digits manager
44 TArrayI *timeTDC() {return ftimeTDC;}
45 TArrayI *ADC() {return fADC;}
50 Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files)
51 Int_t fIndex; //number of 32 words to be stored into the output file
53 Int_t fBestTimeRight ; //smallest time on the right side
54 Int_t fBestTimeLeft ; //smallest time on the left side
55 Int_t fTimeDiff ; //time difference
56 Int_t fMeanTime ; // average time - ALICE start signal
57 TArrayI *ftimeTDC ; //array of TDC signal from right side
58 TArrayI *fADC ; //array of ADC signal from right sida
60 ClassDef(AliSTARTRawData,1) // START raw data class