ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Typedefs | Functions | Variables
library_daq.h File Reference
#include "build.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <thrust/extrema.h>
#include <limits>
#include <limits.h>
#include <thrust/sort.h>
#include <thrust/device_ptr.h>

Go to the source code of this file.

Typedefs

typedef unsigned short histogram_t
 
typedef unsigned short offset_t
 
typedef unsigned short time_of_flight_t
 

Functions

void allocate_candidates_memory_on_device ()
 
void allocate_candidates_memory_on_host ()
 
void allocate_correct_memory_on_device ()
 
void allocate_correct_memory_on_device_nhits ()
 
void allocate_directions_memory_on_device ()
 
void allocate_tofs_memory_on_device ()
 
void check_cudamalloc_bool (unsigned int size)
 
void check_cudamalloc_float (unsigned int size)
 
void check_cudamalloc_int (unsigned int size)
 
void check_cudamalloc_unsigned_char (unsigned int size)
 
void check_cudamalloc_unsigned_int (unsigned int size)
 
void check_cudamalloc_unsigned_short (unsigned int size)
 
void choose_candidates_above_threshold ()
 
void coalesce_triggers ()
 
void copy_candidates_from_device_to_host ()
 
__device__ unsigned int device_get_direction_index_at_angles (unsigned int iphi, unsigned int itheta)
 
__device__ unsigned int device_get_direction_index_at_pmt (unsigned int pmt_id, unsigned int vertex_index, unsigned int direction_index)
 
__device__ unsigned int device_get_direction_index_at_time (unsigned int time_bin, unsigned int vertex_index, unsigned int direction_index)
 
__device__ unsigned int device_get_distance_index (unsigned int pmt_id, unsigned int vertex_block)
 
__device__ unsigned int device_get_time_index (unsigned int hit_index, unsigned int vertex_block)
 
void fill_correct_memory_on_device ()
 
void fill_directions_memory_on_device ()
 
void fill_tofs_memory_on_device ()
 
void fill_tofs_memory_on_device_nhits ()
 
unsigned int find_greatest_divisor (unsigned int n, unsigned int max)
 
void free_event_memories ()
 
void free_event_memories_nhits ()
 
void free_global_memories ()
 
unsigned int get_direction_index_at_angles (unsigned int iphi, unsigned int itheta)
 
unsigned int get_direction_index_at_pmt (unsigned int pmt_id, unsigned int vertex_index, unsigned int direction_index)
 
unsigned int get_direction_index_at_time (unsigned int time_bin, unsigned int vertex_index, unsigned int direction_index)
 
unsigned int get_distance_index (unsigned int pmt_id, unsigned int vertex_block)
 
unsigned int get_time_index (unsigned int hit_index, unsigned int vertex_block)
 
void initialize_output ()
 
void initialize_output_nhits ()
 
__global__ void kernel_find_vertex_with_max_npmts_and_center_of_mass_in_timebin (histogram_t *np, histogram_t *mnp, unsigned int *vmnp, unsigned int *nc, unsigned int *mnc)
 
__global__ void kernel_find_vertex_with_max_npmts_in_timebin (histogram_t *np, histogram_t *mnp, unsigned int *vmnp)
 
__global__ void kernel_find_vertex_with_max_npmts_in_timebin (histogram_t *np, histogram_t *mnp, unsigned int *vmnp, float *meanxin, float *meanyin, float *meanzin, float *meanxout, float *meanyout, float *meanzout)
 
__global__ void kernel_find_vertex_with_max_npmts_in_timebin_and_directionbin (unsigned int *np, histogram_t *mnp, unsigned int *vmnp)
 
void make_table_of_directions ()
 
void make_table_of_tofs ()
 
void make_test_vertices ()
 
void print_directions ()
 
void print_gpu_properties ()
 
void print_input ()
 
void print_parameters ()
 
void print_parameters_2d ()
 
void print_pmts ()
 
void print_times_of_flight ()
 
bool read_detector ()
 
bool read_input ()
 
unsigned int read_number_of_input_hits ()
 
unsigned int read_number_of_pmts ()
 
bool read_pmts ()
 
bool read_the_detector ()
 
bool read_the_input ()
 
bool read_the_input_ToolDAQ (std::vector< int > PMTid, std::vector< int > time)
 
bool read_the_input_ToolDAQ (std::vector< int > PMTids, std::vector< int > times, int *earliest_time)
 
bool read_the_pmts ()
 
void read_user_parameters ()
 
void read_user_parameters_nhits ()
 
float read_value_from_file (std::string paramname, std::string filename)
 
void separate_triggers_into_gates ()
 
void separate_triggers_into_gates (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)
 
bool set_input_file_for_event (int n)
 
void set_output_file ()
 
void set_output_file_nhits (unsigned int threshold)
 
