]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPayloadTracker.h
ReadRaw(): TGraphs are created once per event (B.Polichtchouk)
[u/mrichter/AliRoot.git] / MUON / AliMUONPayloadTracker.h
CommitLineData
939ae4b2 1#ifndef ALIMUONPAYLOADTRACKER_H
2#define ALIMUONPAYLOADTRACKER_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 AliMUONPayloadTracker
10/// \brief Class for decoding trackerrawdata
11///
12/// \author Christian Finck
13///
14///////////////////////////////////////////////////////////////////////////////
15///
16/// This class decode the payload for tracker raw data.
17///
18///////////////////////////////////////////////////////////////////////////////
19
20#include <TObject.h>
21#include <TClonesArray.h>
939ae4b2 22
23class AliMUONDDLTracker;
24class AliMUONBusStruct;
25class AliMUONDspHeader;
26class AliMUONBlockHeader;
27
28class AliMUONPayloadTracker: public TObject {
29 public :
30 AliMUONPayloadTracker();
31 AliMUONPayloadTracker(const AliMUONPayloadTracker& stream);
32 AliMUONPayloadTracker& operator = (const AliMUONPayloadTracker& stream);
33 virtual ~AliMUONPayloadTracker();
34
939ae4b2 35 Int_t GetMaxBlock() const {return fMaxBlock;}
36 Int_t GetMaxDsp() const {return fMaxDsp;}
37 Int_t GetMaxBus() const {return fMaxBus;}
38
39 // check input before assigment
40 void SetMaxBlock(Int_t blk);
41
42 // does not check, done via BusPatchManager
43 void SetMaxDsp(Int_t dsp) {fMaxDsp = dsp;}
44 void SetMaxBus(Int_t bus) {fMaxBus = bus;}
45
46 void ResetDDL();
47
84ceeb06 48 Bool_t Decode(UInt_t* buffer, Int_t datasize);
939ae4b2 49
50 AliMUONBusStruct* GetBusPatchInfo() const {return fBusStruct;}
51 AliMUONDDLTracker* GetDDLTracker() const {return fDDLTracker;}
52
53 protected :
54
55
56 Int_t fBusPatchId; ///< entry of buspatch structure
57 Int_t fDspId; ///< entry of Dsp header
58 Int_t fBlkId; ///< entry of Block header
59
60 Int_t fMaxDDL; ///< maximum number of DDL in DATE file
61 Int_t fMaxBlock; ///< maximum number of block per DDL in DATE file
62 Int_t fMaxDsp; ///< maximum number of Dsp per block in DATE file
63 Int_t fMaxBus; ///< maximum number of Buspatch per Dsp in DATE file
64
939ae4b2 65 AliMUONDDLTracker* fDDLTracker; //!< pointer for buspatch structure
66 AliMUONBusStruct* fBusStruct; //!< pointer for local structure
67 AliMUONBlockHeader* fBlockHeader; //!< pointer for block structure
68 AliMUONDspHeader* fDspHeader; //!< pointer for dsp structure
69
607fb67b 70 Bool_t CheckDataParity();
71
939ae4b2 72 ClassDef(AliMUONPayloadTracker, 1) // base class for reading MUON raw digits
73};
74
75#endif