AlcapDAQ
1
|
#include <stdio.h>
#include <stdlib.h>
#include "midas.h"
#include "TH1.h"
#include "TH2.h"
#include "common.h"
Go to the source code of this file.
Functions | |
INT | MCaenCompProcessRaw_init (void) |
INT | MCaenCompProcessRaw (EVENT_HEADER *, void *) |
void | double_stream_size (channel_hit **output_bank_handle, int *output_bank_size) |
void | sort_hits (int num_hits, channel_hit *hits) |
INT | merge_hits (int num_streams, int *num_hits, channel_hit **hits, channel_hit *output) |
INT | make_caen (int caen, void *pevent, channel_hit **output_bank_handle, int *output_bank_size, bool *bad_block, caen_hit *caen_trailing_hits, int *num_caen_trailing_hits) |
void | init_caen_histograms (int caen) |
INT | make_comp (int comp, void *pevent, channel_hit **output_bank_handle, int *output_bank_size, bool *bad_block) |
void | init_comp_histograms (int comp) |
int | hits_compare (const void *p1, const void *p2) |
void double_stream_size | ( | channel_hit ** | output_bank_handle, |
int * | output_bank_size | ||
) |
int hits_compare | ( | const void * | p1, |
const void * | p2 | ||
) |
Definition at line 284 of file MCaenCompProcessRaw.cpp.
References channel_hit::time.
Referenced by sort_hits().
void init_caen_histograms | ( | int | caen) |
Definition at line 543 of file MCaenCompProcessRaw.cpp.
References caen, caen_histograms_inited, hCaenErrorDAQ, hCaenErrorDAQ_TDCInfo, hCaenErrorEOB, hCaenErrorTrailingEdgeBlockLimit, hCaenErrorTrailingEdgeStreamLimit, hCaenLastTime, hCaenLeadingEdges32BitInterpolator, hCaenLeadingEdges32BitInterpolatorNoRollover, hCaenLeadingEdgesByBlock, hCaenLeadingEdgesByChannel, hCaenTrailingEdgesByBlock, hCaenTrailingEdgesByChannel, kMaxEvents, kNumCaenChannels, sprintf(), and title.
Referenced by make_caen().
void init_comp_histograms | ( | int | comp) |
Definition at line 742 of file MCaenCompProcessRaw.cpp.
References comp_histograms_inited, hCompBackwards, hCompBackwardsLimit, hCompErrorStreamLimit, hCompLastTime, kMaxEvents, sprintf(), and title.
Referenced by make_comp().
INT make_caen | ( | int | caen, |
void * | pevent, | ||
channel_hit ** | output_bank_handle, | ||
int * | output_bank_size, | ||
bool * | bad_block, | ||
caen_hit * | caen_trailing_hits, | ||
int * | num_caen_trailing_hits | ||
) |
Definition at line 367 of file MCaenCompProcessRaw.cpp.
References bank_name, caen, caen_hit::caen, caen_clock_period, caen_histograms_inited, caen_wiring_map, channel, caen_word::channel, double_stream_size(), hCaenErrorDAQ, hCaenErrorDAQ_TDCInfo, hCaenErrorEOB, hCaenErrorTrailingEdgeBlockLimit, hCaenErrorTrailingEdgeStreamLimit, hCaenLastTime, hCaenLeadingEdges32BitInterpolator, hCaenLeadingEdges32BitInterpolatorNoRollover, hCaenLeadingEdgesByBlock, hCaenLeadingEdgesByChannel, hCaenTrailingEdgesByBlock, hCaenTrailingEdgesByChannel, init_caen_histograms(), kCaenTrailingEdgeLimit, max_caen_trailing_hits, parameter, channel_hit::parameter, sort_hits(), sprintf(), time, caen_hit::time, caen_word::time, and channel_hit::time.
Referenced by MCaenCompProcessRaw().
INT make_comp | ( | int | comp, |
void * | pevent, | ||
channel_hit ** | output_bank_handle, | ||
int * | output_bank_size, | ||
bool * | bad_block | ||
) |
Definition at line 612 of file MCaenCompProcessRaw.cpp.
References comp_word::a, comp_word::b, bank_name, comp_clock_period, comp_histograms_inited, comp_wiring_map, double_stream_size(), comp_word::fpga, hCompBackwards, hCompBackwardsLimit, hCompLastTime, i, init_comp_histograms(), kMaxCompFpgas, channel_hit::parameter, comp_word::r1, sort_hits(), sprintf(), time, channel_hit::time, comp_word::time, and comp_word::word.
Referenced by MCaenCompProcessRaw().
INT MCaenCompProcessRaw | ( | EVENT_HEADER * | pheader, |
void * | pevent | ||
) |
Definition at line 211 of file MCaenCompProcessRaw.cpp.
References caen, caen_hit::caen, hCaenErrorBlocksSkipped, hCompErrorBlocksSkipped, kMaxCaens, kMaxComps, make_caen(), make_comp(), max_streams, merge_hits(), SUCCESS, temp_hits_size, and caen_hit::time.
INT MCaenCompProcessRaw_init | ( | void | ) |
Definition at line 102 of file MCaenCompProcessRaw.cpp.
References caen, caen_clock_period, caen_histograms_inited, caen_wiring_map, comp_clock_period, comp_histograms_inited, comp_wiring_map, crate, hCaenErrorBlocksSkipped, hCompErrorBlocksSkipped, hDB, hKey, initial_stream_size, kMaxCaens, kMaxCompFpgas, kMaxComps, kMaxCrates, kMaxEvents, kNumCaenChannels, kNumCompFpgaChannels, max_caen_trailing_hits, max_streams, size, sprintf(), SUCCESS, temp_hits_size, and title.
INT merge_hits | ( | int | num_streams, |
int * | num_hits, | ||
channel_hit ** | hits, | ||
channel_hit * | output | ||
) |
Definition at line 333 of file MCaenCompProcessRaw.cpp.
References i, time, and channel_hit::time.
Referenced by MCaenCompProcessRaw().
void sort_hits | ( | int | num_hits, |
channel_hit * | hits | ||
) |
Definition at line 298 of file MCaenCompProcessRaw.cpp.
References hits_compare().
Referenced by make_caen(), and make_comp().
double beam_rate |
Definition at line 66 of file MCaenCompProcessRaw.cpp.
double caen_clock_period[kMaxCaens] |
Definition at line 36 of file MCaenCompProcessRaw.cpp.
Referenced by make_caen(), and MCaenCompProcessRaw_init().
bool caen_histograms_inited[kMaxCaens] |
Definition at line 44 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), make_caen(), and MCaenCompProcessRaw_init().
caen_hit* caen_trailing_hits |
Definition at line 42 of file MCaenCompProcessRaw.cpp.
int caen_wiring_map[kNumCaenChannels][kMaxCaens] |
Definition at line 38 of file MCaenCompProcessRaw.cpp.
Referenced by make_caen(), and MCaenCompProcessRaw_init().
double comp_clock_period[kMaxComps] |
Definition at line 37 of file MCaenCompProcessRaw.cpp.
Referenced by make_comp(), and MCaenCompProcessRaw_init().
bool comp_histograms_inited[kMaxCaens] |
Definition at line 59 of file MCaenCompProcessRaw.cpp.
Referenced by init_comp_histograms(), make_comp(), and MCaenCompProcessRaw_init().
int comp_wiring_map[kNumCompFpgaChannels][kMaxCompFpgas][kMaxComps] |
Definition at line 39 of file MCaenCompProcessRaw.cpp.
Referenced by make_comp(), and MCaenCompProcessRaw_init().
|
static |
Definition at line 45 of file MCaenCompProcessRaw.cpp.
Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().
|
static |
Definition at line 46 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 47 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 48 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 50 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 49 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 57 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 53 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 54 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 52 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 51 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 56 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 55 of file MCaenCompProcessRaw.cpp.
Referenced by init_caen_histograms(), and make_caen().
|
static |
Definition at line 62 of file MCaenCompProcessRaw.cpp.
Referenced by init_comp_histograms(), and make_comp().
|
static |
Definition at line 63 of file MCaenCompProcessRaw.cpp.
Referenced by init_comp_histograms(), and make_comp().
|
static |
Definition at line 60 of file MCaenCompProcessRaw.cpp.
Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().
|
static |
Definition at line 61 of file MCaenCompProcessRaw.cpp.
Referenced by init_comp_histograms().
|
static |
Definition at line 64 of file MCaenCompProcessRaw.cpp.
Referenced by init_comp_histograms(), and make_comp().
HNDLE hDB |
Definition at line 11 of file mucap_compress.cpp.
const int initial_stream_size = 1024 |
Definition at line 33 of file MCaenCompProcessRaw.cpp.
Referenced by MCaenCompProcessRaw_init().
const int max_caen_trailing_hits = 64*1024 |
Definition at line 34 of file MCaenCompProcessRaw.cpp.
Referenced by make_caen(), and MCaenCompProcessRaw_init().
Definition at line 32 of file MCaenCompProcessRaw.cpp.
Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().
ANA_MODULE MCaenCompProcessRaw_module |
Definition at line 87 of file MCaenCompProcessRaw.cpp.
channel_hit* temp_hits[max_streams] |
Definition at line 40 of file MCaenCompProcessRaw.cpp.
int temp_hits_size[max_streams] |
Definition at line 41 of file MCaenCompProcessRaw.cpp.
Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().