Buffer Section
[Midas Structure Declaration]


Data Structures

struct  BUFFER
struct  BUFFER_CLIENT
struct  BUFFER_HEADER
struct  EVENT_HEADER
struct  EVENT_REQUEST
struct  KEY
struct  KEYLIST

Defines

#define TRIGGER_MASK(e)   ((((EVENT_HEADER *) e)-1)->trigger_mask)
#define EVENT_ID(e)   ((((EVENT_HEADER *) e)-1)->event_id)
#define SERIAL_NUMBER(e)   ((((EVENT_HEADER *) e)-1)->serial_number)
#define TIME_STAMP(e)   ((((EVENT_HEADER *) e)-1)->time_stamp)
#define EVENTID_BOR   ((short int) 0x8000)
#define EVENTID_EOR   ((short int) 0x8001)
#define EVENTID_MESSAGE   ((short int) 0x8002)
#define EVENTID_FRAG1   ((unsigned short) 0xC000)
#define MIDAS_MAGIC   0x494d


Define Documentation

#define EVENT_ID  )     ((((EVENT_HEADER *) e)-1)->event_id)
 

EVENT_ID Extract or set the event ID field pointed by the argument..

Parameters:
e pointer to the midas event (pevent)

Definition at line 1099 of file midas.h.

#define EVENT_SOURCE e,
 )     (* (INT*) (e+o))
 

Definition at line 1114 of file midas.h.

#define EVENTID_BOR   ((short int) 0x8000)
 

Begin-of-run

Definition at line 1118 of file midas.h.

#define EVENTID_EOR   ((short int) 0x8001)
 

End-of-run

Definition at line 1119 of file midas.h.

#define EVENTID_FRAG   ((unsigned short) 0xD000)
 

Definition at line 1125 of file midas.h.

Referenced by bm_match_event(), bm_push_event(), and send_event().

#define EVENTID_FRAG1   ((unsigned short) 0xC000)
 

fragmented events

Definition at line 1124 of file midas.h.

Referenced by bm_match_event(), bm_push_event(), and send_event().

#define EVENTID_MESSAGE   ((short int) 0x8002)
 

Message events

Definition at line 1120 of file midas.h.

Referenced by cm_msg(), and cm_msg1().

#define MIDAS_MAGIC   0x494d
 

'MI'

Definition at line 1129 of file midas.h.

#define SERIAL_NUMBER  )     ((((EVENT_HEADER *) e)-1)->serial_number)
 

SERIAL_NUMBER Extract or set/reset the serial number field pointed by the argument.

Parameters:
e pointer to the midas event (pevent)

Definition at line 1106 of file midas.h.

#define TIME_STAMP  )     ((((EVENT_HEADER *) e)-1)->time_stamp)
 

TIME_STAMP Extract or set/reset the time stamp field pointed by the argument.

Parameters:
e pointer to the midas event (pevent)

Definition at line 1113 of file midas.h.

#define TRIGGER_MASK  )     ((((EVENT_HEADER *) e)-1)->trigger_mask)
 

TRIGGER_MASK Extract or set the trigger mask field pointed by the argument.

Parameters:
e pointer to the midas event (pevent)

Definition at line 1092 of file midas.h.


Midas DOC Version 1.9.3 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Suzannah Daviel - Doxygen - Peter Green - Greg Hackman - Gertjan Hofman - Paul Knowles - Rudi Meier - Glenn Moloney - Dave Morris - Konstantin Olchanski - Renee Poutissou - Andreas Suter - Piotr Adam Zolnierczuk