// $Id: DTrackCandidate.h 9309 2012-06-30 20:16:07Z jonesrt $ // // File: DTrackCandidate.h // Created: Sun Apr 3 12:38:16 EDT 2005 // Creator: davidl (on Darwin Harriet.local 7.8.0 powerpc) // #ifndef _DTrackCandidate_ #define _DTrackCandidate_ #include #include using namespace jana; #include "PID/DKinematicData.h" class DReferenceTrajectory; #define MAX_IHITS 256 /// \htmlonly /// /// /// /// \endhtmlonly /// DTrackCandidate objects are the result of track finding and the /// input to track fitting. Several algorithms exist for making /// these and then merging them. For the default, see /// DTrackCandidate_factory . class DTrackCandidate:public DKinematicData{ public: JOBJECT_PUBLIC(DTrackCandidate); DTrackCandidate():chisq(0),Ndof(0),rt(0){} float chisq; ///< Chi-squared for the track (not chisq/dof!) int Ndof; ///< Number of degrees of freedom in the fit const DReferenceTrajectory *rt; ///< pointer to reference trjectory representing this track (if any) vectorused_cdc_indexes; vectorused_fdc_indexes; void toStrings(vector > &items)const{ DKinematicData::toStrings(items); AddString(items, "id", "0x%x", id); AddString(items, "chisq", "%f", chisq); AddString(items, "Ndof", "%d", Ndof); } }; #endif // _DTrackCandidate_