36 const int x,
const int y)
41 float mindist = FLT_MAX;
61 const int x,
const int y)
66 float mindist = FLT_MAX;
101 int mindist = 9999, closestcell = -1;
102 for(
unsigned int i = 0;
i < THEhits.size();
i++){
103 if(THEhits[
i].plane != plane)
continue;
108 closestcell = THEhits[
i].cell;
static int screen_to_activevertex(const noe_view_t view, const int x, const int y)
std::vector< noeevent > theevents
std::enable_if_t< std::is_arithmetic< T >::value, T > hypot(T x, T y)
Supply basic geometry functions.
static int screen_to_activecell(noe_view_t view, const int x, const int y, const int TDCSTEP)
const Var kY([](const caf::SRProxy *sr){float tmp=0.f;if(sr->mc.nu.empty()) return tmp;tmp=sr->mc.nu[0].y;return tmp;})
void update_active_indices(const noe_view_t V, const int x, const int y, const int TDCSTEP)
static int screen_to_activetrack(const noe_view_t view, const int x, const int y)
static const int min_pix_to_be_close
float screen_dist_to_track(const int x, const int y, const std::vector< std::pair< int, int > > &track)
int screen_to_cell(const noe_view_t view, const int x, const int y)
int screen_to_plane(const noe_view_t view, const int x)
static bool visible_hit(const int32_t tdc, const int TDCSTEP)
std::vector< screenvertex_t > screenvertices[kXorY]
std::vector< screentrack_t > screentracks[kXorY]