]>
Commit | Line | Data |
---|---|---|
8230f242 | 1 | #ifndef ALITRDSEGMENTARRAYBASE_H |
2 | #define ALITRDSEGMENTARRAYBASE_H | |
f7336fa3 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
88cb7938 | 6 | /* $Id$ */ |
f7336fa3 | 7 | |
04eeac11 | 8 | //////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // Manager class for a general Alice segment // | |
11 | // // | |
12 | //////////////////////////////////////////////////////////////////////////// | |
f7336fa3 | 13 | |
793ff80c | 14 | #include <TNamed.h> |
f7336fa3 | 15 | |
f7336fa3 | 16 | class TTree; |
17 | class TBranch; | |
04eeac11 | 18 | class TObjArray; |
19 | ||
f7336fa3 | 20 | class AliTRDarrayI; |
21 | class AliTRDsegmentID; | |
f7336fa3 | 22 | |
8230f242 | 23 | class AliTRDsegmentArrayBase: public TNamed { |
24 | ||
25 | public: | |
26 | ||
f7336fa3 | 27 | AliTRDsegmentArrayBase(); |
8e8eae84 | 28 | AliTRDsegmentArrayBase(const char *classname, Int_t n); |
dd9a6ee3 | 29 | AliTRDsegmentArrayBase(const AliTRDsegmentArrayBase &a); |
8230f242 | 30 | virtual ~AliTRDsegmentArrayBase(); |
dd9a6ee3 | 31 | AliTRDsegmentArrayBase &operator=(const AliTRDsegmentArrayBase &a); |
8230f242 | 32 | |
793ff80c | 33 | const AliTRDsegmentID *At(Int_t i) const; |
0a29d0f1 | 34 | const AliTRDsegmentID *operator[](Int_t i) const; |
8230f242 | 35 | |
36 | Bool_t AddSegment(AliTRDsegmentID *segment); | |
37 | AliTRDsegmentID *AddSegment(Int_t index); | |
8230f242 | 38 | virtual AliTRDsegmentID *NewSegment(); |
8230f242 | 39 | virtual AliTRDsegmentID *LoadSegment(Int_t index); |
40 | virtual AliTRDsegmentID *LoadEntry(Int_t index); | |
41 | virtual void StoreSegment(Int_t index); | |
04eeac11 | 42 | void ClearSegment(Int_t index); |
43 | ||
44 | virtual void Copy(TObject &a) const; | |
45 | virtual Bool_t ConnectTree(const char *treeName); | |
46 | ||
47 | Bool_t MakeArray(Int_t n); | |
48 | virtual void MakeTree(char *file = 0); | |
8230f242 | 49 | Bool_t MakeDictionary(Int_t size); |
50 | ||
8e8eae84 | 51 | Bool_t SetClass(const char *classname); |
8230f242 | 52 | |
793ff80c | 53 | TClass *GetClass() const { return fClass; }; |
54 | TTree *GetTree() const { return fTree; }; | |
8230f242 | 55 | |
8230f242 | 56 | protected: |
57 | ||
58 | TObjArray *fSegment; //! Pointer to an array of pointers to a segment | |
59 | AliTRDarrayI *fTreeIndex; //! Pointers(index) table | |
60 | Int_t fNSegment; // Number of segments | |
61 | TTree *fTree; //! Tree with segment objects | |
62 | TBranch *fBranch; //! Branchaddress | |
63 | TClass *fClass; //! Class type of included objects | |
64 | ||
65 | ClassDef(AliTRDsegmentArrayBase,1) // TRD detextor segment array base class | |
66 | ||
f7336fa3 | 67 | }; |
68 | ||
8230f242 | 69 | #endif |