TMidasEvent.cxx File Reference

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <assert.h>
#include "TMidasEvent.h"
Include dependency graph for TMidasEvent.cxx:

Go to the source code of this file.

Defines

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

Typedefs

typedef uint8_t BYTE

Variables

static const unsigned TID_SIZE [] = {0, 1, 1, 1, 2, 2, 4, 4, 4, 4, 8, 1, 0, 0, 0, 0, 0}
static const unsigned TID_MAX = (sizeof(TID_SIZE)/sizeof(TID_SIZE[0]))

Define Documentation

#define DWORD_SWAP (  ) 
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; }

Byte swapping routine.

Definition at line 477 of file TMidasEvent.cxx.

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

#define QWORD_SWAP (  ) 
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 461 of file TMidasEvent.cxx.

Referenced by TMidasEvent::SwapBytes().

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

Byte swapping routine.

Definition at line 487 of file TMidasEvent.cxx.

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


Typedef Documentation

typedef uint8_t BYTE

Definition at line 457 of file TMidasEvent.cxx.


Variable Documentation

const unsigned TID_MAX = (sizeof(TID_SIZE)/sizeof(TID_SIZE[0])) [static]

Definition at line 158 of file TMidasEvent.cxx.

Referenced by TMidasEvent::IterateBank32().

const unsigned TID_SIZE[] = {0, 1, 1, 1, 2, 2, 4, 4, 4, 4, 8, 1, 0, 0, 0, 0, 0} [static]

Definition at line 157 of file TMidasEvent.cxx.

Referenced by TMidasEvent::FindBank().


Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1