ROOTANA
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 
33 struct TMidas_BANK {
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 
41 struct TMidas_BANK32 {
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
Definition: TMidasStructs.h:41
char fName[4]
bank name
Definition: TMidasStructs.h:42
uint32_t fType
type of data (see midas.h TID_xxx)
Definition: TMidasStructs.h:43
uint32_t fDataSize
Definition: TMidasStructs.h:44
uint32_t fDataSize
Definition: TMidasStructs.h:50
uint32_t fReserved
Definition: TMidasStructs.h:51
uint32_t fType
type of data (see midas.h TID_xxx)
Definition: TMidasStructs.h:49
char fName[4]
bank name
Definition: TMidasStructs.h:48
Bank header.
Definition: TMidasStructs.h:26
16-bit data bank
Definition: TMidasStructs.h:33
char fName[4]
bank name
Definition: TMidasStructs.h:34
uint16_t fType
type of data (see midas.h TID_xxx)
Definition: TMidasStructs.h:35
uint16_t fDataSize
Definition: TMidasStructs.h:36
Event header.
Definition: TMidasStructs.h:16
uint32_t fDataSize
event size in bytes
Definition: TMidasStructs.h:21
uint16_t fTriggerMask
event trigger mask
Definition: TMidasStructs.h:18
uint16_t fEventId
event id
Definition: TMidasStructs.h:17
uint32_t fSerialNumber
event serial number
Definition: TMidasStructs.h:19
uint32_t fTimeStamp
event timestamp in seconds
Definition: TMidasStructs.h:20