Line data Source code
1 : #ifndef AliMFTCALayer_H
2 : #define AliMFTCALayer_H
3 :
4 : #include "TObject.h"
5 : #include "TClonesArray.h"
6 : #include "AliMFTCALadder.h"
7 :
8 : class AliMFTCACell;
9 : class AliMFTCAHit;
10 :
11 : class AliMFTCALayer : public TObject {
12 :
13 : public:
14 :
15 : AliMFTCALayer();
16 0 : ~AliMFTCALayer() {};
17 :
18 : AliMFTCALayer (const AliMFTCALayer &layer);
19 : AliMFTCALayer &operator=(const AliMFTCALayer&);
20 :
21 0 : AliMFTCALadder *GetLadder(Int_t nl) { return (AliMFTCALadder*)fLadders->At(nl); }
22 : AliMFTCALadder *GetLadderID(Int_t id);
23 :
24 : virtual void Clear(const Option_t *);
25 : void ClearCells();
26 :
27 0 : void SetID(Int_t id) { fID = id; }
28 0 : const Int_t GetID() { return fID; }
29 0 : const Int_t GetNhits() { return fNhits; }
30 0 : const Int_t GetNcells() { return fNcells; }
31 : AliMFTCACell *AddCell();
32 0 : AliMFTCACell *GetCell(Int_t nc) { return (AliMFTCACell*)fCells->At(nc); }
33 : AliMFTCAHit *AddHit();
34 0 : AliMFTCAHit *GetHit(Int_t nh) { return (AliMFTCAHit*)fHits->At(nh); }
35 :
36 : private:
37 :
38 : Int_t fID; // Identifier
39 : Int_t fNhits; // Number of hits
40 : Int_t fNcells; // Number of cells: track segments with downstream
41 : // end in this layer
42 : Int_t fNladders; // number of ladders
43 :
44 : TClonesArray *fCells; //! Array of cells
45 : TClonesArray *fHits; //! Array of hits
46 :
47 : TClonesArray *fLadders; //! array of ladders
48 :
49 12 : ClassDef(AliMFTCALayer,1);
50 :
51 : };
52 : #endif
|