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 {
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 };
86}
87
88#endif
The RawDataBlockFormat class Format information for rawdata handling.
The Raw TLU class Class for data from DAQ PC for TLU(Trigger Logic Unit) It is supposed to be used on...
Definition: RawTLUFormat.h:25
void CheckData(int n, unsigned int prev_evenum, unsigned int *cur_evenum)
check data contents
Definition: RawTLUFormat.cc:60
unsigned int GetEveNo(int n)
Get Event #.
Definition: RawTLUFormat.cc:37
virtual ~RawTLUFormat()
Destructor.
Definition: RawTLUFormat.cc:17
int GetNwordsHeader(int n)
Get the size of the header.
Definition: RawTLUFormat.cc:26
unsigned int GetMagicTrailer(int n)
Get Magic Trailer #.
Definition: RawTLUFormat.cc:49
RawTLUFormat()
Default constructor.
Definition: RawTLUFormat.cc:13
unsigned int GetNodeID(int n)
Get Node ID.
Definition: RawTLUFormat.cc:32
int GetRunNo(int n)
Get Run #.
Definition: RawTLUFormat.cc:43
unsigned int GetTLUEventTag(int n)
Get TLU event tag.
Definition: RawTLUFormat.cc:54
Abstract base class for different kinds of events.