AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTCARoad.h
Go to the documentation of this file.
1 #ifndef AliMFTCARoad_H
2 #define AliMFTCARoad_H
3 
4 #include "TObject.h"
5 #include "TClonesArray.h"
6 #include "AliMFTConstants.h"
7 #include "AliMFTCAHit.h"
8 #include "AliMFTCACell.h"
9 
10 //_________________________________________________________________________________
11 class AliMFTCARoad : public TObject {
12 
13 public:
14 
15  AliMFTCARoad();
17 
18  AliMFTCARoad (const AliMFTCARoad &road);
20 
21  void SetID(Int_t id) { fID = id; }
22  const Int_t GetID() { return fID; }
23  const Int_t GetNhits() { return fNhits; }
24  void AddHit(AliMFTCAHit *hit);
25  const Int_t GetNhitsInLayer(Int_t nl) { return fNhitsInLayer[nl]; }
26  AliMFTCAHit *GetHitInLayer(Int_t nl, Int_t nh) { return (AliMFTCAHit*)fHitsInLayer[nl]->At(nh); }
27  void SetNHitSta(Int_t n) { fNHitSta = n; }
28  const Int_t GetNHitSta() { return fNHitSta; }
29  void SetLength(Int_t l1, Int_t l2) {
30  fLength = l2/2-l1/2;
31  fLayer1 = l1;
32  fLayer2 = l2;
33  }
34  const Int_t GetLength() { return fLength; }
35  void SetGood() { fIsGood = kTRUE; }
36  const Bool_t IsGood() { return fIsGood; }
37  const Int_t GetLayer1() { return fLayer1; }
38  const Int_t GetLayer2() { return fLayer2; }
39  void AddCell(AliMFTCACell *cell);
40  const Int_t GetNcellsInLayer(Int_t nl) { return fNcellsInLayer[nl]; }
41  AliMFTCACell *GetCellInLayer(Int_t nl, Int_t nc) { return (AliMFTCACell*)fCellsInLayer[nl]->At(nc); }
42  AliMFTCACell *GetCellByGID(Int_t gid);
43 
44  virtual void Clear(const Option_t *);
45 
46 private:
47  static const Int_t fNDetMax = AliMFTConstants::fNMaxPlanes;
48 
49  Int_t fID; // Identifier
50  Int_t fNhits; // Number of hits
51  Int_t fNHitSta; // Number of hit stations (or disks)
52  Int_t fLength; // distance between the first and the last planes
53  Bool_t fIsGood; // has the minimum requested number of stations
54  Int_t fNhitsInLayer[fNDetMax]; // Number of hits per layer
55  Int_t fLayer1; // first layer
56  Int_t fLayer2; // last layer
57  Int_t fNcellsInLayer[fNDetMax]; // Number of cells per layer
58 
59  TClonesArray *fHitsInLayer[fNDetMax];
60  TClonesArray *fCellsInLayer[fNDetMax];
61 
63 
64 };
65 
66 #endif
67 
void SetLength(Int_t l1, Int_t l2)
Definition: AliMFTCARoad.h:29
Bool_t fIsGood
Definition: AliMFTCARoad.h:53
Int_t fNhitsInLayer[fNDetMax]
Definition: AliMFTCARoad.h:54
static const Int_t fNDetMax
Definition: AliMFTCARoad.h:47
const Int_t GetLayer1()
Definition: AliMFTCARoad.h:37
void SetID(Int_t id)
Definition: AliMFTCARoad.h:21
void AddCell(AliMFTCACell *cell)
const Int_t GetNhits()
Definition: AliMFTCARoad.h:23
const Int_t GetNcellsInLayer(Int_t nl)
Definition: AliMFTCARoad.h:40
static const Int_t fNMaxPlanes
void SetNHitSta(Int_t n)
Definition: AliMFTCARoad.h:27
AliMFTCACell * GetCellInLayer(Int_t nl, Int_t nc)
Definition: AliMFTCARoad.h:41
ClassDef(AliMFTCARoad, 1)
Array of cells per layer.
const Int_t GetID()
Definition: AliMFTCARoad.h:22
const Bool_t IsGood()
Definition: AliMFTCARoad.h:36
const Int_t GetLayer2()
Definition: AliMFTCARoad.h:38
const Int_t GetLength()
Definition: AliMFTCARoad.h:34
TClonesArray * fHitsInLayer[fNDetMax]
Definition: AliMFTCARoad.h:59
Int_t fNHitSta
Definition: AliMFTCARoad.h:51
void AddHit(AliMFTCAHit *hit)
AliMFTCARoad & operator=(const AliMFTCARoad &)
const Int_t GetNHitSta()
Definition: AliMFTCARoad.h:28
AliMFTCAHit * GetHitInLayer(Int_t nl, Int_t nh)
Definition: AliMFTCARoad.h:26
virtual void Clear(const Option_t *)
void SetGood()
Definition: AliMFTCARoad.h:35
const Int_t GetNhitsInLayer(Int_t nl)
Definition: AliMFTCARoad.h:25
TClonesArray * fCellsInLayer[fNDetMax]
Array of hits per layer.
Definition: AliMFTCARoad.h:60
Int_t fNcellsInLayer[fNDetMax]
Definition: AliMFTCARoad.h:57
AliMFTCACell * GetCellByGID(Int_t gid)
return kTRUE
Definition: AliFMDv1.cxx:97