void setup_threads_for_histo (unsigned int n)
 
void setup_threads_for_histo ()
 
void setup_threads_for_histo_iterated (bool last)
 
void setup_threads_for_histo_per (unsigned int n)
 
bool setup_threads_for_tof ()
 
bool setup_threads_for_tof_2d (unsigned int A, unsigned int B)
 
bool setup_threads_for_tof_biparallel ()
 
bool setup_threads_nhits ()
 
bool setup_threads_to_find_candidates ()
 
void start_c_clock ()
 
void start_cuda_clock ()
 
void start_total_cuda_clock ()
 
double stop_c_clock ()
 
double stop_cuda_clock ()
 
double stop_total_cuda_clock ()
 
float timedifference_msec (struct timeval t0, struct timeval t1)
 
void write_output ()
 
void write_output_nhits (unsigned int n)
 
void write_output_nhits (unsigned int *ntriggers)
 

Variables

std::vector< float > candidate_trigger_meanx_per_time_bin
 
std::vector< float > candidate_trigger_meany_per_time_bin
 
std::vector< float > candidate_trigger_meanz_per_time_bin
 
std::vector< unsigned int > candidate_trigger_npmts_in_cone_in_time_bin
 
std::vector< unsigned int > candidate_trigger_npmts_in_time_bin
 
std::vector< std::pair
< unsigned int, unsigned int > > 
candidate_trigger_pair_vertex_time
 
double cerenkov_angle_water
 
float cerenkov_costheta
 
float choose_candidates
 
double coalesce_time
 
__constant__ float constant_cerenkov_costheta
 
__constant__ float constant_costheta_cone_cut
 
__constant__ unsigned int constant_n_direction_bins
 
__constant__ unsigned int constant_n_direction_bins_phi
 
__constant__ unsigned int constant_n_direction_bins_theta
 
__constant__ unsigned int constant_n_hits
 
__constant__ unsigned int constant_n_PMTs
 
__constant__ unsigned int constant_n_test_vertices
 
__constant__ unsigned int constant_n_time_bins
 
__constant__ unsigned int constant_n_water_like_test_vertices
 
__constant__ bool constant_return_direction
 
__constant__ bool constant_select_based_on_cone
 
__constant__ offset_t constant_time_offset
 
__constant__ unsigned int constant_time_step_size
 
unsigned int correct_mode
 
float costheta_cone_cut
 
bool cylindrical_grid
 
double dark_rate
 
std::string detector_file
 
double detector_height
 detector More...
 
double detector_radius
 
bool * device_directions_for_vertex_and_pmt
 
float * device_dx_per_time_bin
 
float * device_dy_per_time_bin
 
float * device_dz_per_time_bin
 
unsigned int * device_ids
 
float * device_light_dr
 
float * device_light_dx
 
float * device_light_dy
 
float * device_light_dz
 
unsigned int * device_max_number_of_pmts_in_cone_in_time_bin
 
histogram_tdevice_max_number_of_pmts_in_time_bin
 
float * device_meanx_for_vertex_with_max_n_pmts_per_time_bin
 
float * device_meanx_per_time_bin
 
float * device_meany_for_vertex_with_max_n_pmts_per_time_bin
 
float * device_meany_per_time_bin
 
float * device_meanz_for_vertex_with_max_n_pmts_per_time_bin
 
float * device_meanz_per_time_bin
 
unsigned int * device_n_pmts_nhits
 
histogram_tdevice_n_pmts_per_time_bin
 
unsigned int * device_n_pmts_per_time_bin_and_direction_bin
 
unsigned int * device_number_of_pmts_in_cone_in_time_bin
 
float * device_PMTx
 
float * device_PMTy
 
float * device_PMTz
 
unsigned int * device_time_bin_of_hit
 
unsigned int * device_times
 
time_of_flight_tdevice_times_of_flight
 
unsigned int * device_vertex_with_max_n_pmts
 
double distance_between_vertices
 parameters More...
 
float elapsed_candidates_copy_host
 
float elapsed_candidates_kernel
 
float elapsed_candidates_memory_dev
 
float elapsed_coalesce
 
float elapsed_copy_dev
 
float elapsed_detector
 
float elapsed_directions
 
float elapsed_directions_copy_dev
 
float elapsed_free
 
float elapsed_gates
 
float elapsed_input
 
float elapsed_kernel_correct_times_and_get_n_pmts_per_time_bin
 
float elapsed_memory_candidates_host
 
float elapsed_memory_dev
 
float elapsed_memory_directions_dev
 
float elapsed_memory_tofs_dev
 
float elapsed_parameters
 
float elapsed_pmts
 
float elapsed_reset
 
float elapsed_threads
 
float elapsed_threads_candidates
 
float elapsed_tof
 
float elapsed_tofs_copy_dev
 
