.. _program_listing_file_larflow_Reco_TrackOTFit.h: Program Listing for File TrackOTFit.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``larflow/Reco/TrackOTFit.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef __LARFLOW_RECO_TRACK_OTFIT_H__ #define __LARFLOW_RECO_TRACK_OTFIT_H__ #include namespace larflow { namespace reco { class TrackOTFit { public: TrackOTFit() {}; virtual ~TrackOTFit() {}; void fit( std::vector< std::vector >& initial_track, std::vector< std::vector >& track_pts_w_feat_v ); static float d2_segment_point( const std::vector& seg_start, const std::vector& seg_end, const std::vector& testpt ); static std::vector grad_d2_wrt_segend( const std::vector& seg_start, const std::vector& seg_end, const std::vector& testpt ); static void getLossAndGradient( const std::vector< std::vector >& initial_track, const std::vector< std::vector >& track_pts_w_feat_v, float& loss, std::vector& grad ); static void getWeightedLossAndGradient( const std::vector< std::vector >& initial_track, const std::vector< std::vector >& track_pts_w_feat_v, float& loss, float& totweight, std::vector& grad ); }; } } #endif