-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #814 from ktf/remove-xdaq-mergiable
Remove xdaq mergiable
- Loading branch information
Showing
167 changed files
with
12,681 additions
and
7,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#ifndef EventFilter_FEDInterface_fed_header_h | ||
#define EventFilter_FEDInterface_fed_header_h | ||
|
||
#include <stdint.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
/************************************************************************* | ||
* | ||
* data structures and associated typedefs | ||
* | ||
*************************************************************************/ | ||
|
||
|
||
/* | ||
* FED header - in front of each FED block | ||
*/ | ||
|
||
typedef struct fedh_struct { | ||
uint32_t sourceid; | ||
uint32_t eventid; | ||
} fedh_t ; | ||
|
||
#define FED_SLINK_START_MARKER 0x5 | ||
#define FED_SLINK_END_MARKER 0xa | ||
|
||
#define FED_HCTRLID_WIDTH 0x0000000f | ||
#define FED_HCTRLID_SHIFT 28 | ||
#define FED_HCTRLID_MASK ( FED_HCTRLID_WIDTH << FED_HCTRLID_SHIFT ) | ||
#define FED_HCTRLID_EXTRACT(a) ( ( (a) >> FED_HCTRLID_SHIFT ) & FED_HCTRLID_WIDTH ) | ||
|
||
#define FED_EVTY_WIDTH 0x0000000f | ||
#define FED_EVTY_SHIFT 24 | ||
#define FED_EVTY_MASK ( FED_EVTY_WIDTH << FED_EVTY_SHIFT ) | ||
#define FED_EVTY_EXTRACT(a) ( ( (a) >> FED_EVTY_SHIFT ) & FED_EVTY_WIDTH ) | ||
|
||
#define FED_LVL1_WIDTH 0x00ffffff | ||
#define FED_LVL1_SHIFT 0 | ||
#define FED_LVL1_MASK ( FED_LVL1_WIDTH << FED_LVL1_SHIFT ) | ||
#define FED_LVL1_EXTRACT(a) ( ( (a) >> FED_LVL1_SHIFT ) & FED_LVL1_WIDTH ) | ||
|
||
#define FED_BXID_WIDTH 0x00000fff | ||
#define FED_BXID_SHIFT 20 | ||
#define FED_BXID_MASK ( FED_BXID_WIDTH << FED_BXID_SHIFT ) | ||
#define FED_BXID_EXTRACT(a) ( ( (a) >> FED_BXID_SHIFT ) & FED_BXID_WIDTH ) | ||
|
||
#define FED_SOID_WIDTH 0x00000fff | ||
#define FED_SOID_SHIFT 8 | ||
#define FED_SOID_MASK ( FED_SOID_WIDTH << FED_SOID_SHIFT ) | ||
#define FED_SOID_EXTRACT(a) ( ( (a) >> FED_SOID_SHIFT ) & FED_SOID_WIDTH ) | ||
|
||
#define FED_VERSION_WIDTH 0x0000000f | ||
#define FED_VERSION_SHIFT 4 | ||
#define FED_VERSION_MASK ( FED_VERSION_WIDTH << FED_VERSION_SHIFT ) | ||
#define FED_VERSION_EXTRACT(a) ( ( (a) >> FED_VERSION_SHIFT ) & FED_VERSION_WIDTH ) | ||
|
||
#define FED_MORE_HEADERS_WIDTH 0x00000001 | ||
#define FED_MORE_HEADERS_SHIFT 3 | ||
#define FED_MORE_HEADERS_MASK ( FED_MORE_HEADERS_WIDTH << FED_MORE_HEADERS_SHIFT ) | ||
#define FED_MORE_HEADERS_EXTRACT(a) ( ( (a) >> FED_MORE_HEADERS_SHIFT ) & FED_MORE_HEADERS_WIDTH ) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#ifndef EventFilter_FEDInterface_fed_trailer_h | ||
#define EventFilter_FEDInterface_fed_trailer_h | ||
|
||
#include <stdint.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
/************************************************************************* | ||
* | ||
* data structures and associated typedefs | ||
* | ||
*************************************************************************/ | ||
|
||
|
||
/* | ||
* FED trailer - at the end of each FED block | ||
*/ | ||
|
||
typedef struct fedt_struct { | ||
uint32_t conscheck; | ||
uint32_t eventsize; | ||
} fedt_t ; | ||
|
||
|
||
#define FED_TCTRLID_WIDTH 0x0000000f | ||
#define FED_TCTRLID_SHIFT 28 | ||
#define FED_TCTRLID_MASK ( FED_TCTRLID_WIDTH << FED_TCTRLID_SHIFT ) | ||
#define FED_TCTRLID_EXTRACT(a) ( ( (a) >> FED_TCTRLID_SHIFT ) & FED_TCTRLID_WIDTH ) | ||
|
||
#define FED_EVSZ_WIDTH 0x00ffffff | ||
#define FED_EVSZ_SHIFT 0 | ||
#define FED_EVSZ_MASK ( FED_EVSZ_WIDTH << FED_EVSZ_SHIFT ) | ||
#define FED_EVSZ_EXTRACT(a) ( ( (a) >> FED_EVSZ_SHIFT ) & FED_EVSZ_WIDTH ) | ||
|
||
#define FED_CRCS_WIDTH 0x0000ffff | ||
#define FED_CRCS_SHIFT 16 | ||
#define FED_CRCS_MASK ( FED_CRCS_WIDTH << FED_CRCS_SHIFT ) | ||
#define FED_CRCS_EXTRACT(a) ( ( (a) >> FED_CRCS_SHIFT ) & FED_CRCS_WIDTH ) | ||
|
||
#define FED_STAT_WIDTH 0x0000000f | ||
#define FED_STAT_SHIFT 8 | ||
#define FED_STAT_MASK ( FED_STAT_WIDTH << FED_STAT_SHIFT ) | ||
#define FED_STAT_EXTRACT(a) ( ( (a) >> FED_STAT_SHIFT ) & FED_STAT_WIDTH ) | ||
|
||
#define FED_TTSI_WIDTH 0x0000000f | ||
#define FED_TTSI_SHIFT 4 | ||
#define FED_TTSI_MASK ( FED_TTSI_WIDTH << FED_TTSI_SHIFT ) | ||
#define FED_TTSI_EXTRACT(a) ( ( (a) >> FED_TTSI_SHIFT ) & FED_TTSI_WIDTH ) | ||
|
||
#define FED_MORE_TRAILERS_WIDTH 0x00000001 | ||
#define FED_MORE_TRAILERS_SHIFT 3 | ||
#define FED_MORE_TRAILERS_MASK ( FED_MORE_TRAILERS_WIDTH << FED_MORE_TRAILERS_SHIFT ) | ||
#define FED_MORE_TRAILERS_EXTRACT(a) ( ( (a) >> FED_MORE_TRAILERS_SHIFT ) & FED_MORE_TRAILERS_WIDTH ) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.