float elapsed_tofs_free
 
float elapsed_total
 
float elapsed_vertices
 
float elapsed_write_output
 
std::string event_file
 
std::string event_file_base
 
std::string event_file_suffix
 
std::vector< std::pair
< unsigned int, unsigned int > > 
final_trigger_pair_vertex_time
 
unsigned int greatest_divisor
 
unsigned int grid_size
 
bool * host_directions_for_vertex_and_pmt
 
unsigned int * host_ids
 
float * host_light_dr
 
float * host_light_dx
 
float * host_light_dy
 
float * host_light_dz
 
unsigned int * host_max_number_of_pmts_in_cone_in_time_bin
 
histogram_thost_max_number_of_pmts_in_time_bin
 
float * host_meanx_for_vertex_with_max_n_pmts_per_time_bin
 
float * host_meany_for_vertex_with_max_n_pmts_per_time_bin
 
float * host_meanz_for_vertex_with_max_n_pmts_per_time_bin
 
unsigned int * host_n_pmts_nhits
 
unsigned int * host_n_pmts_per_time_bin
 
float * host_PMTx
 
float * host_PMTy
 
float * host_PMTz
 
unsigned int * host_time_bin_of_hit
 
unsigned int * host_times
 
time_of_flight_thost_times_of_flight
 
unsigned int * host_vertex_with_max_n_pmts
 
int max_n_blocks
 
unsigned int max_n_hits_per_job
 
int max_n_threads_per_block
 
unsigned int n_direction_bins
 
unsigned int n_direction_bins_phi
 
unsigned int n_direction_bins_theta
 
int n_events
 
unsigned int n_hits
 
unsigned int n_PMTs
 pmts More...
 
unsigned int n_test_vertices
 vertices More...
 
unsigned int n_time_bins
 
unsigned int n_water_like_test_vertices
 
unsigned int nhits_threshold_max
 
unsigned int nhits_threshold_min
 
unsigned int nhits_window
 
unsigned int number_of_kernel_blocks
 threads More...
 
dim3 number_of_kernel_blocks_3d
 
unsigned int number_of_threads_per_block
 
dim3 number_of_threads_per_block_3d
 
std::string output_file
 
std::string output_file_base
 
std::vector< double > output_trigger_information
 
bool output_txt
 
double * PMT_x
 
double * PMT_y
 
double * PMT_z
 
std::string pmts_file
 
bool return_direction
 
bool return_vertex
 
bool select_based_on_cone
 
double speed_light_water
 
cudaEvent_t start
 
cudaEvent_t stop
 
struct timeval t0
 
struct timeval t1
 
texture< unsigned int,
1, cudaReadModeElementType > 
tex_ids
 
texture< float,
1, cudaReadModeElementType > 
tex_light_dr
 
texture< float,
1, cudaReadModeElementType > 
tex_light_dx
 
texture< float,
1, cudaReadModeElementType > 
tex_light_dy
 
texture< float,
1, cudaReadModeElementType > 
tex_light_dz
 
texture< float,
1, cudaReadModeElementType > 
tex_PMTx
 
texture< float,
1, cudaReadModeElementType > 
tex_PMTy
 
texture< float,
1, cudaReadModeElementType > 
tex_PMTz
 
texture< unsigned int,
1, cudaReadModeElementType > 
tex_times
 
texture< time_of_flight_t,
1, cudaReadModeElementType > 
tex_times_of_flight
 
unsigned int the_max_time
 
offset_t time_offset
 hits More...
 
unsigned int time_step_size
 
cudaEvent_t total_start
 
cudaEvent_t total_stop
 
double trigger_gate_down
 
double trigger_gate_up
 
std::vector< float > trigger_meanx_per_time_bin
 
std::vector< float > trigger_meany_per_time_bin
 
std::vector< float > trigger_meanz_per_time_bin
 
std::vector< unsigned int > trigger_npmts_in_cone_in_time_bin
 
std::vector< unsigned int > trigger_npmts_in_time_bin
 
std::vector< std::pair
< unsigned int, unsigned int > > 
trigger_pair_vertex_time
 
double twopi
 
bool use_timing
 
bool use_verbose
 
double * vertex_x
 
double * vertex_y
 
double * vertex_z
 
double wall_like_distance
 
unsigned int wall_like_threshold_number_of_pmts
 
unsigned int water_like_threshold_number_of_pmts
 
unsigned int write_output_mode
 

Typedef Documentation

typedef unsigned short histogram_t

Definition at line 27 of file library_daq.h.

typedef unsigned short offset_t

Definition at line 19 of file library_daq.h.

typedef unsigned short time_of_flight_t

Definition at line 35 of file library_daq.h.

Function Documentation

void allocate_candidates_memory_on_device ( )

Definition at line 1134 of file library_daq.h.

