Coverity fix for uninitialized variables and check for returned null value
[u/mrichter/AliRoot.git] / MUON / AliMUONDDLTracker.h
CommitLineData
f6762c71 1#ifndef ALIMUONDDLTRACKER_H
2#define ALIMUONDDLTRACKER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
692de412 6/*$Id$*/
7
2cf44ef3 8/// \ingroup raw
692de412 9/// \class AliMUONDDLTracker
10/// \brief MUON DDL tracker
2cf44ef3 11///
78649106 12// Author Christian Finck
f6762c71 13
14#include <TObject.h>
2cf44ef3 15#include <TClonesArray.h>
69be760c 16
2cf44ef3 17class AliMUONBusStruct;
18class AliMUONDspHeader;
19class AliMUONBlockHeader;
f6762c71 20
21class AliMUONDDLTracker : public TObject {
22
23public:
24 AliMUONDDLTracker();
ce350193 25 AliMUONDDLTracker(TRootIOCtor* dummy);
2cf44ef3 26 virtual ~AliMUONDDLTracker();
27
28 void AddBusPatch(const AliMUONBusStruct& busPatch, Int_t iBlock, Int_t iDsp);
29 void AddDspHeader(const AliMUONDspHeader& dspHeader, Int_t iBlock);
30 void AddBlkHeader(const AliMUONBlockHeader& blkHeader);
69be760c 31
71a2d3aa 32 /// get TClonesArray
2cf44ef3 33 TClonesArray* GetBlkHeaderArray() const {return fBlkHeaderArray;}
f6762c71 34
71a2d3aa 35 /// get entries
2cf44ef3 36 Int_t GetBlkHeaderEntries() const {return fBlkHeaderArray->GetEntriesFast();}
37
71a2d3aa 38 /// get entry
2cf44ef3 39 AliMUONBlockHeader* GetBlkHeaderEntry(Int_t i) const {
40 return (AliMUONBlockHeader*)fBlkHeaderArray->At(i);}
f6762c71 41
2cf44ef3 42 // clear
43 void Clear(Option_t* opt);
f6762c71 44
f6762c71 45
46 private:
71a2d3aa 47 /// Not implemented
9f5dcca3 48 AliMUONDDLTracker(const AliMUONDDLTracker& event);
71a2d3aa 49 /// Not implemented
9f5dcca3 50 AliMUONDDLTracker& operator=(const AliMUONDDLTracker& event);
71a2d3aa 51
52 TClonesArray* fBlkHeaderArray; ///< array of block header
69be760c 53
f6762c71 54 ClassDef(AliMUONDDLTracker,1) // MUON DDL Tracker
55};
56#endif