AliRoot Core  3dc7879 (3dc7879)
AliEMCALCCUSBRawStream.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCCUSBRAWSTREAM_H
2 #define ALIEMCALCCUSBRAWSTREAM_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 //_________________________________________________________________________
15 //_________________________________________________________________________
16 
17 #include <TObject.h>
18 
19 class AliRawReader;
20 
21 class AliEMCALCCUSBRawStream: public TObject
22 {
23 
24  public :
25 
26  AliEMCALCCUSBRawStream(AliRawReader* rawReader);
28 
29  virtual Bool_t Next();
30 
31  UInt_t GetTDC(Int_t iTDC) const { return fTDC[iTDC] ; }
32  UInt_t GetQDC(Int_t iQDC) const { return fQDC[iQDC] ; }
33 
34  UInt_t GetScalerCCUSB (Int_t iScaler) const { return fScalerCCUSB [iScaler] ; }
35  UInt_t GetScalerLecroy(Int_t iScaler) const { return fScalerLecroy[iScaler] ; }
36 
37  private :
38 
41 
42  AliRawReader* fRawReader;
43 
44  UInt_t fData;
45 
46  UInt_t fHeader;
47 
50  UInt_t fOptHeader;
51 
52  UInt_t fEventLength;
53 
54  UInt_t fEOBuffer;
55 
56  static const Int_t fgkNScalerCCUSB = 2;
57  static const Int_t fgkNScalerLecroy = 12;
58  static const Int_t fgkNTDC = 40;
59  static const Int_t fgkNQDC = 32;
60 
61  UInt_t fTDC[fgkNTDC];
62  UInt_t fQDC[fgkNQDC];
63 
66 
68  ClassDef(AliEMCALCCUSBRawStream, 0);
70 
71 };
72 
73 #endif //ALIEMCALCCUSBRAWSTREAM_H
AliEMCALCCUSBRawStream & operator=(const AliEMCALCCUSBRawStream &stream)
UInt_t fQDC[fgkNQDC]
QDC values.
UInt_t GetTDC(Int_t iTDC) const
Access to CC-USB data in test bench raw data.
UInt_t GetQDC(Int_t iQDC) const
UInt_t fEventLength
Event length including terminator words.
static const Int_t fgkNTDC
Number of TDC.
UInt_t fTDC[fgkNTDC]
TDC channels.
UInt_t fScalerCCUSB[fgkNScalerCCUSB]
Internal scaler values.
UInt_t fData
data read for file
UInt_t GetScalerLecroy(Int_t iScaler) const
UInt_t fOptHeader
bits 0-11 represent the number of words in the buffer
static const Int_t fgkNQDC
Number of QDC.
UInt_t fEOBuffer
Event terminator.
AliRawReader * fRawReader
object for reading the raw data
AliEMCALCCUSBRawStream(AliRawReader *rawReader)
Constructor.
static const Int_t fgkNScalerCCUSB
Number of internal CC-USB scalers.
static const Int_t fgkNScalerLecroy
Number of Lecroy scalers.
UInt_t GetScalerCCUSB(Int_t iScaler) const
UInt_t fScalerLecroy[fgkNScalerLecroy]
Lecroy scaler values.