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
14
namespace
Belle2
{
21
#define ARICHFEB_HEADER_SIZE 10
22
24
#define ARICHRAW_HEADER_SIZE 12
25
29
struct
ARICHRawHeader
{
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
}
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
Belle2::ARICHRawHeader
ARICH raw-data header.
Definition:
ARICHRawDataHeader.h:29
Belle2::ARICHRawHeader::thscan_mode
bool thscan_mode
thscan mode
Definition:
ARICHRawDataHeader.h:37
Belle2::ARICHRawHeader::type
uint8_t type
type
Definition:
ARICHRawDataHeader.h:30
Belle2::ARICHRawHeader::print
void print()
Print information about ARICHRawHeader.
Definition:
ARICHRawDataHeader.h:43
Belle2::ARICHRawHeader::FEBSlot
uint8_t FEBSlot
FEB slot.
Definition:
ARICHRawDataHeader.h:33
Belle2::ARICHRawHeader::SEU_FEB
std::vector< bool > SEU_FEB
vector of SEU FEBs
Definition:
ARICHRawDataHeader.h:36
Belle2::ARICHRawHeader::mergerID
uint8_t mergerID
merger-board identifier
Definition:
ARICHRawDataHeader.h:32
Belle2::ARICHRawHeader::version
uint8_t version
version
Definition:
ARICHRawDataHeader.h:31
Belle2::ARICHRawHeader::vth
unsigned vth
vth
Definition:
ARICHRawDataHeader.h:38
Belle2::ARICHRawHeader::trigger
uint32_t trigger
trigger number
Definition:
ARICHRawDataHeader.h:35
Belle2::ARICHRawHeader::length
uint32_t length
data length
Definition:
ARICHRawDataHeader.h:34
arich
modules
arichUnpacker
include
ARICHRawDataHeader.h
Generated on Fri Nov 8 2024 02:33:48 for Belle II Software by
1.9.6