Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:45

0001 /* 
0002 ** frameV1Public.h
0003 ** 
0004 ** Author: $Author: purschke $  
0005 **   Date: $Date: 2000/07/21 01:51:14 $ 
0006 ** 
0007 ** $Log: frameV1Public.h,v $
0008 ** Revision 1.1.1.1  2000/07/21 01:51:14  purschke
0009 ** mlp -- adding the new automakified "basic" module to CVS.
0010 **
0011 **
0012 ** Revision 1.3  1998/12/11 22:01:44  markacs
0013 ** (stephen markacs) adding log into cvs tags
0014 ** 
0015 */
0016 /*
0017 **  Public definitions for V1 frames.
0018 **
0019 */
0020 
0021 #ifndef _FRAMEV1PUBLIC_
0022 #define _FRAMEV1PUBLIC_
0023 
0024 #include "phenixOnline.h"
0025 
0026 /*
0027 **  Use C linkage for below structures
0028 */
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 /*
0034 ** alignment block definitions (still not fully specified)
0035 */
0036   struct dcmAlignBlk {
0037     SWORD   timeStamp;
0038     SWORD   granuleEvtcnt; /* (lowest 16 bits) */
0039     PHDWORD   partitionVec;
0040   }; 
0041   typedef struct dcmAlignBlk DCMALIGNBLK;
0042   
0043   struct dcbAlignBlk {
0044     SWORD   timeStamp;                                          
0045     SWORD   granuleEvtcnt; /* (lowest 16 bits) */
0046     PHDWORD   partitionVec;
0047   }; 
0048   typedef struct dcbAlignBlk DCBALIGNBLK; 
0049 
0050   struct sebAlignBlk {
0051     PHDWORD   globalEventNum;
0052     PHDWORD   partitionVec;
0053   }; 
0054   typedef struct sebAlignBlk SEBALIGNBLK;
0055   
0056   struct atpAlignBlk {
0057     PHDWORD   globalEventNum;
0058     PHDWORD   partitionVec;
0059   }; 
0060   typedef struct atpAlignBlk ATPALIGNBLK; 
0061     
0062   /*
0063   **  For now handle the alignment block as a union.
0064   */
0065   typedef union alignBlkV1 {
0066     DCMALIGNBLK dcm;
0067     DCBALIGNBLK dcb;
0068     SEBALIGNBLK seb;
0069     ATPALIGNBLK atp;
0070     /*  ONCSALIGNBLK oncs; */
0071   } ALIGNBLKV1;
0072   
0073   /*
0074   **  We point to V1 frames using PHDWORD pointers
0075   */
0076   typedef PHDWORD* V1FRAME_ptr;
0077 
0078 
0079 #ifdef __cplusplus
0080 } 
0081 /* end of extern "C"  */
0082 #endif
0083 
0084 #endif 
0085 /* end of ifndef _FRAMESV1_ */