Belle II Software development
RawTLUFormat.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef RAWTLUFORMAT_H
10#define RAWTLUFORMAT_H
11#include <rawdata/dataobjects/RawDataBlockFormat.h>
12
13namespace Belle2 {
18
24
26 public:
29
31 virtual ~RawTLUFormat();
32
33 /* //! Get # of words in this data packet */
34 /* int GetNwords(int n); */
35
37 int GetNwordsHeader(int n);
38
40 unsigned int GetNodeID(int n);
41
43 unsigned int GetEveNo(int n);
44
46 unsigned int GetMagicTrailer(int n);
47
49 int GetRunNo(int n);
50
52 unsigned int GetTLUEventTag(int n);
53
55 void CheckData(int n, unsigned int prev_evenum, unsigned int* cur_evenum);
56
57
58 enum {
59 POS_NWORDS = 0,
60 POS_HDR_NWORDS = 1,
61 POS_NUMEVE_NUMNODES = 2,
62 POS_RUN_NO = 3,
63 POS_EVE_NO = 4,
64 POS_NA_1 = 5,
65 POS_NODE_ID = 6,
66 POS_NA_2 = 7,
67 POS_TLU_EVENTTAG = 8,
68 POS_NA_3 = 9,
69 POS_TLU_TIME_1 = 10,
70 POS_TLU_TIME_2 = 11,
71 POS_RSVD_1 = 12,
72 POS_MAGIC_1 = 13
73 };
74
75 enum {
76 SIZE_TLU_PACKET = 14
77 };
78
79 enum {
80 TLU_MAGIC_TRAILER = 0x7FFF0000
81 };
82
83 protected :
84 };
85
86}
87
88#endif
RawDataBlockFormat()
Default constructor.
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
unsigned int GetEveNo(int n)
Get Event #.
virtual ~RawTLUFormat()
Destructor.
int GetNwordsHeader(int n)
Get the size of the header.
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
RawTLUFormat()
Default constructor.
unsigned int GetNodeID(int n)
Get Node ID.
int GetRunNo(int n)
Get Run #.
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Abstract base class for different kinds of events.