CbmRoot
CbmStsTrack.cxx
Go to the documentation of this file.
1 
7 #include "CbmStsTrack.h"
8 
9 #include <FairTrackParam.h> // for FairTrackParam
10 
11 #include <sstream> // for operator<<, basic_ostream, stringstream
12 
13 using std::stringstream;
14 
15 
16 // ----- Constructor ---------------------------------------------------
17 CbmStsTrack::CbmStsTrack() : CbmTrack(), fMvdHitIndex(), fB(0.) {}
18 // -------------------------------------------------------------------------
19 
20 
21 // ----- Destructor ----------------------------------------------------
23 // -------------------------------------------------------------------------
24 
25 
26 // ----- Debug ---------------------------------------------------------
27 std::string CbmStsTrack::ToString() const {
28  stringstream ss;
29  ss << "CbmStsTrack: time " << fTime << " ns | hits STS " << GetNofStsHits()
30  << " MVD " << GetNofMvdHits() << " | q/p " << GetParamFirst()->GetQp()
31  << " | chisq " << GetChiSq() << " | NDF " << GetNDF() << " | STS hits ";
32  for (Int_t iHit = 0; iHit < GetNofStsHits(); iHit++) {
33  ss << GetStsHitIndex(iHit) << " ";
34  }
35  return ss.str();
36 }
37 // -------------------------------------------------------------------------
38 
39 
CbmTrack::GetChiSq
Double_t GetChiSq() const
Definition: CbmTrack.h:58
CbmTrack::fTime
Double_t fTime
Definition: CbmTrack.h:98
CbmStsTrack::~CbmStsTrack
virtual ~CbmStsTrack()
Definition: CbmStsTrack.cxx:22
CbmStsTrack::GetNofMvdHits
Int_t GetNofMvdHits() const
Definition: CbmStsTrack.h:84
CbmTrack
Definition: CbmTrack.h:32
CbmStsTrack.h
Data class for STS tracks.
CbmStsTrack::CbmStsTrack
CbmStsTrack()
Definition: CbmStsTrack.cxx:17
CbmTrack::GetNDF
Int_t GetNDF() const
Definition: CbmTrack.h:59
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmTrack::GetParamFirst
const FairTrackParam * GetParamFirst() const
Definition: CbmTrack.h:61
CbmStsTrack::GetStsHitIndex
Int_t GetStsHitIndex(Int_t iHit) const
Definition: CbmStsTrack.h:98
CbmStsTrack
Definition: CbmStsTrack.h:37
CbmStsTrack::ToString
virtual std::string ToString() const
Definition: CbmStsTrack.cxx:27
CbmStsTrack::GetNofStsHits
Int_t GetNofStsHits() const
Definition: CbmStsTrack.h:90