ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
GPUFunctions.h
Go to the documentation of this file.
1 #ifndef GPU_FUNCTIONS_H
2 #define GPU_FUNCTIONS_H
3 
4 #include <vector>
5 
6 namespace GPU_daq {
7 
9  int test_vertices_initialize_ToolDAQ(double detector_length, double detector_radius, double pmt_radius, std::string ParameterFile, std::vector<int> tube_no,std::vector<float> tube_x,std::vector<float> tube_y,std::vector<float> tube_z, float f_dark_rate,
11  float wall_like_distance,
14  float coalesce_time,
15  float trigger_gate_up,
16  float trigger_gate_down,
17  int output_txt,
18  int correct_mode,
20  bool cylindrical_grid,
21  float costheta_cone_cut,
23  bool trigger_threshold_adjust_for_noise,
24  int f_max_n_hits_per_job,
25  int f_num_blocks_y,
26  int f_num_threads_per_block_y,
27  int f_num_threads_per_block_x,
28  int f_write_output_mode,
29  bool f_return_vertex,
30  bool f_return_direction
31 );
33  int test_vertices_execute(std::vector<int> PMTid, std::vector<int> time, std::vector<int> * trigger_ns, std::vector<int> * trigger_ts, std::vector<double> * trigger_vtx_xs, std::vector<double> * trigger_vtx_ys, std::vector<double> * trigger_vtx_zs, std::vector<double> * trigger_dir_xs, std::vector<double> * trigger_dir_ys, std::vector<double> * trigger_dir_zs);
35 int nhits_initialize();
36  int nhits_initialize_ToolDAQ(std::string ParameterFile, int nPMTs, int fTriggerSearchWindow, int fTriggerSearchWindowStep, int fTriggerThreshold, int fTriggerSaveWindowPre, int fTriggerSaveWindowPost);
37 int nhits_execute();
38 int nhits_execute(std::vector<int> PMTid, std::vector<int> time, std::vector<int> * trigger_ns, std::vector<int> * trigger_ts);
39 int nhits_finalize();
40 
41 //int CUDAFunction(std::vector<int> PMTid, std::vector<int> time);
42 
43 }
44 
45 #endif
int nhits_finalize()
int test_vertices_initialize()
double distance_between_vertices
parameters
Definition: library_daq.h:44
unsigned int wall_like_threshold_number_of_pmts
Definition: library_daq.h:49
int nhits_execute()
unsigned int correct_mode
Definition: library_daq.h:174
bool output_txt
Definition: library_daq.h:173
bool select_based_on_cone
Definition: library_daq.h:58
bool cylindrical_grid
Definition: library_daq.h:124
float costheta_cone_cut
Definition: library_daq.h:56
double detector_radius
Definition: library_daq.h:65
unsigned int water_like_threshold_number_of_pmts
Definition: library_daq.h:48
double trigger_gate_down
Definition: library_daq.h:53
unsigned int n_direction_bins_theta
Definition: library_daq.h:87
double trigger_gate_up
Definition: library_daq.h:52
int test_vertices_initialize_ToolDAQ(double detector_length, double detector_radius, double pmt_radius, std::string ParameterFile, std::vector< int > tube_no, std::vector< float > tube_x, std::vector< float > tube_y, std::vector< float > tube_z, float f_dark_rate, float distance_between_vertices, float wall_like_distance, float water_like_threshold_number_of_pmts, float wall_like_threshold_number_of_pmts, float coalesce_time, float trigger_gate_up, float trigger_gate_down, int output_txt, int correct_mode, int n_direction_bins_theta, bool cylindrical_grid, float costheta_cone_cut, bool select_based_on_cone, bool trigger_threshold_adjust_for_noise, int f_max_n_hits_per_job, int f_num_blocks_y, int f_num_threads_per_block_y, int f_num_threads_per_block_x, int f_write_output_mode, bool f_return_vertex, bool f_return_direction)
int nhits_initialize_ToolDAQ(std::string ParameterFile, int nPMTs, int fTriggerSearchWindow, int fTriggerSearchWindowStep, int fTriggerThreshold, int fTriggerSaveWindowPre, int fTriggerSaveWindowPost)
int nhits_initialize()
int test_vertices_execute()
int test_vertices_finalize()
double wall_like_distance
Definition: library_daq.h:45
double coalesce_time
Definition: library_daq.h:51