#ifndef CBML1TRDTRACKLET_H #define CBML1TRDTRACKLET_H 1 #include #include using namespace std; class CbmL1TrdTracklet : public TObject { public: /** Default constructor **/ CbmL1TrdTracklet(); //CbmL1TrdTracklet(Int_t indLeft, Int_t indRight) {fIndLeft=indLeft; fIndRight=indRight;}; /** Destructor **/ virtual ~CbmL1TrdTracklet(); inline Int_t GetIndLeft() { return fIndLeft; }; inline Int_t GetIndRight() { return fIndRight; }; inline Int_t GetVal() { return fVal; }; inline Int_t GetIsAlone() { return fIsAlone; }; inline Int_t GetIndex() { return fIndex; }; inline void SetIndLeft(Int_t indLeft) { fIndLeft = indLeft; }; inline void SetIndRight(Int_t indRight) { fIndRight = indRight; }; inline void SetVal(Int_t segVal) { fVal = segVal; }; inline void SetIsAlone(Bool_t isAlone) { fIsAlone = isAlone; }; inline void SetIndex(Int_t index) { fIndex = index; }; inline Double_t GetCoord1() { return fCoord1; }; inline Double_t GetCoord2() { return fCoord2; }; inline Double_t GetCoord3() { return fCoord3; }; inline Double_t GetCoord4() { return fCoord4; }; inline void SetCoord1(Double_t coord) { fCoord1 = coord; }; inline void SetCoord2(Double_t coord) { fCoord2 = coord; }; inline void SetCoord3(Double_t coord) { fCoord3 = coord; }; inline void SetCoord4(Double_t coord) { fCoord4 = coord; }; inline void SetPlanesID(Int_t A_ID, Int_t B_ID) { fID[0] = A_ID; fID[1] = B_ID; }; inline Int_t GetPlanesID(Int_t num) { return fID[num]; }; vector vAccostTracklet; // vector vAccostRight; //compares the first or second two coordinates of two tracklets inline static Bool_t Compare1(CbmL1TrdTracklet *tr1, CbmL1TrdTracklet *tr2) { return (tr1->GetCoord1() > tr2->GetCoord1()); }; inline static Bool_t Compare2(CbmL1TrdTracklet *tr1, CbmL1TrdTracklet *tr2) { return (tr1->GetCoord2() > tr2->GetCoord2()); }; private: Int_t fID[2]; Int_t fIndLeft; Int_t fIndRight; Int_t fVal; Int_t fY; Bool_t fIsAlone; Int_t fIndex; Double_t fCoord1; //more precisely determined coordinate from the left hit Double_t fCoord2; //more precisely determined coordinate from the right hit Double_t fCoord3; //more precisely determined coordinate from the right hit Double_t fCoord4; //more precisely determined coordinate from the right hit ClassDef(CbmL1TrdTracklet,1); }; #endif