10 #include <sys/types.h>
12 #define m_Mode_DAQ_PED (1<<0) // calculate pedestals in Make
13 #define m_Mode_DAQ_GAIN (1<<1) // calculate gains in Make
14 #define m_Mode_DAQ_FCF_RAW (1<<2) // run cluster finder
15 #define m_Mode_DAQ_ADC (1<<3) // Make outputs ADC
16 #define m_Mode_DAQ_RAW (1<<4) // Make outputs RAW (used in realtime only!)
17 #define m_Mode_DAQ_FCF (1<<5) // Make(): runs floating point FCF
19 #define m_Mode_DAQ_RT (1<<31) // working in realtime! Under ESB! do not use in Offline!
22 #define m_Debug_DAQ_PRINT (1<<0)
23 #define m_Debug_DAQ_CHECK (1<<1)
26 #define DET_PRESENT_SFS (1<<0)
27 #define DET_PRESENT_DATAP (1<<1)
28 #define DET_PRESENT_TRG (1<<2)
36 extern int checkBank(
const char *in,
const char *expect) ;
37 extern int *legacyDetp(
int rts_id,
char *datap) ;
46 static daq_det *make_det(
int wh) ;
71 static const int MAX_SEC = 0 ;
72 static const int MAX_RDO = 0 ;
74 static int endianess ;
77 virtual int presence() ;
80 const char *sfs_name ;
93 virtual int InitRun(
int run) ;
95 virtual int FinishRun(
int old_run) ;
100 virtual daq_dta *
get(
const char *bank=
"*",
int sec=-1,
int row=-1,
int pad=-1,
void *p1=0,
void *p2=0) ;
101 virtual int bad_sanity() ;
104 virtual daq_dta *put(
const char *bank=
"*",
int c1=-1,
int c2=-1,
int c3=-1,
void *p1=0,
void *p2=0) ;
109 virtual void help()
const ;
112 virtual int get_l2(
char *buff,
int buff_bytes,
struct daq_trg_word *trg,
int prompt) ;
113 virtual int get_token(
char *buff,
int buff_bytes) ;
116 virtual void SetMode(u_int mode=0) {
119 virtual u_int GetMode() {
123 virtual void set_defaults(
int sec,
int rdo) {
129 virtual const char *GetCVS()
const {
130 static const char cvs[]=
"Tag $Name: $: $Id: daq_det.h,v 1.12 2022/09/23 19:55:47 jml Exp $: built " __DATE__
" " __TIME__ ;
135 virtual unsigned int get_global_event_num() ;