]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/MUON/src/AliRoot/ADCStream.hpp
Also dropping references to AliMUONTriggerCircuit which are depricated. This is a...
[u/mrichter/AliRoot.git] / HLT / MUON / src / AliRoot / ADCStream.hpp
CommitLineData
8356cc1d 1////////////////////////////////////////////////////////////////////////////////
2//
3// Author: Artur Szostak
4// Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
5//
6////////////////////////////////////////////////////////////////////////////////
7
4175c31c 8#ifndef ALIHLTMUONADCSTREAM_H
9#define ALIHLTMUONADCSTREAM_H
8356cc1d 10
98af1577 11#include <TObject.h>
12#include <TArrayI.h>
13#include <Riostream.h>
8356cc1d 14
15
69d7cf2e 16class AliHLTMUONADCStream : public TObject
8356cc1d 17{
4175c31c 18 // ostream operator usefull for text output.
19 friend ostream& operator << (ostream& os, const AliHLTMUONADCStream& s);
20
8356cc1d 21public:
22
23 /* Default constructor initialises everything to zero.
24 */
69d7cf2e 25 AliHLTMUONADCStream();
8356cc1d 26
69d7cf2e 27 AliHLTMUONADCStream(const UInt_t* data, UInt_t size);
8356cc1d 28
69d7cf2e 29 virtual ~AliHLTMUONADCStream();
8356cc1d 30
31 UInt_t Size();
e33f3609 32 void Size(UInt_t size);
33 void Fill(const UInt_t* data, UInt_t size);
8356cc1d 34
cbee67e7 35 UInt_t* Data() { return (UInt_t*) fData.GetArray(); }
36 const UInt_t* Data() const { return (UInt_t*) fData.GetArray(); }
8356cc1d 37
38// UInt_t& operator [] (const UInt_t index);
e33f3609 39 UInt_t operator [] (UInt_t index) const;
8356cc1d 40
8356cc1d 41private:
42
43 // TODO: complete the ADC stream specification.
4175c31c 44 TArrayI fData; // The DDL raw data.
8356cc1d 45
69d7cf2e 46 ClassDef(AliHLTMUONADCStream, 1) // ADC stream data.
8356cc1d 47};
48
49
4175c31c 50#endif // ALIHLTMUONADCSTREAM_H