void allocate_candidates_memory_on_host ( )

Definition at line 1113 of file library_daq.h.

void allocate_correct_memory_on_device ( )

Definition at line 973 of file library_daq.h.

void allocate_correct_memory_on_device_nhits ( )

Definition at line 1081 of file library_daq.h.

void allocate_directions_memory_on_device ( )

Definition at line 957 of file library_daq.h.

void allocate_tofs_memory_on_device ( )

Definition at line 910 of file library_daq.h.

void check_cudamalloc_bool ( unsigned int  size)

Definition at line 2521 of file library_daq.h.

void check_cudamalloc_float ( unsigned int  size)

Definition at line 2460 of file library_daq.h.

void check_cudamalloc_int ( unsigned int  size)

Definition at line 2472 of file library_daq.h.

void check_cudamalloc_unsigned_char ( unsigned int  size)

Definition at line 2509 of file library_daq.h.

void check_cudamalloc_unsigned_int ( unsigned int  size)

Definition at line 2484 of file library_daq.h.

void check_cudamalloc_unsigned_short ( unsigned int  size)

Definition at line 2497 of file library_daq.h.

void choose_candidates_above_threshold ( )

Definition at line 2149 of file library_daq.h.

void coalesce_triggers ( )

Definition at line 1403 of file library_daq.h.

void copy_candidates_from_device_to_host ( )

Definition at line 2114 of file library_daq.h.

__device__ unsigned int device_get_direction_index_at_angles ( unsigned int  iphi,
unsigned int  itheta 
)

Definition at line 1746 of file library_daq.h.

__device__ unsigned int device_get_direction_index_at_pmt ( unsigned int  pmt_id,
unsigned int  vertex_index,
unsigned int  direction_index 
)

Definition at line 1736 of file library_daq.h.

__device__ unsigned int device_get_direction_index_at_time ( unsigned int  time_bin,
unsigned int  vertex_index,
unsigned int  direction_index 
)

Definition at line 1755 of file library_daq.h.

__device__ unsigned int device_get_distance_index ( unsigned int  pmt_id,
unsigned int  vertex_block 
)

Definition at line 1722 of file library_daq.h.

__device__ unsigned int device_get_time_index ( unsigned int  hit_index,
unsigned int  vertex_block 
)

Definition at line 1729 of file library_daq.h.

void fill_correct_memory_on_device ( )

Definition at line 1334 of file library_daq.h.

void fill_directions_memory_on_device ( )

Definition at line 1303 of file library_daq.h.

void fill_tofs_memory_on_device ( )

Definition at line 1257 of file library_daq.h.

void fill_tofs_memory_on_device_nhits ( )

Definition at line 1323 of file library_daq.h.

unsigned int find_greatest_divisor ( unsigned int  n,
unsigned int  max 
)

Definition at line 2533 of file library_daq.h.

void free_event_memories ( )

Definition at line 1983 of file library_daq.h.

void free_event_memories_nhits ( )

Definition at line 2046 of file library_daq.h.

void free_global_memories ( )

Definition at line 2062 of file library_daq.h.

unsigned int get_direction_index_at_angles ( unsigned int  iphi,
unsigned int  itheta 
)

Definition at line 1692 of file library_daq.h.

unsigned int get_direction_index_at_pmt ( unsigned int  pmt_id,
unsigned int  vertex_index,
unsigned int  direction_index 
)

Definition at line 1701 of file library_daq.h.

unsigned int get_direction_index_at_time ( unsigned int  time_bin,
unsigned int  vertex_index,
unsigned int  direction_index 
)

Definition at line 1711 of file library_daq.h.

unsigned int get_distance_index ( unsigned int  pmt_id,
unsigned int  vertex_block 
)

Definition at line 1678 of file library_daq.h.

unsigned int get_time_index ( unsigned int  hit_index,
unsigned int  vertex_block 
)

Definition at line 1685 of file library_daq.h.

void initialize_output ( )

Definition at line 2344 of file library_daq.h.

void initialize_output_nhits ( )

Definition at line 2351 of file library_daq.h.

__global__ void kernel_find_vertex_with_max_npmts_and_center_of_mass_in_timebin ( histogram_t np,
histogram_t mnp,
unsigned int *  vmnp,
unsigned int *  nc,
unsigned int *  mnc 
)

Definition at line 1895 of file library_daq.h.

__global__ void kernel_find_vertex_with_max_npmts_in_timebin ( histogram_t np,
histogram_t mnp,
unsigned int *  vmnp 
)

Definition at line 1818 of file library_daq.h.

__global__ void kernel_find_vertex_with_max_npmts_in_timebin ( histogram_t np,
histogram_t mnp,
unsigned int *  vmnp,
float *  meanxin,
float *  meanyin,
float *  meanzin,
float *  meanxout,
float *  meanyout,
float *  meanzout 
)

