AlcapDAQ
1
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <endian.h>
#include <byteswap.h>
#include <ctype.h>
#include "midas.h"
#include <zlib.h>
#include "mucap_structures.h"
#include "mucap_compress.h"
Go to the source code of this file.
Macros | |
#define | le32_to_cpu(i) (i) |
Typedefs | |
typedef int(* | comp_fcn )(void *input, int input_size, unsigned char *output, int userParam) |
typedef int(* | expand_fcn )(unsigned char *input, int input_size, void *output, int userParam) |
Functions | |
int | read_midas_event (FILE *fp, char *pevent) |
void | compress_bank (void *input_data, int input_size, void *output_event, char *output_name, comp_fcn f, int userParam) |
void | compress_event (void *input_event, void *output_event, bool USE_OLD_COMPRESSION) |
void | compress_event_skim (void *input_event, void *output_event, bool keep_etc, bool USE_OLD_COMPRESSION) |
void | expand_bank (unsigned char *input_data, int input_size, void *output_event, char *output_name, expand_fcn f, int userParam) |
void | expand_event (void *input_event, void *output_event, bool USE_OLD_COMPRESSION) |
void | compress_load_all (bool USE_OLD_COMPRESSION) |
void | compress_optimize_all (bool USE_OLD_COMPRESSION) |
void | compress_optimize_skim () |
Variables | |
static int | verbose = 0 |
Definition at line 16 of file overall.cpp.
Referenced by read_midas_event().
typedef int(* comp_fcn)(void *input, int input_size, unsigned char *output, int userParam) |
Definition at line 44 of file overall.cpp.
typedef int(* expand_fcn)(unsigned char *input, int input_size, void *output, int userParam) |
Definition at line 253 of file overall.cpp.
void compress_bank | ( | void * | input_data, |
int | input_size, | ||
void * | output_event, | ||
char * | output_name, | ||
comp_fcn | f, | ||
int | userParam | ||
) |
Definition at line 46 of file overall.cpp.
References printf(), and verbose.
Referenced by compress_event(), and compress_event_skim().
void compress_event | ( | void * | input_event, |
void * | output_event, | ||
bool | USE_OLD_COMPRESSION | ||
) |
Definition at line 69 of file overall.cpp.
References caen_compress(), cmp_compress(), compress_bank(), fadc_compress(), n2fadc_ndet_compress(), n2fadc_tpc_compress(), nfadc_compress(), printf(), should_compress_caen, should_compress_comp, should_compress_fadc, should_compress_n2fadc_ndet, should_compress_n2fadc_tpc, should_compress_nfadc, should_compress_tdc400, sprintf(), and tdc400_compress().
Referenced by eb_user(), and main().
void compress_event_skim | ( | void * | input_event, |
void * | output_event, | ||
bool | keep_etc, | ||
bool | USE_OLD_COMPRESSION | ||
) |
Definition at line 160 of file overall.cpp.
References compress_bank(), fadc_compress(), hits_compress(), n2fadc_ndet_compress(), n2fadc_tpc_compress(), nfadc_compress(), should_compress_n2fadc_ndet, should_compress_n2fadc_tpc, should_compress_nfadc, sprintf(), and stck_compress().
void compress_load_all | ( | bool | USE_OLD_COMPRESSION) |
Definition at line 373 of file overall.cpp.
References caen_load(), comp_load(), fadc_load(), hits_load(), n2fadc_ndet_load(), n2fadc_tpc_load(), nfadc_load(), stck_load(), and tdc400_load().
Referenced by eb_begin_of_run(), main(), MUnCompressRawData_init(), and process_file().
void compress_optimize_all | ( | bool | USE_OLD_COMPRESSION) |
Definition at line 390 of file overall.cpp.
References caen_optimize(), comp_optimize(), fadc_optimize(), n2fadc_ndet_optimize(), n2fadc_tpc_optimize(), nfadc_optimize(), and tdc400_optimize().
Referenced by main().
void compress_optimize_skim | ( | ) |
Definition at line 405 of file overall.cpp.
References hits_optimize(), and stck_optimize().
void expand_bank | ( | unsigned char * | input_data, |
int | input_size, | ||
void * | output_event, | ||
char * | output_name, | ||
expand_fcn | f, | ||
int | userParam | ||
) |
void expand_event | ( | void * | input_event, |
void * | output_event, | ||
bool | USE_OLD_COMPRESSION | ||
) |
Definition at line 283 of file overall.cpp.
References caen_expand(), cmp_expand(), expand_bank(), fadc_expand(), hits_expand(), n2fadc_ndet_expand(), n2fadc_tpc_expand(), nfadc_expand(), sprintf(), stck_expand(), and tdc400_expand().
Referenced by main(), MUnCompressRawData(), and process_file().
int read_midas_event | ( | FILE * | fp, |
char * | pevent | ||
) |
Definition at line 24 of file overall.cpp.
References data_size, le32_to_cpu, and SUCCESS.
Referenced by main().
|
static |
Definition at line 21 of file overall.cpp.
Referenced by compress_bank().