#include <gtk/gtk.h>
#include <stdio.h>
#include <stdint.h>
#include <errno.h>
#include <vector>
#include <math.h>
#include <algorithm>
#include <string.h>
#include "drawing.h"
#include "absgeo.h"
#include "event.h"
#include "geo.h"
#include "tracks.h"
#include "vertices.h"
#include "hits.h"
#include "status.h"
#include "zoompan.h"
#include "active.h"
Go to the source code of this file.
Functions | |
static void | change_highlighted_reco () |
static void | change_highlighted_cell (const int oldactive_plane, const int oldactive_cell) |
void | update_active_objects (const noe_view_t V, const int x, const int y) |
static gboolean | pollmouseover (__attribute__((unused)) gpointer data) |
static gboolean | mouseover (GtkWidget *widg, GdkEventMotion *gevent, __attribute__((unused)) gpointer data) |
static gboolean | to_next_free_run (__attribute__((unused)) gpointer data) |
static void | draw_whole_user_event () |
static gboolean | animation_step (__attribute__((unused)) gpointer data) |
static gboolean | handle_event () |
static gboolean | draw_event_from_timer (__attribute__((unused)) gpointer data) |
static bool | get_event (const int change) |
static gboolean | prefetch_an_event (__attribute__((unused)) gpointer data) |
static void | prepare_to_swich_events () |
static void | to_next (__attribute__((unused)) GtkWidget *widget, gpointer data) |
static bool | have_event_by_number (const unsigned int n) |
static gboolean | clear_error_message (__attribute__((unused)) gpointer dt) |
static void | getuserevent () |
static void | stop_freerun_timer () |
static void | start_freerun_timer () |
static void | toggle_freerun (__attribute__((unused)) GtkWidget *w, __attribute__((unused)) gpointer dt) |
static void | toggle_cum_ani (GtkWidget *w, __attribute__((unused)) gpointer dt) |
static void | set_intervals (const int speednum) |
static void | toggle_animate (GtkWidget *w, __attribute__((unused)) gpointer dt) |
static void | restart_animation (__attribute__((unused)) GtkWidget *w, __attribute__((unused)) gpointer d) |
static void | adjusttick (GtkWidget *wg, const gpointer dt) |
static void | adjustspeed (GtkWidget *wg, __attribute__((unused)) const gpointer dt) |
static gboolean | redraw_window (GtkWidget *mainwin, GdkEventConfigure *event, __attribute__((unused)) gpointer d) |
static void | close_window () |
static void | openvertexwin () |
static void | opentrackwin () |
static GtkWidget * | make_tickslider (const bool ismax) |
static GtkWidget * | make_speedslider () |
static void | set_bg_color_to_main (GtkWidget *widg) |
static void | makestatbox (const int i) |
static GtkWidget * | make_ticklabel (const bool ismax) |
static GtkWidget * | make_speedlabel () |
static GtkWidget * | make_ueventbox () |
static GtkWidget * | make_aux_win (const char *const name, const statcontents si) |
static void | setup () |
void | realmain (const bool have_read_all) |
Variables | |
static int | TDCSTEP = 4 |
std::vector< noeevent > | theevents |
int | gevi = 0 |
int | active_plane = -1 |
int | active_cell = -1 |
int | active_track = -1 |
int | active_vertex = -1 |
int | first_mucatcher |
int | ncells_perplane |
int | nplanes |
GtkWidget * | statbox [NSTATBOXES] |
GtkTextBuffer * | stattext [NSTATBOXES] |
GtkWidget * | edarea [kXorY] |
cairo_pattern_t * | eventpattern [kXorY] |
static GtkWidget * | mainwin = NULL |
static GtkWidget * | trackwin = NULL |
static GtkWidget * | vertexwin = NULL |
static GtkWidget * | animate_checkbox = NULL |
static GtkWidget * | cum_ani_checkbox = NULL |
static GtkWidget * | freerun_checkbox = NULL |
static GtkWidget * | ueventbut = NULL |
static GtkWidget * | ueventbox = NULL |
static GtkWidget * | mintickslider = NULL |
static GtkWidget * | maxtickslider = NULL |
static GtkObject * | speedadj = NULL |
bool | ghave_read_all = false |
static bool | prefetching = false |
static bool | adjusttick_callback_inhibit = false |
static bool | animate = false |
static bool | cumulative_animation = true |
static bool | free_running = false |
static gulong | freeruninterval = 0 |
static gulong | animationinterval = 0 |
static gulong | freeruntimeoutid = 0 |
static gulong | animatetimeoutid = 0 |
static gulong | statmsgtimeoutid = 0 |
|
static |
Definition at line 646 of file main.cxx.
References animate, animatetimeoutid, animation_step(), animationinterval, free_running, std::max(), set_intervals(), start_freerun_timer(), and stop_freerun_timer().
Referenced by make_speedslider().
|
static |
Definition at line 601 of file main.cxx.
References adjusttick_callback_inhibit, animate, animatetimeoutid, DRAWPARS::clear, noeevent::current_maxtick, noeevent::current_mintick, draw_event(), E, DRAWPARS::firsttick, gevi, DRAWPARS::lasttick, std::max(), std::min(), restart_animation(), theevents, noeevent::user_maxtick, and noeevent::user_mintick.
Referenced by make_tickslider().
|
static |
Definition at line 260 of file main.cxx.
References animate, animatetimeoutid, DRAWPARS::clear, cumulative_animation, noeevent::current_maxtick, noeevent::current_mintick, draw_event(), E, DRAWPARS::firsttick, free_running, gevi, DRAWPARS::lasttick, TDCSTEP, theevents, and to_next_free_run().
Referenced by adjustspeed(), and handle_event().
Definition at line 157 of file main.cxx.
References active_cell, active_plane, hit::cell, draw_hit(), edarea, gevi, MECModelEnuComparisons::i, kX, kXorY, kY, hit::plane, theevents, and allInOneTrainingPlots::window.
Referenced by update_active_objects().
|
static |
Definition at line 124 of file main.cxx.
References DRAWPARS::clear, draw_tracks(), draw_vertices(), edarea, eventpattern, DRAWPARS::firsttick, gevi, MECModelEnuComparisons::i, kXorY, DRAWPARS::lasttick, theevents, and allInOneTrainingPlots::window.
Referenced by update_active_objects().
|
static |
Definition at line 433 of file main.cxx.
References FALSE, set_status(), and staterror.
Referenced by getuserevent().
|
static |
|
static |
Definition at line 335 of file main.cxx.
References draw_whole_user_event(), and FALSE.
Referenced by realmain().
|
static |
Definition at line 243 of file main.cxx.
References DRAWPARS::clear, draw_event(), DRAWPARS::firsttick, free_running, freeruninterval, gevi, DRAWPARS::lasttick, pollmouseover(), and theevents.
Referenced by draw_event_from_timer(), and handle_event().
|
static |
Definition at line 349 of file main.cxx.
References gevi, ghave_read_all, and theevents.
Referenced by realmain(), setup(), and to_next().
|
static |
Definition at line 440 of file main.cxx.
References clear_error_message(), errno, gevi, ghave_read_all, handle_event(), have_event_by_number(), makeTrainCVSamples::int, nevent, prepare_to_swich_events(), set_status(), staterror, statmsgtimeoutid, theevents, and ueventbox.
Referenced by make_ueventbox(), and setup().
|
static |
Definition at line 298 of file main.cxx.
References adjusttick_callback_inhibit, animate, animatetimeoutid, animation_step(), animationinterval, noeevent::current_maxtick, noeevent::current_mintick, draw_whole_user_event(), E, FALSE, gevi, std::max(), noeevent::maxtick, maxtickslider, noeevent::mintick, mintickslider, theevents, noeevent::user_maxtick, and noeevent::user_mintick.
Referenced by getuserevent(), restart_animation(), setup(), to_next(), toggle_animate(), and toggle_freerun().
|
static |
Definition at line 424 of file main.cxx.
References MECModelEnuComparisons::i, nevent, and theevents.
Referenced by getuserevent().
|
static |
|
static |
|
static |
Definition at line 718 of file main.cxx.
References adjustspeed(), set_intervals(), and speedadj.
Referenced by setup().
|
static |
|
static |
|
static |
Definition at line 779 of file main.cxx.
References getuserevent(), and ueventbox.
Referenced by setup().
Definition at line 743 of file main.cxx.
References MECModelEnuComparisons::i, set_bg_color_to_main(), statbox, and stattext.
Referenced by setup().
|
static |
Definition at line 222 of file main.cxx.
References __attribute__(), dopanning(), edarea, kX, kY, theevents, to_next_free_run(), TRUE, and update_active_objects().
Referenced by setup().
|
static |
|
static |
|
static |
Definition at line 207 of file main.cxx.
References edarea, MECModelEnuComparisons::i, kXorY, TRUE, update_active_objects(), submit_syst::x, and submit_syst::y.
Referenced by draw_whole_user_event(), and setup().
|
static |
Definition at line 376 of file main.cxx.
References FALSE, ghave_read_all, prefetching, and TRUE.
Referenced by setup().
|
static |
Definition at line 389 of file main.cxx.
References active_cell, active_plane, and active_track.
Referenced by getuserevent(), and to_next().
void realmain | ( | const bool | have_read_all | ) |
Definition at line 962 of file main.cxx.
References draw_event_from_timer(), get_event(), ghave_read_all, prefetching, set_eventn_status_runevent(), and setup().
Referenced by noe::noe::endJob(), and noe::noe::produce().
|
static |
|
static |
Definition at line 589 of file main.cxx.
References animate, animate_checkbox, handle_event(), and TRUE.
Referenced by adjusttick(), and setup().
|
static |
Definition at line 732 of file main.cxx.
References plot_validation_datamc_2018::color.
Referenced by make_speedlabel(), make_ticklabel(), and makestatbox().
Definition at line 544 of file main.cxx.
References animationinterval, freeruninterval, makeTrainCVSamples::int, cet::pow(), and TDCSTEP.
Referenced by adjustspeed(), make_speedslider(), and toggle_animate().
|
static |
Definition at line 808 of file main.cxx.
References animate, animate_checkbox, plot_validation_datamc::c, close_window(), cum_ani_checkbox, cumulative_animation, dozooming(), edarea, FALSE, free_running, freerun_checkbox, get_event(), getuserevent(), ghave_read_all, handle_event(), MECModelEnuComparisons::i, kXorY, make_aux_win(), make_speedlabel(), make_speedslider(), make_ticklabel(), make_tickslider(), make_ueventbox(), makestatbox(), maxtickslider, mintickslider, mousebuttonpress(), mouseover(), next(), NSTATBOXES, opentrackwin(), openvertexwin(), pollmouseover(), prefetch_an_event(), prev(), redraw_event(), redraw_window(), request_edarea_size(), restart_animation(), setboxes(), statbox, staterror, stathit, statrunevent, stattiming, stattrack, statvertex, to_next(), toggle_animate(), toggle_cum_ani(), toggle_freerun(), trackwin, ueventbox, ueventbut, and vertexwin.
Referenced by daqdataformats::NanoSliceVersionConvention::NanoSliceVersionConvention(), and realmain().
|
static |
Definition at line 484 of file main.cxx.
References freeruninterval, freeruntimeoutid, std::max(), and stop_freerun_timer().
Referenced by adjustspeed(), toggle_animate(), and toggle_freerun().
|
static |
Definition at line 478 of file main.cxx.
References freeruntimeoutid.
Referenced by adjustspeed(), start_freerun_timer(), toggle_animate(), and toggle_freerun().
|
static |
Definition at line 395 of file main.cxx.
References get_event(), handle_event(), and prepare_to_swich_events().
Referenced by setup(), and to_next_free_run().
|
static |
Definition at line 405 of file main.cxx.
References FALSE, free_running, freerun_checkbox, gevi, ghave_read_all, makeTrainCVSamples::int, theevents, and to_next().
Referenced by animation_step(), and mouseover().
|
static |
Definition at line 571 of file main.cxx.
References animate, free_running, handle_event(), set_intervals(), speedadj, start_freerun_timer(), stop_freerun_timer(), and TDCSTEP.
Referenced by setup().
|
static |
Definition at line 520 of file main.cxx.
References DRAWPARS::clear, cumulative_animation, draw_event(), DRAWPARS::firsttick, gevi, DRAWPARS::lasttick, and theevents.
Referenced by setup().
|
static |
Definition at line 506 of file main.cxx.
References animate, free_running, handle_event(), start_freerun_timer(), and stop_freerun_timer().
Referenced by setup().
void update_active_objects | ( | const noe_view_t | V, |
const int | x, | ||
const int | y | ||
) |
Definition at line 185 of file main.cxx.
References active_cell, active_plane, active_track, active_vertex, change_highlighted_cell(), change_highlighted_reco(), set_eventn_status_hit(), set_eventn_status_track(), set_eventn_status_vertex(), TDCSTEP, and update_active_indices().
Referenced by mouseover(), and pollmouseover().
int active_cell = -1 |
Definition at line 78 of file main.cxx.
Referenced by change_highlighted_cell(), draw_hit(), prepare_to_swich_events(), set_eventn_status_hit(), update_active_indices(), and update_active_objects().
int active_plane = -1 |
Definition at line 78 of file main.cxx.
Referenced by change_highlighted_cell(), draw_hit(), prepare_to_swich_events(), set_eventn_status_hit(), update_active_indices(), and update_active_objects().
int active_track = -1 |
Definition at line 78 of file main.cxx.
Referenced by draw_tracks(), prepare_to_swich_events(), set_eventn_status_track(), update_active_indices(), and update_active_objects().
int active_vertex = -1 |
Definition at line 78 of file main.cxx.
Referenced by draw_vertices(), set_eventn_status_vertex(), update_active_indices(), and update_active_objects().
|
static |
Definition at line 103 of file main.cxx.
Referenced by adjusttick(), and handle_event().
|
static |
Definition at line 112 of file main.cxx.
Referenced by adjustspeed(), adjusttick(), animation_step(), handle_event(), restart_animation(), setup(), toggle_animate(), and toggle_freerun().
|
static |
Definition at line 91 of file main.cxx.
Referenced by restart_animation(), and setup().
|
static |
Definition at line 119 of file main.cxx.
Referenced by adjustspeed(), adjusttick(), animation_step(), and handle_event().
|
static |
Definition at line 117 of file main.cxx.
Referenced by adjustspeed(), handle_event(), and set_intervals().
|
static |
|
static |
Definition at line 113 of file main.cxx.
Referenced by animation_step(), setup(), and toggle_cum_ani().
GtkWidget* edarea[kXorY] |
Definition at line 20 of file drawing.cxx.
Referenced by change_highlighted_cell(), change_highlighted_reco(), draw_event(), mouseover(), pollmouseover(), request_edarea_size(), and setup().
cairo_pattern_t* eventpattern[kXorY] |
Definition at line 21 of file drawing.cxx.
Referenced by change_highlighted_reco(), and draw_event().
int first_mucatcher |
Definition at line 21 of file geo.cxx.
Referenced by det_to_screen_x(), det_to_screen_y(), screen_to_cell(), screen_to_cell_unbounded(), screen_to_plane_unbounded(), setboxes(), setfd(), and total_x_pixels().
|
static |
Definition at line 114 of file main.cxx.
Referenced by adjustspeed(), animation_step(), draw_whole_user_event(), setup(), to_next_free_run(), toggle_animate(), and toggle_freerun().
|
static |
Definition at line 93 of file main.cxx.
Referenced by setup(), and to_next_free_run().
|
static |
Definition at line 116 of file main.cxx.
Referenced by draw_whole_user_event(), set_intervals(), and start_freerun_timer().
|
static |
Definition at line 118 of file main.cxx.
Referenced by start_freerun_timer(), and stop_freerun_timer().
int gevi = 0 |
Definition at line 76 of file main.cxx.
Referenced by adjusttick(), animation_step(), change_highlighted_cell(), change_highlighted_reco(), draw_event(), draw_hits(), draw_tracks(), draw_vertices(), draw_whole_user_event(), get_event(), getuserevent(), handle_event(), redraw_event(), screen_to_activecell(), screen_to_activetrack(), screen_to_activevertex(), set_eventn_status_hit(), set_eventn_status_runevent(), set_eventn_status_timing(), set_eventn_status_track(), set_eventn_status_vertex(), to_next_free_run(), toggle_cum_ani(), and visible_hit().
bool ghave_read_all = false |
Definition at line 101 of file main.cxx.
Referenced by get_event(), getuserevent(), prefetch_an_event(), realmain(), setup(), and to_next_free_run().
|
static |
Definition at line 97 of file main.cxx.
Referenced by handle_event(), and setup().
|
static |
Definition at line 96 of file main.cxx.
Referenced by handle_event(), and setup().
int ncells_perplane |
Definition at line 22 of file geo.cxx.
Referenced by det_to_screen_y(), screen_to_cell(), screen_to_cell_unbounded(), setboxes(), setfd(), and total_y_pixels().
int nplanes |
Definition at line 145 of file geom.C.
Referenced by ncs::Xeff::analyze(), chaninfo::BadChanValidate::BadChansFromDB(), chaninfo::BadChanValidate::beginSubRun(), caf::Proxy< caf::SRPixelObjMap >::CheckEquals(), caf::Proxy< caf::SRPixelMap >::CheckEquals(), flat::Flat< caf::SRPixelObjMap >::Clear(), flat::Flat< caf::SRPixelMap >::Clear(), calib::DriftResponseCalc::endRun(), flat::Flat< caf::SRPixelObjMap >::Fill(), flat::Flat< caf::SRPixelMap >::Fill(), slidt::FillHists(), FindPlanes(), jmshower::RecoJMShower::GetRVPStats(), caf::Proxy< caf::SRPixelObjMap >::operator=(), caf::Proxy< caf::SRPixelMap >::operator=(), cvn::PixelMap::PixelMapToVectors(), plot_assess_nd(), cvntf::CVNCosmicTF::produce(), rvp::RecVarPID::produce(), xnue::XnuePID::produce(), ValidCalibPDF::SchedulePlots(), screen_to_plane(), setboxes(), setfd(), total_x_pixels(), nuonecvntf::NuonECVNTF::vector_to_tensor(), regcvntf::RegCVNTF::vector_to_tensor_nue(), and calib::AttenuationFit::writeResults().
|
static |
Definition at line 102 of file main.cxx.
Referenced by prefetch_an_event(), and realmain().
|
static |
Definition at line 98 of file main.cxx.
Referenced by make_speedslider(), and toggle_animate().
GtkWidget* statbox[NSTATBOXES] |
Definition at line 12 of file status.cxx.
Referenced by make_aux_win(), makestatbox(), set_status(), and setup().
|
static |
Definition at line 120 of file main.cxx.
Referenced by getuserevent().
GtkTextBuffer* stattext[NSTATBOXES] |
Definition at line 11 of file status.cxx.
Referenced by makestatbox(), and set_status().
|
static |
Definition at line 72 of file main.cxx.
Referenced by animation_step(), set_intervals(), toggle_animate(), and update_active_objects().
std::vector<noeevent> theevents |
Definition at line 28 of file noe_module.cc.
Referenced by adjusttick(), animation_step(), change_highlighted_cell(), change_highlighted_reco(), draw_whole_user_event(), get_event(), getuserevent(), handle_event(), have_event_by_number(), mouseover(), to_next_free_run(), and toggle_cum_ani().
|
static |
Definition at line 90 of file main.cxx.
Referenced by opentrackwin(), and setup().
|
static |
Definition at line 95 of file main.cxx.
Referenced by getuserevent(), make_ueventbox(), and setup().
|
static |
Definition at line 90 of file main.cxx.
Referenced by openvertexwin(), and setup().