Definition at line 1853 of file library_daq.h.

__global__ void kernel_find_vertex_with_max_npmts_in_timebin_and_directionbin ( unsigned int *  np,
histogram_t mnp,
unsigned int *  vmnp 
)

Definition at line 1944 of file library_daq.h.

void make_table_of_directions ( )

Definition at line 1209 of file library_daq.h.

void make_table_of_tofs ( )

Definition at line 1165 of file library_daq.h.

void make_test_vertices ( )

Definition at line 470 of file library_daq.h.

void print_directions ( )

Definition at line 429 of file library_daq.h.

void print_gpu_properties ( )

Definition at line 1766 of file library_daq.h.

void print_input ( )

Definition at line 400 of file library_daq.h.

void print_parameters ( )

Definition at line 378 of file library_daq.h.

void print_parameters_2d ( )

Definition at line 389 of file library_daq.h.

void print_pmts ( )

Definition at line 407 of file library_daq.h.

void print_times_of_flight ( )

Definition at line 414 of file library_daq.h.

bool read_detector ( )

Definition at line 361 of file library_daq.h.

bool read_input ( )

Definition at line 323 of file library_daq.h.

unsigned int read_number_of_input_hits ( )

Definition at line 303 of file library_daq.h.

unsigned int read_number_of_pmts ( )

Definition at line 1358 of file library_daq.h.

bool read_pmts ( )

Definition at line 1378 of file library_daq.h.

bool read_the_detector ( )

Definition at line 461 of file library_daq.h.

bool read_the_input ( )

Definition at line 838 of file library_daq.h.

bool read_the_input_ToolDAQ ( std::vector< int >  PMTid,
std::vector< int >  time 
)
bool read_the_input_ToolDAQ ( std::vector< int >  PMTids,
std::vector< int >  times,
int *  earliest_time 
)

Definition at line 859 of file library_daq.h.

bool read_the_pmts ( )

Definition at line 446 of file library_daq.h.

void read_user_parameters ( )

Definition at line 2386 of file library_daq.h.

void read_user_parameters_nhits ( )

Definition at line 2428 of file library_daq.h.

float read_value_from_file ( std::string  paramname,
std::string  filename 
)

Definition at line 2360 of file library_daq.h.

void separate_triggers_into_gates ( )

Definition at line 1514 of file library_daq.h.

void separate_triggers_into_gates ( 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 
)

Definition at line 1564 of file library_daq.h.

bool set_input_file_for_event ( int  n)

Definition at line 2204 of file library_daq.h.

void set_output_file ( )

Definition at line 2219 of file library_daq.h.

void set_output_file_nhits ( unsigned int  threshold)

Definition at line 2232 of file library_daq.h.

void setup_threads_for_histo ( unsigned int  n)

Definition at line 2570 of file library_daq.h.

void setup_threads_for_histo ( )

Definition at line 2580 of file library_daq.h.

void setup_threads_for_histo_iterated ( bool  last)

Definition at line 2590 of file library_daq.h.

void setup_threads_for_histo_per ( unsigned int  n)

Definition at line 2601 of file library_daq.h.

bool setup_threads_for_tof ( )

Definition at line 715 of file library_daq.h.

bool setup_threads_for_tof_2d ( unsigned int  A,
unsigned int  B 
)

Definition at line 761 of file library_daq.h.

bool setup_threads_for_tof_biparallel ( )

Definition at line 738 of file library_daq.h.

bool setup_threads_nhits ( )

Definition at line 822 of file library_daq.h.

bool setup_threads_to_find_candidates ( )

Definition at line 809 of file library_daq.h.

void start_c_clock ( )

Definition at line 1647 of file library_daq.h.

void start_cuda_clock ( )

Definition at line 1655 of file library_daq.h.

void start_total_cuda_clock ( )

Definition at line 1666 of file library_daq.h.

double stop_c_clock ( )

Definition at line 1651 of file library_daq.h.

double stop_cuda_clock ( )

Definition at line 1659 of file library_daq.h.

double stop_total_cuda_clock ( )

Definition at line 1670 of file library_daq.h.

float timedifference_msec ( struct timeval  t0,
struct timeval  t1 
)

Definition at line 1641 of file library_daq.h.

void write_output ( )

Definition at line 2266 of file library_daq.h.

void write_output_nhits ( unsigned int  n)
void write_output_nhits ( unsigned int *  ntriggers)

Definition at line 2245 of file library_daq.h.

Variable Documentation

std::vector<float> candidate_trigger_meanx_per_time_bin

Definition at line 161 of file library_daq.h.

std::vector<float> candidate_trigger_meany_per_time_bin

Definition at line 162 of file library_daq.h.

std::vector<float> candidate_trigger_meanz_per_time_bin

