Skip to content
Snippets Groups Projects
Commit b1278e5e authored by Toshi Sumida's avatar Toshi Sumida
Browse files

updated raw data structure for NSL

parent c02753bc
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!32026updated raw data structure for NSL
This commit is part of merge request !32026. Comments created here will be created in the context of that merge request.
......@@ -181,6 +181,140 @@ struct TGC_BYTESTREAM_SL
TGC_BYTESTREAM_SL() { memset(this, 0, sizeof(*this)); }
};
/**********************/
/** structs for NewSL */
/**********************/
struct TGC_BYTESTREAM_NSL_ROI
{
unsigned roi: 8;
unsigned pt: 4;
unsigned charge: 1;
unsigned nswcoin: 3;
unsigned flags: 4;
unsigned fill1: 2;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSL_ROI() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_NSW_POS
{
unsigned monitor: 1;
unsigned eta: 8;
unsigned phi: 6;
unsigned fill1: 2;
unsigned input: 3;
unsigned cand: 2;
unsigned fill2: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSW_POS() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_NSW_ANG
{
unsigned angle: 5;
unsigned phires: 1;
unsigned lowres: 1;
unsigned fill1: 2;
unsigned nswid: 4;
unsigned bcid: 4;
unsigned input: 3;
unsigned cand: 2;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSW_ANG() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_RPCBIS78_POS
{
unsigned eta: 6;
unsigned phi: 6;
unsigned fill1: 8;
unsigned cand: 2;
unsigned fill2: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_RPCBIS78_POS() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_RPCBIS78_COIN
{
unsigned fill1: 4;
unsigned flag: 2;
unsigned dphi: 3;
unsigned deta: 3;
unsigned fill2: 1;
unsigned bcid: 4;
unsigned fill3: 3;
unsigned cand: 2;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_RPCBIS78_COIN() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_NSL_EIFI
{
unsigned ei: 8;
unsigned fi: 8;
unsigned fill1: 6;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSL_EIFI() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_NSL_HIPT
{
signed delta: 5;
unsigned sub: 1;
unsigned hitId: 3;
unsigned hipt: 1;
unsigned cand: 1;
unsigned chip: 2;
unsigned strip: 1;
unsigned fill1: 8;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSL_HIPT() { memset(this, 0, sizeof(*this)); }
};
struct TGC_BYTESTREAM_NSL_TMDB
{
unsigned module: 12;
unsigned bcid: 4;
unsigned fill1: 6;
unsigned bcBitmap: 2;
unsigned sector: 4;
unsigned fwd: 1;
unsigned type: 3;
TGC_BYTESTREAM_NSL_TMDB() { memset(this, 0, sizeof(*this)); }
};
/*****************************/
/** end of structs for NewSL */
/*****************************/
template <typename DEST, typename SRC> DEST* my_pointer_cast(SRC* src) {
void* ptr = src;
return reinterpret_cast<DEST*>(ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment