CbmRoot
CbmL1TrdTracklet.h
Go to the documentation of this file.
1 #ifndef CBML1TRDTRACKLET_H
2 #define CBML1TRDTRACKLET_H 1
3 
4 #include "TObject.h"
5 #include <vector>
6 
7 class CbmL1TrdTracklet : public TObject {
8 
9 public:
12 
14  virtual ~CbmL1TrdTracklet();
15 
16  inline Int_t GetIndLeft() { return fIndLeft; };
17  inline Int_t GetIndRight() { return fIndRight; };
18  inline Int_t GetVal() { return fVal; };
19  inline Int_t GetIsAlone() { return fIsAlone; };
20  inline Int_t GetIndex() { return fIndex; };
21  inline Double_t GetCoord(Int_t ind) { return fCoord[ind]; };
22  inline Int_t GetPlanesID(Int_t num) { return fID[num]; };
23 
24  inline void SetIndLeft(Int_t indLeft) { fIndLeft = indLeft; };
25  inline void SetIndRight(Int_t indRight) { fIndRight = indRight; };
26  inline void SetVal(Int_t segVal) { fVal = segVal; };
27  inline void SetIsAlone(Bool_t isAlone) { fIsAlone = isAlone; };
28  inline void SetIndex(Int_t index) { fIndex = index; };
29  inline void SetCoord(Int_t ind, Double_t val) { fCoord[ind] = val; };
30  inline void SetPlanesID(Int_t A_ID, Int_t B_ID) {
31  fID[0] = A_ID;
32  fID[1] = B_ID;
33  };
34 
35 
36  std::vector<Int_t> vAccostTracklet;
37 
38  //compares the first or second two coordinates of two tracklets
39  inline static Bool_t Compare1(CbmL1TrdTracklet* tr1, CbmL1TrdTracklet* tr2) {
40  return (tr1->GetCoord(0) > tr2->GetCoord(0));
41  };
42 
43  inline static Bool_t Compare2(CbmL1TrdTracklet* tr1, CbmL1TrdTracklet* tr2) {
44  return (tr1->GetCoord(1) > tr2->GetCoord(1));
45  };
46 
47 private:
48  Int_t fID[2];
49  Int_t fIndLeft;
50  Int_t fIndRight;
51  Int_t fVal;
52  Int_t fY;
53  Bool_t fIsAlone;
54  Int_t fIndex;
55  Double_t fCoord[4];
56 
58 };
59 
60 #endif
CbmL1TrdTracklet::SetCoord
void SetCoord(Int_t ind, Double_t val)
Definition: CbmL1TrdTracklet.h:29
CbmL1TrdTracklet::GetIndRight
Int_t GetIndRight()
Definition: CbmL1TrdTracklet.h:17
CbmL1TrdTracklet::fIndex
Int_t fIndex
Definition: CbmL1TrdTracklet.h:54
CbmL1TrdTracklet::~CbmL1TrdTracklet
virtual ~CbmL1TrdTracklet()
Definition: CbmL1TrdTracklet.cxx:16
CbmL1TrdTracklet::fY
Int_t fY
Definition: CbmL1TrdTracklet.h:52
CbmL1TrdTracklet::fID
Int_t fID[2]
Definition: CbmL1TrdTracklet.h:45
CbmL1TrdTracklet::fIsAlone
Bool_t fIsAlone
Definition: CbmL1TrdTracklet.h:53
CbmL1TrdTracklet::fIndRight
Int_t fIndRight
Definition: CbmL1TrdTracklet.h:50
CbmL1TrdTracklet::fIndLeft
Int_t fIndLeft
Definition: CbmL1TrdTracklet.h:49
CbmL1TrdTracklet::GetIsAlone
Int_t GetIsAlone()
Definition: CbmL1TrdTracklet.h:19
CbmL1TrdTracklet::SetIndLeft
void SetIndLeft(Int_t indLeft)
Definition: CbmL1TrdTracklet.h:24
CbmL1TrdTracklet::GetVal
Int_t GetVal()
Definition: CbmL1TrdTracklet.h:18
CbmL1TrdTracklet::fVal
Int_t fVal
Definition: CbmL1TrdTracklet.h:51
CbmL1TrdTracklet::GetCoord
Double_t GetCoord(Int_t ind)
Definition: CbmL1TrdTracklet.h:21
CbmL1TrdTracklet::vAccostTracklet
std::vector< Int_t > vAccostTracklet
Definition: CbmL1TrdTracklet.h:33
CbmL1TrdTracklet::SetVal
void SetVal(Int_t segVal)
Definition: CbmL1TrdTracklet.h:26
CbmL1TrdTracklet::ClassDef
ClassDef(CbmL1TrdTracklet, 1)
CbmL1TrdTracklet::SetIndRight
void SetIndRight(Int_t indRight)
Definition: CbmL1TrdTracklet.h:25
CbmL1TrdTracklet::SetIsAlone
void SetIsAlone(Bool_t isAlone)
Definition: CbmL1TrdTracklet.h:27
CbmL1TrdTracklet::Compare1
static Bool_t Compare1(CbmL1TrdTracklet *tr1, CbmL1TrdTracklet *tr2)
Definition: CbmL1TrdTracklet.h:39
CbmL1TrdTracklet::SetPlanesID
void SetPlanesID(Int_t A_ID, Int_t B_ID)
Definition: CbmL1TrdTracklet.h:30
CbmL1TrdTracklet::GetIndex
Int_t GetIndex()
Definition: CbmL1TrdTracklet.h:20
CbmL1TrdTracklet::GetIndLeft
Int_t GetIndLeft()
Definition: CbmL1TrdTracklet.h:16
CbmL1TrdTracklet::Compare2
static Bool_t Compare2(CbmL1TrdTracklet *tr1, CbmL1TrdTracklet *tr2)
Definition: CbmL1TrdTracklet.h:43
CbmL1TrdTracklet::SetIndex
void SetIndex(Int_t index)
Definition: CbmL1TrdTracklet.h:28
CbmL1TrdTracklet::CbmL1TrdTracklet
CbmL1TrdTracklet()
Definition: CbmL1TrdTracklet.cxx:6
CbmL1TrdTracklet::GetPlanesID
Int_t GetPlanesID(Int_t num)
Definition: CbmL1TrdTracklet.h:22
CbmL1TrdTracklet::fCoord
Double_t fCoord[4]
Definition: CbmL1TrdTracklet.h:55
CbmL1TrdTracklet
Definition: CbmL1TrdTracklet.h:7