Definition at line 163 of file library_daq.h.

std::vector<unsigned int> candidate_trigger_npmts_in_cone_in_time_bin

Definition at line 155 of file library_daq.h.

std::vector<unsigned int> candidate_trigger_npmts_in_time_bin

Definition at line 154 of file library_daq.h.

std::vector<std::pair<unsigned int,unsigned int> > candidate_trigger_pair_vertex_time

Definition at line 153 of file library_daq.h.

double cerenkov_angle_water

Definition at line 120 of file library_daq.h.

float cerenkov_costheta

Definition at line 121 of file library_daq.h.

float choose_candidates

Definition at line 204 of file library_daq.h.

double coalesce_time

Definition at line 51 of file library_daq.h.

__constant__ float constant_cerenkov_costheta

Definition at line 122 of file library_daq.h.

__constant__ float constant_costheta_cone_cut

Definition at line 57 of file library_daq.h.

__constant__ unsigned int constant_n_direction_bins

Definition at line 92 of file library_daq.h.

__constant__ unsigned int constant_n_direction_bins_phi

Definition at line 90 of file library_daq.h.

__constant__ unsigned int constant_n_direction_bins_theta

Definition at line 88 of file library_daq.h.

__constant__ unsigned int constant_n_hits

Definition at line 94 of file library_daq.h.

__constant__ unsigned int constant_n_PMTs

Definition at line 68 of file library_daq.h.

__constant__ unsigned int constant_n_test_vertices

Definition at line 73 of file library_daq.h.

__constant__ unsigned int constant_n_time_bins

Definition at line 86 of file library_daq.h.

__constant__ unsigned int constant_n_water_like_test_vertices

Definition at line 74 of file library_daq.h.

__constant__ bool constant_return_direction

Definition at line 62 of file library_daq.h.

__constant__ bool constant_select_based_on_cone

Definition at line 59 of file library_daq.h.

__constant__ offset_t constant_time_offset

Definition at line 84 of file library_daq.h.

__constant__ unsigned int constant_time_step_size

Definition at line 47 of file library_daq.h.

unsigned int correct_mode

Definition at line 174 of file library_daq.h.

float costheta_cone_cut

Definition at line 56 of file library_daq.h.

bool cylindrical_grid

Definition at line 124 of file library_daq.h.

double dark_rate

Definition at line 55 of file library_daq.h.

std::string detector_file

Definition at line 198 of file library_daq.h.

double detector_height

detector

Definition at line 64 of file library_daq.h.

double detector_radius

Definition at line 65 of file library_daq.h.

bool* device_directions_for_vertex_and_pmt

Definition at line 141 of file library_daq.h.

float* device_dx_per_time_bin

Definition at line 110 of file library_daq.h.

float* device_dy_per_time_bin

Definition at line 111 of file library_daq.h.

float* device_dz_per_time_bin

Definition at line 112 of file library_daq.h.

unsigned int* device_ids

Definition at line 96 of file library_daq.h.

float* device_light_dr

Definition at line 133 of file library_daq.h.

float* device_light_dx

Definition at line 127 of file library_daq.h.

float* device_light_dy

Definition at line 129 of file library_daq.h.

float* device_light_dz

Definition at line 131 of file library_daq.h.

unsigned int* device_max_number_of_pmts_in_cone_in_time_bin

Definition at line 183 of file library_daq.h.

histogram_t* device_max_number_of_pmts_in_time_bin

Definition at line 178 of file library_daq.h.

float* device_meanx_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 184 of file library_daq.h.

float* device_meanx_per_time_bin

Definition at line 113 of file library_daq.h.

float* device_meany_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 185 of file library_daq.h.

float* device_meany_per_time_bin

Definition at line 114 of file library_daq.h.

float* device_meanz_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 186 of file library_daq.h.

float* device_meanz_per_time_bin

Definition at line 115 of file library_daq.h.

unsigned int* device_n_pmts_nhits

Definition at line 107 of file library_daq.h.

histogram_t* device_n_pmts_per_time_bin

Definition at line 105 of file library_daq.h.

unsigned int* device_n_pmts_per_time_bin_and_direction_bin

Definition at line 109 of file library_daq.h.

unsigned int* device_number_of_pmts_in_cone_in_time_bin

Definition at line 181 of file library_daq.h.

float* device_PMTx

Definition at line 135 of file library_daq.h.

float* device_PMTy

Definition at line 137 of file library_daq.h.

float* device_PMTz

Definition at line 139 of file library_daq.h.

unsigned int* device_time_bin_of_hit

Definition at line 103 of file library_daq.h.

unsigned int* device_times

Definition at line 99 of file library_daq.h.

time_of_flight_t* device_times_of_flight

Definition at line 125 of file library_daq.h.

unsigned int* device_vertex_with_max_n_pmts

