]> git.uio.no Git - u/mrichter/AliRoot.git/blame - START/AliSTARTRawData.h
Default value of fgChargeCorrelSt12 set to 1 to avoid division by zero
[u/mrichter/AliRoot.git] / START / AliSTARTRawData.h
CommitLineData
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"
15#include "TArrayI.h"
16class AliSTART;
17class AliSTARTdigit;
18//class AliRawDataHeader;
19class AliSTARTRawData : public TObject {
20
21 public:
22
23 AliSTARTRawData(); // default constructor
24 AliSTARTRawData(const AliSTARTRawData &r); // copy constructor
25 virtual ~AliSTARTRawData(); // destructor
26 AliSTARTRawData &operator=(const AliSTARTRawData &r); // ass. op.
27
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
34
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
38
39
40 //START digits arrays
41
42 AliSTARTdigit *fDigits; //! The START digits manager
43
44 TArrayI *timeTDC() {return ftimeTDC;}
45 TArrayI *ADC() {return fADC;}
46
47
48 protected:
49
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
52
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
59
60 ClassDef(AliSTARTRawData,1) // START raw data class
61
62};
63#endif