00001
00014 #ifndef BPMANALYSIS_H__
00015 #define BPMANALYSIS_H__
00016
00017
00018
00019
00020 #include <math.h>
00021 #include <bpm/bpm_defs.h>
00022 #include <bpm/bpm_interface.h>
00023
00024
00025
00026
00027
00028 #define BPM_GOOD_EVENT 1
00029 #define BPM_BAD_EVENT 0
00031 #define ANA_SVD_TILT 0x00000001
00032 #define ANA_SVD_NOTILT 0x00000000
00034
00035
00036
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040
00041
00042
00043
00044
00045
00053 EXTERN int ana_set_cutfn( int (*cutfn)( bpmproc_t *proc ) );
00054
00055
00069 EXTERN int ana_get_svd_coeffs( bpmproc_t **proc, int num_bpms, int num_svd,
00070 int total_num_evts, double *coeffs, int mode );
00071
00072
00085 EXTERN int ana_compute_residual( bpmproc_t **proc, int num_bpms, int num_evts,
00086 double *coeffs, int mode, double *mean, double *rms );
00087
00094 EXTERN int ana_def_cutfn( bpmproc_t *proc );
00095
00096
00100 EXTERN int (*ana_cutfn)( bpmproc_t *proc );
00101
00102
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106
00107 #endif
00108
00109