Buffer Section
[Midas Structure Declaration]


Data Structures

struct  EVENT_HEADER
struct  EVENT_REQUEST
struct  BUFFER_CLIENT
struct  BUFFER_HEADER
struct  BUFFER
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 783 of file midas.h.

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

Definition at line 798 of file midas.h.

#define EVENTID_BOR   ((short int) 0x8000)

system event IDs Begin-of-run

Definition at line 802 of file midas.h.

#define EVENTID_EOR   ((short int) 0x8001)

End-of-run

Definition at line 803 of file midas.h.

#define EVENTID_FRAG   ((unsigned short) 0xD000)

Definition at line 809 of file midas.h.

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

#define EVENTID_FRAG1   ((unsigned short) 0xC000)

fragmented events

Definition at line 808 of file midas.h.

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

#define EVENTID_MESSAGE   ((short int) 0x8002)

Message events

Definition at line 804 of file midas.h.

Referenced by cm_msg(), and cm_msg1().

#define MIDAS_MAGIC   0x494d

magic number used in trigger_mask for BOR event 'MI'

Definition at line 813 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 790 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 797 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 776 of file midas.h.


Midas DOC Version 2.0.2 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk