ROOTANA
Loading...
Searching...
No Matches
TMidasStructs.h
Go to the documentation of this file.
1//
2// TMidasStructs.h
3//
4
5#ifndef INCLUDE_TMidasBanksH
6#define INCLUDE_TMidasBanksH
7
8#include "rootana_stdint.h"
9
10// This file defines the data structures written
11// into MIDAS .mid files. They define the on-disk
12// data format, they cannot be arbitrarily changed.
13
14/// Event header
15
17 uint16_t fEventId; ///< event id
18 uint16_t fTriggerMask; ///< event trigger mask
19 uint32_t fSerialNumber; ///< event serial number
20 uint32_t fTimeStamp; ///< event timestamp in seconds
21 uint32_t fDataSize; ///< event size in bytes
22};
23
24/// Bank header
25
27 uint32_t fDataSize;
28 uint32_t fFlags;
29};
30
31/// 16-bit data bank
32
34 char fName[4]; ///< bank name
35 uint16_t fType; ///< type of data (see midas.h TID_xxx)
36 uint16_t fDataSize;
37};
38
39/// 32-bit data bank
40
42 char fName[4]; ///< bank name
43 uint32_t fType; ///< type of data (see midas.h TID_xxx)
44 uint32_t fDataSize;
45};
46
48 char fName[4]; ///< bank name
49 uint32_t fType; ///< type of data (see midas.h TID_xxx)
50 uint32_t fDataSize;
51 uint32_t fReserved;
52};
53
54#endif
55//end
32-bit data bank
char fName[4]
bank name
uint32_t fType
type of data (see midas.h TID_xxx)
uint32_t fDataSize
uint32_t fDataSize
uint32_t fReserved
uint32_t fType
type of data (see midas.h TID_xxx)
char fName[4]
bank name
16-bit data bank
char fName[4]
bank name
uint16_t fType
type of data (see midas.h TID_xxx)
uint16_t fDataSize
uint32_t fDataSize
event size in bytes
uint16_t fTriggerMask
event trigger mask
uint16_t fEventId
event id
uint32_t fSerialNumber
event serial number
uint32_t fTimeStamp
event timestamp in seconds