1 #ifndef WIRECELLSIGPROC_ROIREFINEMENT 2 #define WIRECELLSIGPROC_ROIREFINEMENT 20 ROI_refinement(
Waveform::ChannelMaskMap& cmm,
int nwire_u,
int nwire_v,
int nwire_w,
float th_factor = 3.0,
float fake_signal_low_th = 500,
float fake_signal_high_th = 1000,
float fake_signal_low_th_ind_factor=1.0,
float fake_signal_high_th_ind_factor=1.0,
int pad = 5,
int break_roi_loop = 2,
float th_peak = 3.0,
float sep_peak = 6.0,
float low_peak_sep_threshold_pre = 1200,
int max_npeaks = 200,
float sigma = 2,
float th_percent = 0.1);
77 std::map<int,std::vector<std::pair<int,int>>>
bad_ch_map;
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
void link(SignalROI *prev_roi, SignalROI *next_roi)
SignalROIChList rois_v_loose
ROI_refinement(Waveform::ChannelMaskMap &cmm, int nwire_u, int nwire_v, int nwire_w, float th_factor=3.0, float fake_signal_low_th=500, float fake_signal_high_th=1000, float fake_signal_low_th_ind_factor=1.0, float fake_signal_high_th_ind_factor=1.0, int pad=5, int break_roi_loop=2, float th_peak=3.0, float sep_peak=6.0, float low_peak_sep_threshold_pre=1200, int max_npeaks=200, float sigma=2, float th_percent=0.1)
float fake_signal_low_th_ind_factor
SignalROIMap contained_rois
void unlink(SignalROI *prev_roi, SignalROI *next_roi)
void CleanUpInductionROIs(int plane)
SignalROIChList rois_w_tight
SignalROIChList & get_v_rois()
void BreakROI(SignalROI *roi, float rms)
SignalROIChList rois_v_tight
SignalROIChList rois_u_loose
float fake_signal_high_th
void ShrinkROIs(int plane, ROI_formation &roi_form)
void generate_merge_ROIs(int plane)
void load_data(int plane, const Array::array_xxf &r_data, ROI_formation &roi_form)
std::map< SignalROI *, SignalROISelection > SignalROIMap
std::vector< SignalROIList > SignalROIChList
std::shared_ptr< spdlog::logger > logptr_t
float low_peak_sep_threshold_pre
float fake_signal_high_th_ind_factor
void apply_roi(int plane, Array::array_xxf &r_data)
SignalROIChList rois_u_tight
std::map< int, std::vector< std::pair< int, int > > > bad_ch_map
void CleanUpCollectionROIs()
void CleanUpROIs(int plane)
SignalROIChList & get_rois_by_plane(int plane)
SignalROIChList & get_u_rois()
SignalROIChList & get_w_rois()
void BreakROI1(SignalROI *roi)
void refine_data(int plane, ROI_formation &roi_form)
Eigen::ArrayXXf array_xxf
A real, 2D array.
void refine_data_debug_mode(int plane, ROI_formation &roi_form, const std::string &cmd)
void CheckROIs(int plane, ROI_formation &roi_form)
void ShrinkROI(SignalROI *roi, ROI_formation &roi_form)
void BreakROIs(int plane, ROI_formation &roi_form)