MIDAS
Loading...
Searching...
No Matches
TMidasOnline.cxx File Reference
#include "TMidasOnline.h"
#include <string>
#include <assert.h>
#include "midas.h"
#include "msystem.h"
#include "hardware.h"
#include "ybos.h"
Include dependency graph for TMidasOnline.cxx:

Go to the source code of this file.

Functions

static void eventCallback (HNDLE buffer_handle, HNDLE request_id, EVENT_HEADER *pheader, void *pevent)
 

Function Documentation

◆ eventCallback()

static void eventCallback ( HNDLE  buffer_handle,
HNDLE  request_id,
EVENT_HEADER pheader,
void pevent 
)
static

Definition at line 198 of file TMidasOnline.cxx.

199{
200#if 0
201 printf("eventCallback: buffer %d, request %d, pheader %p (event_id: %d, trigger mask: 0x%x, serial: %d, time: %d, size: %d), pevent %p\n",
202 buffer_handle,
203 request_id,
204 pheader,
205 pheader->event_id,
206 pheader->trigger_mask,
207 pheader->serial_number,
208 pheader->time_stamp,
209 pheader->data_size,
210 pevent);
211#endif
212
213 if (TMidasOnline::instance()->fEventHandler)
214 TMidasOnline::instance()->fEventHandler(pheader,pevent,pheader->data_size);
215}
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
short int event_id
Definition midas.h:852
DWORD data_size
Definition midas.h:856
DWORD serial_number
Definition midas.h:854
DWORD time_stamp
Definition midas.h:855
short int trigger_mask
Definition midas.h:853
Here is the call graph for this function: