new task to find jet trigger candidates (loop over EMCal L1 patches over threshold...
[u/mrichter/AliRoot.git] / ACORDE / AliACORDERawStream.h
CommitLineData
25f773ea 1#ifndef ALIACORDERAWSTREAM_H\r
2#define ALIACORDERAWSTREAM_H\r
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
4 * See cxx source for full Copyright notice */\r
5\r
6/* $Id: AliACORDERawStream.h 20210 2007-08-18 08:41:30Z hristov $ */\r
7\r
8///////////////////////////////////////////////////////////////////////////////\r
9// //\r
10// Reads ACORDE DDL raw data from raw data stream //\r
11// //\r
12///////////////////////////////////////////////////////////////////////////////\r
13\r
14#include "TObject.h"\r
15\r
16class AliRawReader;\r
17\r
18class AliACORDERawStream : public TObject {\r
19\r
20 public:\r
21\r
22 AliACORDERawStream(AliRawReader*);\r
23 AliACORDERawStream(const AliACORDERawStream &r); \r
24 virtual ~AliACORDERawStream();\r
25 AliACORDERawStream &operator=(const AliACORDERawStream &r);\r
d2c6bacf 26 //MRC's part \r
d3c05e3c 27 Int_t GetNEvents(char* fileName);\r
d2c6bacf 28 //\r
25f773ea 29 virtual void Reset();\r
30 virtual Bool_t Next();\r
31\r
32 Int_t DataSize() const { return fDataSize; }\r
33 UInt_t GetWord(Int_t index) const;\r
34\r
35 enum EACORDERawStreamError {\r
36 kRawDataSizeErr = 1\r
37 };\r
38\r
39 private:\r
40\r
41 UInt_t GetNextWord();\r
25f773ea 42\r
43 AliRawReader* fRawReader; // object for reading the raw data\r
44 Int_t fPosition; // current position in the raw-data payload\r
45 UChar_t* fData; // pointer to raw data payload\r
46\r
47 Int_t fDataSize; // data size\r
48\r
49 UInt_t fWord[4]; // data vector\r
50\r
51 ClassDef(AliACORDERawStream,0) // class for reading ACORDE DDL raw data\r
52\r
53};\r
54\r
55typedef AliACORDERawStream AliCRTRawStream; // for backward compatibility\r
56\r
57#endif\r