#ifndef CBMKFTRACKINTERFACE_H #define CBMKFTRACKINTERFACE_H #include #include "CbmL1Track.h" #include "RootTypesDef.h" class CbmKFTrackInterface { public: CbmKFTrackInterface(); ~CbmKFTrackInterface() {}; CbmKFTrackInterface( const CbmL1Track &track ): fMass(0), fChi2(0), fIsElectron(0), fNDF(0) { SetTrack( track ); } void SetTrack( const CbmL1Track &track ); void SetPID( Int_t pidHypo ); Double_t *GetTrack() { return fT; } Double_t *GetCovMatrix() { return fC; } Double_t &GetRefChi2() { return fChi2; } Int_t &GetRefNDF() { return fNDF; } const Double_t *GetTrack() const { return fT; } const Double_t *GetCovMatrix() const { return fC; } const Double_t &GetRefChi2() const { return fChi2; } const Int_t &GetRefNDF() const { return fNDF; } Double_t GetMass() const { return fMass; } Bool_t IsElectron() const { return fIsElectron; } int Id() const { return fId; }; void SetId( int id ){ fId = id; }; protected: Double_t fT[6], fC[15], fMass, fChi2; Bool_t fIsElectron; Int_t fNDF; int fId; }; #endif