GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TMidasEvent.cxx File Reference
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cassert>
#include <sstream>
#include "TMidasEvent.h"
#include "TGRSIOptions.h"
#include "TRunInfo.h"
#include "TXMLOdb.h"
+ Include dependency graph for TMidasEvent.cxx:

Go to the source code of this file.

Macros

#define DWORD_SWAP(x)
 
#define QWORD_SWAP(x)
 
#define WORD_SWAP(x)
 

Typedefs

using BYTE = uint8_t
 

Macro Definition Documentation

◆ DWORD_SWAP

#define DWORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 3); \
*(((BYTE*)(x)) + 3) = _tmp; \
_tmp = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = *(((BYTE*)(x)) + 2); \
*(((BYTE*)(x)) + 2) = _tmp; \
}
uint8_t BYTE

Byte swapping routine.

Definition at line 484 of file TMidasEvent.cxx.

Referenced by TMidasEvent::SwapBytes(), and TMidasEvent::SwapBytesEventHeader().

◆ QWORD_SWAP

#define QWORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 7); \
*(((BYTE*)(x)) + 7) = _tmp; \
_tmp = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = *(((BYTE*)(x)) + 6); \
*(((BYTE*)(x)) + 6) = _tmp; \
_tmp = *(((BYTE*)(x)) + 2); \
*(((BYTE*)(x)) + 2) = *(((BYTE*)(x)) + 5); \
*(((BYTE*)(x)) + 5) = _tmp; \
_tmp = *(((BYTE*)(x)) + 3); \
*(((BYTE*)(x)) + 3) = *(((BYTE*)(x)) + 4); \
*(((BYTE*)(x)) + 4) = _tmp; \
}

Byte swapping routine.

Definition at line 465 of file TMidasEvent.cxx.

Referenced by TMidasEvent::SwapBytes().

◆ WORD_SWAP

#define WORD_SWAP ( x)
Value:
{ \
BYTE _tmp; \
_tmp = *((BYTE*)(x)); \
*((BYTE*)(x)) = *(((BYTE*)(x)) + 1); \
*(((BYTE*)(x)) + 1) = _tmp; \
}

Byte swapping routine.

Definition at line 497 of file TMidasEvent.cxx.

Referenced by TMidasEvent::SwapBytes(), and TMidasEvent::SwapBytesEventHeader().

Typedef Documentation

◆ BYTE

typedef uint8_t BYTE = uint8_t

Definition at line 460 of file TMidasEvent.cxx.