Definition at line 180 of file library_daq.h.

double distance_between_vertices

parameters

Definition at line 44 of file library_daq.h.

float elapsed_candidates_copy_host

Definition at line 204 of file library_daq.h.

float elapsed_candidates_kernel

Definition at line 204 of file library_daq.h.

float elapsed_candidates_memory_dev

Definition at line 204 of file library_daq.h.

float elapsed_coalesce

Definition at line 204 of file library_daq.h.

float elapsed_copy_dev

Definition at line 204 of file library_daq.h.

float elapsed_detector

Definition at line 204 of file library_daq.h.

float elapsed_directions

Definition at line 204 of file library_daq.h.

float elapsed_directions_copy_dev

Definition at line 204 of file library_daq.h.

float elapsed_free

Definition at line 204 of file library_daq.h.

float elapsed_gates

Definition at line 204 of file library_daq.h.

float elapsed_input

Definition at line 204 of file library_daq.h.

float elapsed_kernel_correct_times_and_get_n_pmts_per_time_bin

Definition at line 204 of file library_daq.h.

float elapsed_memory_candidates_host

Definition at line 204 of file library_daq.h.

float elapsed_memory_dev

Definition at line 204 of file library_daq.h.

float elapsed_memory_directions_dev

Definition at line 204 of file library_daq.h.

float elapsed_memory_tofs_dev

Definition at line 204 of file library_daq.h.

float elapsed_parameters

Definition at line 204 of file library_daq.h.

float elapsed_pmts

Definition at line 204 of file library_daq.h.

float elapsed_reset

Definition at line 204 of file library_daq.h.

float elapsed_threads

Definition at line 204 of file library_daq.h.

float elapsed_threads_candidates

Definition at line 204 of file library_daq.h.

float elapsed_tof

Definition at line 204 of file library_daq.h.

float elapsed_tofs_copy_dev

Definition at line 204 of file library_daq.h.

float elapsed_tofs_free

Definition at line 204 of file library_daq.h.

float elapsed_total

Definition at line 204 of file library_daq.h.

float elapsed_vertices

Definition at line 204 of file library_daq.h.

float elapsed_write_output

Definition at line 204 of file library_daq.h.

std::string event_file

Definition at line 197 of file library_daq.h.

std::string event_file_base

Definition at line 201 of file library_daq.h.

std::string event_file_suffix

Definition at line 202 of file library_daq.h.

std::vector<std::pair<unsigned int,unsigned int> > final_trigger_pair_vertex_time

Definition at line 159 of file library_daq.h.

unsigned int greatest_divisor

Definition at line 210 of file library_daq.h.

unsigned int grid_size

Definition at line 81 of file library_daq.h.

bool* host_directions_for_vertex_and_pmt

Definition at line 142 of file library_daq.h.

unsigned int* host_ids

Definition at line 95 of file library_daq.h.

float* host_light_dr

Definition at line 134 of file library_daq.h.

float* host_light_dx

Definition at line 128 of file library_daq.h.

float* host_light_dy

Definition at line 130 of file library_daq.h.

float* host_light_dz

Definition at line 132 of file library_daq.h.

unsigned int* host_max_number_of_pmts_in_cone_in_time_bin

Definition at line 182 of file library_daq.h.

histogram_t* host_max_number_of_pmts_in_time_bin

Definition at line 177 of file library_daq.h.

float* host_meanx_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 187 of file library_daq.h.

float* host_meany_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 188 of file library_daq.h.

float* host_meanz_for_vertex_with_max_n_pmts_per_time_bin

Definition at line 189 of file library_daq.h.

unsigned int* host_n_pmts_nhits

Definition at line 108 of file library_daq.h.

unsigned int* host_n_pmts_per_time_bin

Definition at line 106 of file library_daq.h.

float* host_PMTx

Definition at line 136 of file library_daq.h.

float* host_PMTy

Definition at line 138 of file library_daq.h.

float* host_PMTz

Definition at line 140 of file library_daq.h.

unsigned int* host_time_bin_of_hit

Definition at line 102 of file library_daq.h.

unsigned int* host_times

Definition at line 98 of file library_daq.h.

time_of_flight_t* host_times_of_flight

Definition at line 126 of file library_daq.h.

unsigned int* host_vertex_with_max_n_pmts

Definition at line 179 of file library_daq.h.

int max_n_blocks

Definition at line 192 of file library_daq.h.

unsigned int max_n_hits_per_job

Definition at line 54 of file library_daq.h.

int max_n_threads_per_block

Definition at line 191 of file library_daq.h.

unsigned int n_direction_bins

Definition at line 91 of file library_daq.h.

unsigned int n_direction_bins_phi

Definition at line 89 of file library_daq.h.

unsigned int n_direction_bins_theta

Definition at line 87 of file library_daq.h.

