Fix coverity defect
[u/mrichter/AliRoot.git] / TRD / AliTRDrawStreamBase.h
CommitLineData
faad97e3 1#ifndef ALITRDRAWSTREAMBASE_H\r
2#define ALITRDRAWSTREAMBASE_H\r
3\r
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
5 * See cxx source for full Copyright notice */\r
6\r
7/* $Id: AliTRDrawStreamBase.h 23387 2008-01-17 17:25:16Z cblume $ */\r
8\r
9///////////////////////////////////////////////////////////////////////////////\r
10// //\r
11// This base class defines access to TRD digits in raw data. //\r
12// //\r
13///////////////////////////////////////////////////////////////////////////////\r
14\r
15#include "TObject.h"\r
16#include "AliLog.h"\r
17\r
18class AliRawReader;\r
19class AliTRDdigitsManager;\r
20\r
21#define TRDMAXTBINS 63\r
22#define TRDMAXADC 21\r
23#define TRDMAXMCM 4 * 16\r
24#define MAXTRACKLETSPERHC 256\r
25\r
26#define TRD_NOIMP() AliFatal("Not Implemented for this class. Use inherited.");\r
27\r
28class AliTRDrawStreamBase : public TObject\r
29{ // class def begin\r
30\r
31 public:\r
32\r
33 AliTRDrawStreamBase();\r
34 AliTRDrawStreamBase(AliRawReader *rawReader);\r
35 virtual ~AliTRDrawStreamBase();\r
36\r
37 AliTRDrawStreamBase(const AliTRDrawStreamBase& st);\r
38 AliTRDrawStreamBase &operator=(const AliTRDrawStreamBase &);\r
39\r
40 //--------------------------------------------------------\r
41\r
42 enum STREAMTYPE\r
43 {\r
44 kTRDsimStream = 0,\r
45 kTRDrealStream = 1,\r
d60fe037 46 kTRDfastStream = 2,\r
47 kTRDdefaultStream = 3\r
faad97e3 48 };\r
49\r
50 enum { kDDLOffset = 0x400 }; // Offset for DDL numbers\r
51\r
52 static AliTRDrawStreamBase *GetRawStream();\r
53 static AliTRDrawStreamBase *GetRawStream(AliRawReader *reader);\r
54\r
55 static void SetRawStreamVersion(Int_t iver) { fgRawStreamVersion = iver; }\r
56 static void SetRawStreamVersion(const char *opt);\r
57\r
58 // this is a temporary solution!^M\r
59 // baseline should come with the HC header word 2 (count from 0!)^M\r
60\r
61 virtual Bool_t Next() {TRD_NOIMP(); return 0;} \r
62 //virtual Int_t NextChamber(AliTRDdigitsManager */*man*/) {TRD_NOIMP(); return 0;} \r
63 //virtual Int_t NextChamber(AliTRDdigitsManager */*man*/, UInt_t **/*trackletContainer*/=NULL) {TRD_NOIMP(); return 0;}\r
64 virtual Int_t NextChamber(AliTRDdigitsManager */*man*/, UInt_t **/*trackletContainer*/=NULL, UShort_t **/*errorCodeContainer*/=NULL) {TRD_NOIMP(); return 0;}\r
65 virtual Bool_t Init() {TRD_NOIMP(); return -1;} \r
66\r
67 virtual Bool_t SetRawVersion(Int_t /*fraw*/) {TRD_NOIMP(); return 0;} \r
68 virtual void SetNoErrorWarning() {TRD_NOIMP();}\r
69 \r
70 virtual Bool_t IsCurrentPadShared() const {TRD_NOIMP(); return 0;}\r
71 virtual void SetSharedPadReadout(Bool_t /*fv*/) {TRD_NOIMP();} \r
72 virtual Bool_t IsDataZeroSuppressed() const {TRD_NOIMP(); return 0;}\r
73 \r
74 virtual Bool_t SetReader(AliRawReader */*reader*/) {TRD_NOIMP(); return 0;} \r
75 \r
76 virtual Bool_t IsTrackletEnableBitSet() const {TRD_NOIMP(); return 0;}\r
77 virtual Bool_t IsStackActive(Int_t /*is*/) const {TRD_NOIMP(); return 0;}\r
78 virtual Int_t GetNofActiveStacks() const {TRD_NOIMP(); return 0;}\r
79 virtual UInt_t *GetSMstreamPosition() const {TRD_NOIMP(); return 0;}\r
80 \r
81 virtual Bool_t IsSMbufferClean() const {TRD_NOIMP(); return 0;}\r
82 \r
83 virtual Bool_t IsLinkActiveInStack(Int_t /*is*/, Int_t /*il*/) const {TRD_NOIMP(); return 0;}\r
84 virtual Int_t GetActiveLinksInStack(Int_t /*is*/) const {TRD_NOIMP(); return 0;}\r
85 \r
86 virtual Int_t GetSpecialRawVersion() const {TRD_NOIMP(); return 0;}\r
87 virtual Int_t GetMajorRawVersion() const {TRD_NOIMP(); return 0;} \r
88 virtual Int_t GetRawVersion() const {TRD_NOIMP(); return 0;} \r
89 virtual Int_t GetMinorRawVersion() const {TRD_NOIMP(); return 0;} \r
90\r
91 virtual Int_t GetSM() const {TRD_NOIMP(); return 0;} \r
92 virtual Int_t GetLayer() const {TRD_NOIMP(); return 0;}\r
93 virtual Int_t GetStack() const {TRD_NOIMP(); return 0;}\r
94 virtual Int_t GetSide() const {TRD_NOIMP(); return 0;} \r
95 virtual Int_t GetDCS() const {TRD_NOIMP(); return 0;} \r
96\r
97 virtual Int_t GetROC() const {TRD_NOIMP(); return 0;} \r
98 virtual Int_t GetNumberOfTimeBins() const {TRD_NOIMP(); return 0;} \r
99 virtual UInt_t GetBunchCrossCounter() const {TRD_NOIMP(); return 0;}\r
100 virtual UInt_t GetPreTriggerCounter() const {TRD_NOIMP(); return 0;}\r
101 virtual UInt_t GetPreTriggerPhase() const {TRD_NOIMP(); return 0;} \r
102\r
103 virtual Int_t GetRow() const {TRD_NOIMP(); return 0;} \r
104 virtual Int_t GetCol() const {TRD_NOIMP(); return 0;} \r
105 virtual Int_t GetRowMax() const {TRD_NOIMP(); return 0;}\r
106 virtual Int_t GetColMax() const {TRD_NOIMP(); return 0;}\r
107\r
108 // compatibility\r
109 virtual Int_t GetMaxRow() const {TRD_NOIMP(); return 0;}\r
110 virtual Int_t GetMaxCol() const {TRD_NOIMP(); return 0;}\r
111\r
112 virtual Int_t GetDET() const {TRD_NOIMP(); return 0;}\r
113 virtual Int_t GetDet() const {TRD_NOIMP(); return 0;}\r
114 \r
115 virtual Int_t GetROB() const {TRD_NOIMP(); return 0;}\r
116 virtual Int_t GetMCM() const {TRD_NOIMP(); return 0;}\r
117 virtual Int_t GetEventNumber() const {TRD_NOIMP(); return 0;}\r
118 virtual Int_t IsMCMcorrupted() const {TRD_NOIMP(); return 0;}\r
119\r
120 virtual Int_t *GetSignals() const {TRD_NOIMP(); return 0;}\r
121 virtual Int_t GetADC() const {TRD_NOIMP(); return 0;}\r
122 virtual Int_t GetTimeBin() const {TRD_NOIMP(); return 0;}\r
123\r
124 virtual Int_t GetCommonAdditive() const {TRD_NOIMP(); return 0;}\r
125 \r
126 //----------------------------------------------------------\r
127 \r
128 private:\r
129\r
130 static Int_t fgRawStreamVersion; // Raw stream version number\r
131\r
132 ClassDef(AliTRDrawStreamBase, 0) // TRD raw stream base class\r
133\r
134}; //clas def end\r
135\r
136#endif\r