Project
Loading...
Searching...
No Matches
CTF.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
15
16
#ifndef O2_CTP_CTF_H
17
#define O2_CTP_CTF_H
18
19
#include <vector>
20
#include <Rtypes.h>
21
#include "
DetectorsCommonDataFormats/EncodedBlocks.h
"
22
23
namespace
o2
24
{
25
namespace
ctp
26
{
27
29
struct
CTFHeader
:
public
o2::ctf::CTFDictHeader
{
30
uint64_t
lumiCounts
= 0;
31
uint64_t
lumiCountsFV0
= 0;
32
uint32_t
lumiNHBFs
= 0;
33
uint32_t
lumiNHBFsFV0
= 0;
34
uint32_t
lumiOrbit
= 0;
35
uint32_t
nTriggers
= 0;
36
uint32_t
firstOrbit
= 0;
37
uint16_t
firstBC
= 0;
38
uint16_t
inp1
= 0;
39
uint16_t
inp2
= 0;
40
41
ClassDefNV
(
CTFHeader
, 5);
42
};
43
45
struct
CTF
:
public
o2::ctf::EncodedBlocks
<CTFHeader, 4, uint32_t> {
46
47
static
constexpr
size_t
N
=
getNBlocks
();
48
enum
Slots
{
BLC_bcIncTrig
,
49
BLC_orbitIncTrig
,
50
BLC_bytesInput
,
// bytes of the CTPInputMask bitset (6 bytes from lowest to highest)
51
BLC_bytesClass
// bytes of the CTPClassMask bitset (8 bytes from lowest to highest)
52
};
53
ClassDefNV
(
CTF
, 2);
54
};
55
56
}
// namespace ctp
57
}
// namespace o2
58
59
#endif
EncodedBlocks.h
o2::ctf::EncodedBlocks
<<======================== Auxiliary classes =======================<<
Definition
EncodedBlocks.h:335
o2::ctf::EncodedBlocks< CTFHeader, 4, uint32_t >::getNBlocks
static constexpr int getNBlocks()
Definition
EncodedBlocks.h:435
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::ctf::CTFDictHeader
Detector header base.
Definition
CTFDictHeader.h:29
o2::ctp::CTFHeader
Header for a single CTF.
Definition
CTF.h:29
o2::ctp::CTFHeader::ClassDefNV
ClassDefNV(CTFHeader, 5)
lumiCountsFV0 input ID
o2::ctp::CTFHeader::inp2
uint16_t inp2
lumiCounts input ID
Definition
CTF.h:39
o2::ctp::CTFHeader::lumiCounts
uint64_t lumiCounts
Definition
CTF.h:30
o2::ctp::CTFHeader::firstOrbit
uint32_t firstOrbit
number of triggers
Definition
CTF.h:36
o2::ctp::CTFHeader::firstBC
uint16_t firstBC
orbit of 1st trigger
Definition
CTF.h:37
o2::ctp::CTFHeader::lumiCountsFV0
uint64_t lumiCountsFV0
FT0 Luminosity counts moving average over lumiNHBFs orbits.
Definition
CTF.h:31
o2::ctp::CTFHeader::lumiOrbit
uint32_t lumiOrbit
Number of FV0 HBFs over which lumi is integrated.
Definition
CTF.h:34
o2::ctp::CTFHeader::lumiNHBFs
uint32_t lumiNHBFs
FV0 Luminosity counts moving average over lumiNHBFs orbits.
Definition
CTF.h:32
o2::ctp::CTFHeader::lumiNHBFsFV0
uint32_t lumiNHBFsFV0
Number of HBFs over which lumi is integrated.
Definition
CTF.h:33
o2::ctp::CTFHeader::inp1
uint16_t inp1
bc of 1st trigger
Definition
CTF.h:38
o2::ctp::CTFHeader::nTriggers
uint32_t nTriggers
1st orbit of TF where lumi was updated, can be compared with firstOrbit
Definition
CTF.h:35
o2::ctp::CTF
wrapper for the Entropy-encoded trigger inputs and classes of the TF
Definition
CTF.h:45
o2::ctp::CTF::ClassDefNV
ClassDefNV(CTF, 2)
o2::ctp::CTF::Slots
Slots
Definition
CTF.h:48
o2::ctp::CTF::BLC_bytesInput
@ BLC_bytesInput
Definition
CTF.h:50
o2::ctp::CTF::BLC_bytesClass
@ BLC_bytesClass
Definition
CTF.h:51
o2::ctp::CTF::BLC_bcIncTrig
@ BLC_bcIncTrig
Definition
CTF.h:48
o2::ctp::CTF::BLC_orbitIncTrig
@ BLC_orbitIncTrig
Definition
CTF.h:49
o2::ctp::CTF::N
static constexpr size_t N
Definition
CTF.h:47
DataFormats
Detectors
CTP
include
DataFormatsCTP
CTF.h
Generated on Tue Feb 25 2025 17:02:52 for Project by
1.9.8