int n_events

Definition at line 213 of file library_daq.h.

unsigned int n_hits

Definition at line 93 of file library_daq.h.

unsigned int n_PMTs

pmts

Definition at line 67 of file library_daq.h.

unsigned int n_test_vertices

vertices

Definition at line 71 of file library_daq.h.

unsigned int n_time_bins

Definition at line 85 of file library_daq.h.

unsigned int n_water_like_test_vertices

Definition at line 72 of file library_daq.h.

unsigned int nhits_threshold_max

Definition at line 50 of file library_daq.h.

unsigned int nhits_threshold_min

Definition at line 50 of file library_daq.h.

unsigned int nhits_window

Definition at line 212 of file library_daq.h.

unsigned int number_of_kernel_blocks

threads

Definition at line 77 of file library_daq.h.

dim3 number_of_kernel_blocks_3d

Definition at line 78 of file library_daq.h.

unsigned int number_of_threads_per_block

Definition at line 79 of file library_daq.h.

dim3 number_of_threads_per_block_3d

Definition at line 80 of file library_daq.h.

std::string output_file

Definition at line 200 of file library_daq.h.

std::string output_file_base

Definition at line 203 of file library_daq.h.

std::vector<double> output_trigger_information

Definition at line 160 of file library_daq.h.

bool output_txt

Definition at line 173 of file library_daq.h.

double* PMT_x

Definition at line 69 of file library_daq.h.

double * PMT_y

Definition at line 69 of file library_daq.h.

double * PMT_z

Definition at line 69 of file library_daq.h.

std::string pmts_file

Definition at line 199 of file library_daq.h.

bool return_direction

Definition at line 61 of file library_daq.h.

bool return_vertex

Definition at line 60 of file library_daq.h.

bool select_based_on_cone

Definition at line 58 of file library_daq.h.

double speed_light_water

Definition at line 119 of file library_daq.h.

cudaEvent_t start

Definition at line 171 of file library_daq.h.

cudaEvent_t stop

Definition at line 171 of file library_daq.h.

struct timeval t0

Definition at line 168 of file library_daq.h.

struct timeval t1

Definition at line 169 of file library_daq.h.

texture<unsigned int, 1, cudaReadModeElementType> tex_ids

Definition at line 97 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_light_dr

Definition at line 147 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_light_dx

Definition at line 144 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_light_dy

Definition at line 145 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_light_dz

Definition at line 146 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_PMTx

Definition at line 148 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_PMTy

Definition at line 149 of file library_daq.h.

texture<float, 1, cudaReadModeElementType> tex_PMTz

Definition at line 150 of file library_daq.h.

texture<unsigned int, 1, cudaReadModeElementType> tex_times

Definition at line 100 of file library_daq.h.

texture<time_of_flight_t, 1, cudaReadModeElementType> tex_times_of_flight

Definition at line 143 of file library_daq.h.

unsigned int the_max_time

Definition at line 211 of file library_daq.h.

offset_t time_offset

hits

Definition at line 83 of file library_daq.h.

unsigned int time_step_size

Definition at line 46 of file library_daq.h.

cudaEvent_t total_start

Definition at line 171 of file library_daq.h.

cudaEvent_t total_stop

Definition at line 171 of file library_daq.h.

double trigger_gate_down

Definition at line 53 of file library_daq.h.

double trigger_gate_up

Definition at line 52 of file library_daq.h.

std::vector<float> trigger_meanx_per_time_bin

Definition at line 164 of file library_daq.h.

std::vector<float> trigger_meany_per_time_bin

Definition at line 165 of file library_daq.h.

std::vector<float> trigger_meanz_per_time_bin

Definition at line 166 of file library_daq.h.

std::vector<unsigned int> trigger_npmts_in_cone_in_time_bin

Definition at line 158 of file library_daq.h.

std::vector<unsigned int> trigger_npmts_in_time_bin

Definition at line 157 of file library_daq.h.

std::vector<std::pair<unsigned int,unsigned int> > trigger_pair_vertex_time

Definition at line 156 of file library_daq.h.

double twopi

Definition at line 123 of file library_daq.h.

bool use_timing

Definition at line 195 of file library_daq.h.

bool use_verbose

Definition at line 194 of file library_daq.h.

double* vertex_x

Definition at line 75 of file library_daq.h.

double * vertex_y

Definition at line 75 of file library_daq.h.

double * vertex_z

Definition at line 75 of file library_daq.h.

double wall_like_distance

Definition at line 45 of file library_daq.h.

unsigned int wall_like_threshold_number_of_pmts

Definition at line 49 of file library_daq.h.

unsigned int water_like_threshold_number_of_pmts

Definition at line 48 of file library_daq.h.

unsigned int write_output_mode

Definition at line 175 of file library_daq.h.