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