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 749 of file midas.h.

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

Definition at line 764 of file midas.h.

#define EVENTID_BOR   ((short int) 0x8000)
 

Begin-of-run

Definition at line 768 of file midas.h.

#define EVENTID_EOR   ((short int) 0x8001)
 

End-of-run

Definition at line 769 of file midas.h.

#define EVENTID_FRAG   ((unsigned short) 0xD000)
 

Definition at line 775 of file midas.h.

#define EVENTID_FRAG1   ((unsigned short) 0xC000)
 

fragmented events

Definition at line 774 of file midas.h.

Referenced by bm_match_event(), and bm_push_event().

#define EVENTID_MESSAGE   ((short int) 0x8002)
 

Message events

Definition at line 770 of file midas.h.

Referenced by cm_msg(), and cm_msg1().

#define MIDAS_MAGIC   0x494d
 

'MI'

Definition at line 779 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 756 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 763 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 742 of file midas.h.


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