Belle II Software development
ARICHRawDataHeader.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#pragma once
9
10#include <iostream>
11#include <vector>
12
13
14namespace Belle2 {
21#define ARICHFEB_HEADER_SIZE 10
22
24#define ARICHRAW_HEADER_SIZE 12
25
30 uint8_t type = 0;
31 uint8_t version = 0;
32 uint8_t mergerID = 0;
33 uint8_t FEBSlot = 0;
34 uint32_t length = 0;
35 uint32_t trigger = 0;
36 std::vector<bool> SEU_FEB = std::vector<bool>(6, false);
37 bool thscan_mode = false;
38 unsigned vth = 0;
43 void print()
44 {
45 std::cout << "Type: " << unsigned(type) << " version: " << unsigned(version) << std::endl;
46 std::cout << "mergerID: " << unsigned(mergerID) << " FEBSlot: " << unsigned(FEBSlot) << std::endl;
47 std::cout << "data length: " << length << " trigger No.: " << trigger << std::endl;
48 std::cout << "SEU of FEB: " << SEU_FEB[5] << " " << SEU_FEB[4] << " " << SEU_FEB[3] << " " << SEU_FEB[2] << " " << SEU_FEB[1] << " "
49 << SEU_FEB[0] << std::endl;
50 std::cout << "thscan_mode: " << thscan_mode << ", vth: " << vth << std::endl;
51 }
52
53 };
55}
Abstract base class for different kinds of events.
ARICH raw-data header.
bool thscan_mode
thscan mode
void print()
Print information about ARICHRawHeader.
uint8_t FEBSlot
FEB slot.
std::vector< bool > SEU_FEB
vector of SEU FEBs
uint8_t mergerID
merger-board identifier
uint32_t trigger
trigger number
uint32_t length
data length