ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
CUDA_Core.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <vector>
#include <helper_cuda.h>
#include <sys/time.h>
#include <library_daq.h>

Go to the source code of this file.

Functions

__device__ float get_light_dr_for_vertex_and_hit (unsigned int vertex_index, unsigned int hit_index)
 
__device__ float get_light_dx_for_vertex_and_hit (unsigned int vertex_index, unsigned int hit_index)
 
__device__ float get_light_dy_for_vertex_and_hit (unsigned int vertex_index, unsigned int hit_index)
 
__device__ float get_light_dz_for_vertex_and_hit (unsigned int vertex_index, unsigned int hit_index)
 
__device__ float get_PMTx_for_hit (unsigned int hit_index)
 
__device__ float get_PMTy_for_hit (unsigned int hit_index)
 
__device__ float get_PMTz_for_hit (unsigned int hit_index)
 
__device__ int get_time_bin ()
 
__device__ int get_time_bin_for_vertex_and_hit (unsigned int vertex_index, unsigned int hit_index)
 
__global__ void kernel_correct_times (unsigned int *ct)
 
__global__ void kernel_correct_times_and_get_histo_and_mean_position_per_vertex_shared (unsigned int *ct, float *meanx, float *meany, float *meanz)
 
__global__ void kernel_correct_times_and_get_histo_per_vertex_shared (unsigned int *ct)
 
__global__ void kernel_correct_times_and_get_histo_per_vertex_shared (histogram_t *ct, unsigned int *times, unsigned int *ids, unsigned short *times_of_flight, unsigned int const_n_test_vertices, unsigned int const_n_time_bins, unsigned int const_n_hits, unsigned int const_n_PMTs, offset_t const_time_offset, unsigned int const_time_step_size)
 
__global__ void kernel_correct_times_and_get_n_pmts_per_time_bin (histogram_t *ct)
 
__global__ void kernel_correct_times_and_get_n_pmts_per_time_bin_and_direction_bin (unsigned int *ct, bool *dirs)
 
__global__ void kernel_correct_times_calculate_averages_and_get_histo_per_vertex_shared (histogram_t *ct, float *dx, float *dy, float *dz, unsigned int *ncone)
 
__global__ void kernel_histo_iterated (unsigned int *ct, histogram_t *histo, unsigned int offset)
 
__global__ void kernel_histo_one_thread_one_vertex (unsigned int *ct, histogram_t *histo)
 
__global__ void kernel_histo_per_vertex (unsigned int *ct, histogram_t *histo)
 
__global__ void kernel_histo_per_vertex_shared (unsigned int *ct, histogram_t *histo)
 
__global__ void kernel_histo_stride (unsigned int *ct, histogram_t *histo)
 
__global__ void kernel_histo_stride_2d (unsigned int *ct, histogram_t *histo)
 
__global__ void kernel_nhits (unsigned int *ct, unsigned int start_time, unsigned int nhits_window)
 

Function Documentation

__device__ float get_light_dr_for_vertex_and_hit ( unsigned int  vertex_index,
unsigned int  hit_index 
)
__device__ float get_light_dx_for_vertex_and_hit ( unsigned int  vertex_index,
unsigned int  hit_index 
)
__device__ float get_light_dy_for_vertex_and_hit ( unsigned int  vertex_index,
unsigned int  hit_index 
)
__device__ float get_light_dz_for_vertex_and_hit ( unsigned int  vertex_index,
unsigned int  hit_index 
)
__device__ float get_PMTx_for_hit ( unsigned int  hit_index)
__device__ float get_PMTy_for_hit ( unsigned int  hit_index)
__device__ float get_PMTz_for_hit ( unsigned int  hit_index)
__device__ int get_time_bin ( )
__device__ int get_time_bin_for_vertex_and_hit ( unsigned int  vertex_index,
unsigned int  hit_index 
)
__global__ void kernel_correct_times ( unsigned int *  ct)
__global__ void kernel_correct_times_and_get_histo_and_mean_position_per_vertex_shared ( unsigned int *  ct,
float *  meanx,
float *  meany,
float *  meanz 
)
__global__ void kernel_correct_times_and_get_histo_per_vertex_shared ( unsigned int *  ct)
__global__ void kernel_correct_times_and_get_histo_per_vertex_shared ( histogram_t ct,
unsigned int *  times,
unsigned int *  ids,
unsigned short *  times_of_flight,
unsigned int  const_n_test_vertices,
unsigned int  const_n_time_bins,
unsigned int  const_n_hits,
unsigned int  const_n_PMTs,
offset_t  const_time_offset,
unsigned int  const_time_step_size 
)
__global__ void kernel_correct_times_and_get_n_pmts_per_time_bin ( histogram_t ct)
__global__ void kernel_correct_times_and_get_n_pmts_per_time_bin_and_direction_bin ( unsigned int *  ct,
bool *  dirs 
)
__global__ void kernel_correct_times_calculate_averages_and_get_histo_per_vertex_shared ( histogram_t ct,
float *  dx,
float *  dy,
float *  dz,
unsigned int *  ncone 
)
__global__ void kernel_histo_iterated ( unsigned int *  ct,
histogram_t histo,
unsigned int  offset 
)
__global__ void kernel_histo_one_thread_one_vertex ( unsigned int *  ct,
histogram_t histo 
)
__global__ void kernel_histo_per_vertex ( unsigned int *  ct,
histogram_t histo 
)
__global__ void kernel_histo_per_vertex_shared ( unsigned int *  ct,
histogram_t histo 
)
__global__ void kernel_histo_stride ( unsigned int *  ct,
histogram_t histo 
)
__global__ void kernel_histo_stride_2d ( unsigned int *  ct,
histogram_t histo 
)
__global__ void kernel_nhits ( unsigned int *  ct,
unsigned int  start_time,
unsigned int  nhits_window 
)