1 #ifndef ALIVMERAWSTREAM_H
2 #define ALIVMERAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 /// This class provides access to VME data in test beam raw data.
12 ///////////////////////////////////////////////////////////////////////////////
19 class AliVMERawStream: public TObject {
21 AliVMERawStream(AliRawReader* rawReader);
22 AliVMERawStream(const AliVMERawStream& stream);
23 AliVMERawStream& operator = (const AliVMERawStream& stream);
24 virtual ~AliVMERawStream() {};
26 virtual Bool_t Next();
28 UShort_t GetBlock() const {return fBlock;};
29 UShort_t GetNumber() const {return fNumber;};
30 UShort_t GetChannel() const {return fChannel;};
31 UShort_t GetValue() const {return fValue;};
33 UInt_t GetTDCChannel(Int_t iTDC) const
34 {return fTDCChannel[iTDC];};
35 UInt_t GetTDCValue(Int_t iTDC) const
36 {return fTDCValue[iTDC];};
38 UInt_t GetTime() const {return fTime;};
39 UInt_t GetTimeMuSec() const {return fTimeMuSec;};
42 Bool_t CheckString(const char* str) const;
46 AliRawReader* fRawReader; // object for reading the raw data
48 UInt_t fData; // data read for file
50 Int_t fNChannels; // number of c-ram channels
51 UShort_t fBlock; // C-ram block
52 UShort_t fNumber; // C-ram serial number
53 UShort_t fChannel; // C-ram channel
54 UShort_t fValue; // C-ram ADC value
56 static const Int_t fgkNTDC = 3; // number of TDCs
57 UInt_t fTDCChannel[fgkNTDC]; // TDC channels
58 UInt_t fTDCValue[fgkNTDC]; // TDC values
60 UInt_t fTime; // timing information
61 UInt_t fTimeMuSec; // micro seconds
63 ClassDef(AliVMERawStream, 0) // class for reading VME raw digits