5#include <unordered_map>
57 void add_point(
double t_sum,
int module_num);
122 auto try_in_same_dp(
const std::vector<Point>& collection,
int offset = 0) -> bool;
void set_number_of_modules(int num_of_modules)
void fill_one_plane_histogram(double time_val, int module_num)
void calibrate(Cal2HitPar &hit_par)
static constexpr auto TIME_SUM_BIN_NUM
auto get_hist_tsync() const -> TH2D *
auto calculate_time_diff_to_prev_ref(int plane_id, int best_vert_bar_num) const -> ValueErrorD
std::vector< Point > buffer_points_
void end_of_event()
Actions in the end of the event.
auto try_in_same_vertical_dp(const std::vector< Point > &collection) -> bool
auto try_in_same_dp(const std::vector< Point > &collection, int offset=0) -> bool
Check if all points are in the same horizontal or vertical double plane.
auto calculate_best_vertical_bar_num() const -> int
@ same_vertical_dp
All the points within vertical plane followed by horizontal one.
@ xy_plane
All points within one single horizontal plane.
@ same_horizontal_dp
All the points within horizontal plane followed by vertical one.
@ invalid
Invalid points to be thrown away.
auto get_record_type() const -> RecordType
void init_hist(DataMonitor &data_monitor)
set histograms.
std::unordered_map< int, int > ref_bars_in_planes_
key: plane_id, value: global module number
auto try_in_xy_plane(const std::vector< Point > &collection) -> bool
auto calculate_time_diffs_to_first() const -> std::unordered_map< int, ValueErrorD >
void set_max_time_difference(double max_time_val)
Set the bar num of the reference bar.
double max_time_difference_
TH2D * hist_horizontal_dp_
void fill_histogram(RecordType record_type)
int event_ref_module_num_
TH2D * hist_horizontal_plane_
void fill_two_planes_histogram(double time_val, int module_num)
void add_point(double t_sum, int module_num)
Add the t_sum value from a bar.
auto get_num_of_dp() const -> int
void set_plane_ref_bar_time(const std::vector< Point > &collection, int plane_num)
Simulation of NeuLAND Bar/Paddle.
ValueError< double > ValueErrorD