4 #include "MarlinTrk/Factory.h"
5 #include "MarlinTrk/IMarlinTrkSystem.h"
6 #include "MarlinTrk/IMarlinTrack.h"
7 #include "EVENT/Track.h"
10 #include "Math/ProbFunc.h"
29 message =
"FitterException: " + text ;
32 virtual const char* what()
const throw() {
return message.c_str() ; }
46 const TrackState* getTrackState()
const {
return _trackState; }
47 double getChi2()
const {
return _chi2;}
48 int getNdf()
const {
return _Ndf;}
50 TrackStatePlus(
const TrackState* trackState,
double chi2,
int Ndf ):
51 _trackState( trackState ), _chi2( chi2 ), _Ndf( Ndf ){}
57 const TrackState* _trackState;
74 Fitter( std::vector < TrackerHit* > trackerHits, MarlinTrk::IMarlinTrkSystem* trkSystem )
throw(
FitterException );
85 const TrackState* getTrackState(
int trackStateLocation )
throw(
FitterException );
89 for(
unsigned i=0; i<_trackStatesPlus.size(); i++ ){
91 delete _trackStatesPlus[i]->getTrackState();
92 delete _trackStatesPlus[i];
95 _trackStatesPlus.clear();
111 static float _bField;
114 std::vector< TrackerHit* > _trackerHits;
117 std::vector< const TrackStatePlus* > _trackStatesPlus;
119 MarlinTrk::IMarlinTrkSystem* _trkSystem;
121 MarlinTrk::IMarlinTrack* _marlinTrk;
A class to make it quick to fit a track or hits and get back the chi2, Ndf and chi2prob values and al...
Definition: Fitter.h:68
A class to store additional information together with a TrackState, namely the chi2 value and Ndf...
Definition: Fitter.h:40