AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTCALayer.h
Go to the documentation of this file.
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();
17 
18  AliMFTCALayer (const AliMFTCALayer &layer);
20 
21  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  void SetID(Int_t id) { fID = id; }
28  const Int_t GetID() { return fID; }
29  const Int_t GetNhits() { return fNhits; }
30  const Int_t GetNcells() { return fNcells; }
32  AliMFTCACell *GetCell(Int_t nc) { return (AliMFTCACell*)fCells->At(nc); }
34  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;
45  TClonesArray *fHits;
46 
47  TClonesArray *fLadders;
48 
50 
51 };
52 #endif
AliMFTCALayer & operator=(const AliMFTCALayer &)
AliMFTCAHit * AddHit()
virtual void Clear(const Option_t *)
TClonesArray * fLadders
Array of hits.
Definition: AliMFTCALayer.h:47
const Int_t GetNcells()
Definition: AliMFTCALayer.h:30
void SetID(Int_t id)
Definition: AliMFTCALayer.h:27
TClonesArray * fHits
Array of cells.
Definition: AliMFTCALayer.h:45
AliMFTCALadder * GetLadderID(Int_t id)
const Int_t GetNhits()
Definition: AliMFTCALayer.h:29
TClonesArray * fCells
Definition: AliMFTCALayer.h:44
AliMFTCALadder * GetLadder(Int_t nl)
Definition: AliMFTCALayer.h:21
AliMFTCACell * GetCell(Int_t nc)
Definition: AliMFTCALayer.h:32
AliMFTCACell * AddCell()
const Int_t GetID()
Definition: AliMFTCALayer.h:28
ClassDef(AliMFTCALayer, 1)
array of ladders
AliMFTCAHit * GetHit(Int_t nh)
Definition: AliMFTCALayer.h:34