Project
Loading...
Searching...
No Matches
DataFormats.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_MCH_RAW_DATA_FORMATS_H
13#define O2_MCH_RAW_DATA_FORMATS_H
14
15#include <cstdint>
16#include <iosfwd>
17
18namespace o2::mch::raw
19{
20
21struct BareFormat {
22};
23
25};
26
28 bool operator()() const { return true; }
29};
30
31struct SampleMode {
32 bool operator()() const { return false; }
33};
34
35template <typename FORMAT>
36struct isUserLogicFormat; // only defined (on purpose) for two types below
37
38template <>
40 static constexpr bool value = true;
41};
42
43template <>
45 static constexpr bool value = false;
46};
47
48template <typename CHARGESUM>
49struct isChargeSumMode; // only defined (on purpose) for two types below
50
51template <>
53 static constexpr bool value = true;
54};
55
56template <>
58 static constexpr bool value = false;
59};
60
63
64using SampaChannelAddress = uint5_t; // 0..31 channel of a Sampa
65using DualSampaChannelId = uint6_t; // 0..63 channel of a *Dual* Sampa
66
70
71// Format of 64 bits-words of the UserLogicFormat
72template <int VERSION>
74
75// initial UL format (2020)
76template <>
77struct ULHeaderWord<0> {
78 union {
80 struct {
86 };
87 };
88};
89
90// version 1 of UL format (2021)
91// = as initial version with 1 bit less for linkID and 1 bit more for error
92template <>
93struct ULHeaderWord<1> {
94 union {
96 struct {
102 };
103 };
104};
105
106// structure of the FEEID field (16 bits) in the MCH Raw Data RDH
107struct FEEID {
108 union {
110 struct {
115 };
116 };
117};
118
119template <typename CHARGESUM>
121
122template <int VERSION>
124
125template <typename FORMAT>
127
128std::ostream& operator<<(std::ostream& os, const FEEID& f);
129} // namespace o2::mch::raw
130
131#endif
unsigned char uint8_t
unsigned short int uint16_t
unsigned int uint32_t
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
GLdouble f
Definition glcorearb.h:310
GLsizei const GLfloat * value
Definition glcorearb.h:819
uint16_t extraFeeIdVersionMask()
uint8_t uint6_t
Definition DataFormats.h:62
uint16_t uint10_t
Definition DataFormats.h:67
uint8_t linkRemapping(uint8_t linkID)
uint16_t extraFeeIdChargeSumMask()
uint64_t uint50_t
Definition DataFormats.h:69
uint8_t uint5_t
Definition DataFormats.h:61
std::ostream & operator<<(std::ostream &stream, o2::InteractionRecord const &ir)