]>
Commit | Line | Data |
---|---|---|
c0751163 | 1 | #ifndef ALIMUONRAWSTREAMTRACKER_H |
2 | #define ALIMUONRAWSTREAMTRACKER_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 | /// \ingroup raw | |
9 | /// \class AliMUONRawStreamTracker | |
10 | /// \brief Class for reading MUON raw digits | |
11 | /// | |
12 | /// \author Christian Finck | |
13 | /// | |
14 | /////////////////////////////////////////////////////////////////////////////// | |
15 | /// | |
16 | /// This class provides access to MUON digits in raw data. | |
17 | /// | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | ||
20 | #include <TObject.h> | |
21 | #include <TClonesArray.h> | |
313a427d | 22 | #include "AliMUONPayloadTracker.h" |
c0751163 | 23 | |
24 | class AliRawReader; | |
25 | class AliMUONDDLTracker; | |
313a427d | 26 | |
c0751163 | 27 | |
28 | class AliMUONRawStreamTracker: public TObject { | |
29 | public : | |
30 | AliMUONRawStreamTracker(); | |
31 | AliMUONRawStreamTracker(AliRawReader* rawReader); | |
32 | AliMUONRawStreamTracker(const AliMUONRawStreamTracker& stream); | |
33 | AliMUONRawStreamTracker& operator = (const AliMUONRawStreamTracker& stream); | |
34 | virtual ~AliMUONRawStreamTracker(); | |
35 | ||
36 | virtual Bool_t Next(); | |
37 | virtual Bool_t NextDDL(); | |
c0751163 | 38 | |
39 | Int_t GetMaxDDL() const {return fMaxDDL;} | |
313a427d | 40 | Int_t GetMaxBlock() const {return fPayload->GetMaxBlock();} |
41 | Int_t GetMaxDsp() const {return fPayload->GetMaxDsp();} | |
42 | Int_t GetMaxBus() const {return fPayload->GetMaxBus();} | |
c0751163 | 43 | |
44 | // check input before assigment | |
45 | void SetMaxDDL(Int_t ddl); | |
46 | void SetMaxBlock(Int_t blk); | |
47 | ||
48 | // does not check, done via BusPatchManager | |
313a427d | 49 | void SetMaxDsp(Int_t dsp) {fPayload->SetMaxDsp(dsp);} |
50 | void SetMaxBus(Int_t bus) {fPayload->SetMaxBus(bus);} | |
c0751163 | 51 | |
52 | ||
53 | void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;} | |
54 | ||
313a427d | 55 | AliMUONDDLTracker* GetDDLTracker() const {return fPayload->GetDDLTracker();} |
c0751163 | 56 | Int_t GetDDL() const {return fDDL - 1;} |
57 | ||
58 | protected : | |
59 | ||
829425a5 | 60 | AliRawReader* fRawReader; ///< object for reading the raw data |
c0751163 | 61 | |
829425a5 | 62 | Int_t fDDL; ///< number of DDL |
63 | Int_t fBusPatchId; ///< entry of buspatch structure | |
64 | Int_t fDspId; ///< entry of Dsp header | |
65 | Int_t fBlkId; ///< entry of Block header | |
c0751163 | 66 | |
829425a5 | 67 | Bool_t fNextDDL; ///< flag for next DDL to be read |
c0751163 | 68 | |
313a427d | 69 | Int_t fMaxDDL; ///< maximum number of DDL in DATE file |
c0751163 | 70 | |
313a427d | 71 | AliMUONPayloadTracker* fPayload; ///< pointer to payload decoder |
c0751163 | 72 | |
313a427d | 73 | ClassDef(AliMUONRawStreamTracker, 2) // base class for reading MUON raw digits |
c0751163 | 74 | }; |
75 | ||
76 | #endif |