Coverity fix for uninitialized variables and check for returned null value
[u/mrichter/AliRoot.git] / MUON / AliMUONPayloadTrigger.h
CommitLineData
939ae4b2 1#ifndef ALIMUONPAYLOADTRIGGER_H
2#define ALIMUONPAYLOADTRIGGER_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 AliMUONPayloadTrigger
78649106 10/// \brief Class for decoding the payload for trigger raw data
939ae4b2 11///
78649106 12// Author Christian Finck
939ae4b2 13
14#include <TObject.h>
939ae4b2 15
16class AliMUONDDLTrigger;
17class AliMUONLocalStruct;
18class AliMUONRegHeader;
96a8629f 19class AliMUONLogger;
20class AliMUONLogger;
939ae4b2 21
22class AliMUONPayloadTrigger: public TObject {
23 public :
24 AliMUONPayloadTrigger();
939ae4b2 25 virtual ~AliMUONPayloadTrigger();
26
f4ee80d2 27 Bool_t Decode(UInt_t *buffer, Bool_t scalerEvent = kFALSE);
939ae4b2 28 void ResetDDL();
29
71a2d3aa 30 /// Return maximum number of regional cards in DATE file
939ae4b2 31 Int_t GetMaxReg() const {return fMaxReg;}
71a2d3aa 32 /// Return maximum number of local cards in DATE file
939ae4b2 33 Int_t GetMaxLoc() const {return fMaxLoc;}
34
35
939ae4b2 36 void SetMaxLoc(Int_t loc);
37
71a2d3aa 38 /// Return pointer to local structure
939ae4b2 39 AliMUONLocalStruct* GetLocalInfo() const {return fLocalStruct;}
71a2d3aa 40 /// Return pointer for regional structure
939ae4b2 41 AliMUONRegHeader* GetRegHeader() const {return fRegHeader;}
71a2d3aa 42 /// Return pointer for DDL structure
939ae4b2 43 AliMUONDDLTrigger* GetDDLTrigger() const {return fDDLTrigger;}
44
ea59383d 45 /// Get number of end of DARC word errors
46 Int_t GetDarcEoWErrors() const {return fDarcEoWErrors;}
47 /// Get number of end of Global word errors
48 Int_t GetGlobalEoWErrors() const {return fGlobalEoWErrors;}
49 /// Get number of end of regional word errors
50 Int_t GetRegEoWErrors() const {return fRegEoWErrors;}
51 /// Get number of end of local word errors
52 Int_t GetLocalEoWErrors() const {return fLocalEoWErrors;}
53
96a8629f 54 /// Get Error logger
55 AliMUONLogger* GetErrorLogger() const {return fLog;}
56
57 /// set warnings flag
58 void DisableWarnings() {fWarnings = kFALSE;}
59
9f5dcca3 60 private :
71a2d3aa 61 /// Not implemented
62 AliMUONPayloadTrigger(const AliMUONPayloadTrigger& stream);
63 /// Not implemented
64 AliMUONPayloadTrigger& operator = (const AliMUONPayloadTrigger& stream);
939ae4b2 65
96a8629f 66 void AddErrorMessage(const Char_t* msg);
bfbfa5da 67 void SetMaxReg(Int_t reg);
68
939ae4b2 69 Int_t fMaxReg; ///< maximum number of regional cards in DATE file
70 Int_t fMaxLoc; ///< maximum number of local cards in DATE file
71
72 AliMUONDDLTrigger* fDDLTrigger; //!< pointer for DDL structure
73 AliMUONRegHeader* fRegHeader; //!< pointer for regional structure
74 AliMUONLocalStruct* fLocalStruct; //!< pointer to local structure
75
2470870a 76 AliMUONLogger* fLog; //!< Map of errors msg;
ea59383d 77 Int_t fDarcEoWErrors; //!< number of end of DARC word errors;
78 Int_t fGlobalEoWErrors; //!< number of end of global word errors;
79 Int_t fRegEoWErrors; //!< number of end of regional word errors;
80 Int_t fLocalEoWErrors; //!< number of end of local word errors;
2470870a 81 Bool_t fWarnings; //!< flag to enable/disable warnings
82 Bool_t fNofRegSet; //!< true if number of regional boards is set from outside
83
84 ClassDef(AliMUONPayloadTrigger, 3) // base class for reading MUON trigger rawdata
939ae4b2 85};
86
87#endif