AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTCAHit.h
Go to the documentation of this file.
1 #ifndef AliMFTCAHit_H
2 #define AliMFTCAHit_H
3 
4 #include "TObject.h"
5 
6 //_________________________________________________________________________________
7 class AliMFTCAHit : public TObject {
8 
9 public:
10 
11  AliMFTCAHit();
13 
14  AliMFTCAHit (const AliMFTCAHit &hit);
16 
17  void SetPos(Double_t x, Double_t y, Double_t z) {
18  fPos[0] = x; fPos[1] = y; fPos[2] = z; }
19  const Double_t *GetPos() { return fPos; }
20  void SetTrackGID(Int_t gid, Int_t la, Int_t id, Int_t detid) {
21  fTrackGID = gid;
22  fLayer = la;
23  fID = id;
24  fDetElemID = detid;
25  fIsFace = fLayer%2;
26  }
27  const Int_t GetTrackGID() { return fTrackGID; }
28  const Int_t GetLayer() { return fLayer; }
29  const Int_t GetID() { return fID; }
30  const Int_t GetDetElemID() { return fDetElemID; }
31  const Int_t IsFace() { return fIsFace; }
32 
33  void SetUsed() { fIsUsed = kTRUE; }
34  const Bool_t IsUsed() { return fIsUsed; }
35 
36  void SetInRoad(Int_t i) { fInRoad[fNRoads++] = i; }
37  const Int_t GetNRoads() { return fNRoads; }
38  const Int_t GetInRoad(Int_t i) { return fInRoad[i]; }
39 
40  void SetMFTClsId(Int_t id) { fMFTClsId = id; }
41  const Int_t GetMFTClsId() { return fMFTClsId; }
42 
43 private:
44 
45  Int_t fTrackGID; // From MC track with global identifier
46  Int_t fLayer; // Layer number
47  Int_t fID; // Index of the hit in the layer
48  Double_t fPos[3]; // X,Y,Z position
49  Bool_t fIsUsed; // for TrackFinder
50  Int_t fDetElemID; // ladder ID
51  Int_t fNRoads; // the number of found roads which contain thhis hit
52  Int_t fInRoad[100]; // index of the roads
53  Int_t fIsFace; // "0" if on the disk side towards the IP, or "1"
54  Int_t fNInL; // number of hit in layer
55  Int_t fMFTClsId; // ID of MFT cluster, to combine with IsFace()
56 
58 
59 };
60 #endif
Int_t fIsFace
Definition: AliMFTCAHit.h:53
ClassDef(AliMFTCAHit, 2)
void SetInRoad(Int_t i)
Definition: AliMFTCAHit.h:36
const Int_t GetDetElemID()
Definition: AliMFTCAHit.h:30
Int_t fDetElemID
Definition: AliMFTCAHit.h:50
Int_t fMFTClsId
Definition: AliMFTCAHit.h:55
const Int_t GetMFTClsId()
Definition: AliMFTCAHit.h:41
const Int_t GetNRoads()
Definition: AliMFTCAHit.h:37
void SetUsed()
Definition: AliMFTCAHit.h:33
Int_t fNInL
Definition: AliMFTCAHit.h:54
const Int_t GetLayer()
Definition: AliMFTCAHit.h:28
const Int_t GetTrackGID()
Definition: AliMFTCAHit.h:27
Int_t fInRoad[100]
Definition: AliMFTCAHit.h:52
const Bool_t IsUsed()
Definition: AliMFTCAHit.h:34
void SetMFTClsId(Int_t id)
Definition: AliMFTCAHit.h:40
const Double_t * GetPos()
Definition: AliMFTCAHit.h:19
const Int_t GetInRoad(Int_t i)
Definition: AliMFTCAHit.h:38
Int_t fNRoads
Definition: AliMFTCAHit.h:51
AliMFTCAHit & operator=(const AliMFTCAHit &)
Definition: AliMFTCAHit.cxx:51
Double_t fPos[3]
Definition: AliMFTCAHit.h:48
Int_t fTrackGID
Definition: AliMFTCAHit.h:45
void SetPos(Double_t x, Double_t y, Double_t z)
Definition: AliMFTCAHit.h:17
const Int_t GetID()
Definition: AliMFTCAHit.h:29
Int_t fLayer
Definition: AliMFTCAHit.h:46
const Int_t IsFace()
Definition: AliMFTCAHit.h:31
void SetTrackGID(Int_t gid, Int_t la, Int_t id, Int_t detid)
Definition: AliMFTCAHit.h:20
Bool_t fIsUsed
Definition: AliMFTCAHit.h:49
return kTRUE
Definition: AliFMDv1.cxx:97