// ------------------------------------------------------------------------- // ----- CbmGlobalTrack header file ----- // ----- Created 01/12/05 by V. Friese ----- // ----- Modified 04/06/09 by A. Lebedev ----- // ------------------------------------------------------------------------- /** CbmGlobalTrack.h *@author V.Friese ** ** Data class for Global CBM track. Data level RECO. ** It consists of local tracks in STS, MUCH and TRD and a RICH ring. ** **/ #ifndef CBMGLOBALTRACK_H_ #define CBMGLOBALTRACK_H_ 1 #include "FairTrackParam.h" #include "TObject.h" class CbmGlobalTrack : public TObject { public: /** Default constructor **/ CbmGlobalTrack(); /** Destructor **/ virtual ~CbmGlobalTrack(); /** Accessors **/ Int_t GetStsTrackIndex() const { return fStsTrack; } Int_t GetTrdTrackIndex() const { return fTrdTrack; } Int_t GetMuchTrackIndex() const { return fMuchTrack; } Int_t GetRichRingIndex() const { return fRichRing; } Int_t GetTofHitIndex() const { return fTofHit; } const FairTrackParam* GetParamFirst() const { return &fParamFirst; } const FairTrackParam* GetParamLast() const { return &fParamLast; } Int_t GetPidHypo() const { return fPidHypo; } Double_t GetChi2() const { return fChi2; } Int_t GetNDF() const { return fNDF; } Int_t GetFlag() const { return fFlag; } Double_t GetLength() const { return fLength; } /** Modifiers **/ void SetStsTrackIndex(Int_t iSts) { fStsTrack = iSts; } void SetTrdTrackIndex(Int_t iTrd) { fTrdTrack = iTrd; } void SetMuchTrackIndex(Int_t iMuch) { fMuchTrack = iMuch; } void SetRichRingIndex(Int_t iRing) { fRichRing = iRing; } void SetTofHitIndex(Int_t iTofHit) { fTofHit = iTofHit; } void SetParamFirst(const FairTrackParam* parFirst) { fParamFirst = *parFirst;} void SetParamLast(const FairTrackParam* parLast) { fParamLast = *parLast;} void SetPidHypo(Int_t iPid) { fPidHypo = iPid; } void SetChi2(Double_t chi2) { fChi2 = chi2; } void SetNDF(Int_t ndf) { fNDF = ndf; } void SetFlag(Int_t iFlag) { fFlag = iFlag; } void SetLength(Double_t length) { fLength = length;} /** Output to screen **/ void Print() const; private: /** Indices of local StsTrack, TrdTrack, MuchTrack, RichRing and TofHit **/ Int_t fStsTrack; Int_t fTrdTrack; Int_t fMuchTrack; Int_t fRichRing; Int_t fTofHit; /** Global track parameters at first and last plane **/ FairTrackParam fParamFirst; FairTrackParam fParamLast; /** PID hypothesis used for global track fit **/ Int_t fPidHypo; /** Chi2 of global track fit **/ Double32_t fChi2; /** NDF of global track fit **/ Int_t fNDF; /** Quality flag **/ Int_t fFlag; /** Track length **/ Double32_t fLength; ClassDef(CbmGlobalTrack, 2); }; #endif