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_TRD_CTF_H
17
#define O2_TRD_CTF_H
18
19
#include <vector>
20
#include <Rtypes.h>
21
#include "
DetectorsCommonDataFormats/EncodedBlocks.h
"
22
23
namespace
o2
24
{
25
namespace
trd
26
{
27
29
struct
CTFHeader
:
public
o2::ctf::CTFDictHeader
{
30
uint32_t
nTriggers
= 0;
31
uint32_t
nTracklets
= 0;
32
uint32_t
nDigits
= 0;
33
uint32_t
firstOrbit
= 0;
34
uint16_t
firstBC
= 0;
35
uint16_t
format
= 0;
36
37
ClassDefNV
(
CTFHeader
, 2);
38
};
39
41
struct
CTF
:
public
o2::ctf::EncodedBlocks
<CTFHeader, 15, uint32_t> {
42
43
static
constexpr
size_t
N
=
getNBlocks
();
44
enum
Slots
{
BLC_bcIncTrig
,
45
BLC_orbitIncTrig
,
46
BLC_entriesTrk
,
47
BLC_entriesDig
,
48
BLC_HCIDTrk
,
// tracklers sorted in HCID -> 1st entry of trigger keeps abs HCID, then increments
49
BLC_padrowTrk
,
50
BLC_colTrk
,
51
BLC_posTrk
,
52
BLC_slopeTrk
,
53
BLC_pidTrk
,
54
BLC_CIDDig
,
// digits sorted in CID -> 1st entry of trigger keeps abs CID, then increments
55
BLC_ROBDig
,
56
BLC_MCMDig
,
57
BLC_chanDig
,
58
BLC_ADCDig
59
};
60
ClassDefNV
(
CTF
, 1);
61
};
62
63
}
// namespace trd
64
}
// namespace o2
65
66
#endif
EncodedBlocks.h
o2::ctf::EncodedBlocks
<<======================== Auxiliary classes =======================<<
Definition
EncodedBlocks.h:335
o2::ctf::EncodedBlocks< CTFHeader, 15, uint32_t >::getNBlocks
static constexpr int getNBlocks()
Definition
EncodedBlocks.h:435
format
GLint GLint GLsizei GLint GLenum format
Definition
glcorearb.h:275
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::trd::CTFHeader
Header for a single CTF.
Definition
CTF.h:29
o2::trd::CTFHeader::nTracklets
uint32_t nTracklets
number of triggers
Definition
CTF.h:31
o2::trd::CTFHeader::ClassDefNV
ClassDefNV(CTFHeader, 2)
format word to be added to tracklet
o2::trd::CTFHeader::nTriggers
uint32_t nTriggers
Definition
CTF.h:30
o2::trd::CTFHeader::nDigits
uint32_t nDigits
number of tracklets
Definition
CTF.h:32
o2::trd::CTFHeader::firstBC
uint16_t firstBC
orbit of 1st trigger
Definition
CTF.h:34
o2::trd::CTFHeader::firstOrbit
uint32_t firstOrbit
number of digits
Definition
CTF.h:33
o2::trd::CTF
wrapper for the Entropy-encoded triggers and cells of the TF
Definition
CTF.h:41
o2::trd::CTF::Slots
Slots
Definition
CTF.h:44
o2::trd::CTF::BLC_slopeTrk
@ BLC_slopeTrk
Definition
CTF.h:52
o2::trd::CTF::BLC_bcIncTrig
@ BLC_bcIncTrig
Definition
CTF.h:44
o2::trd::CTF::BLC_entriesTrk
@ BLC_entriesTrk
Definition
CTF.h:46
o2::trd::CTF::BLC_chanDig
@ BLC_chanDig
Definition
CTF.h:57
o2::trd::CTF::BLC_orbitIncTrig
@ BLC_orbitIncTrig
Definition
CTF.h:45
o2::trd::CTF::BLC_entriesDig
@ BLC_entriesDig
Definition
CTF.h:47
o2::trd::CTF::BLC_pidTrk
@ BLC_pidTrk
Definition
CTF.h:53
o2::trd::CTF::BLC_MCMDig
@ BLC_MCMDig
Definition
CTF.h:56
o2::trd::CTF::BLC_HCIDTrk
@ BLC_HCIDTrk
Definition
CTF.h:48
o2::trd::CTF::BLC_CIDDig
@ BLC_CIDDig
Definition
CTF.h:54
o2::trd::CTF::BLC_colTrk
@ BLC_colTrk
Definition
CTF.h:50
o2::trd::CTF::BLC_padrowTrk
@ BLC_padrowTrk
Definition
CTF.h:49
o2::trd::CTF::BLC_posTrk
@ BLC_posTrk
Definition
CTF.h:51
o2::trd::CTF::BLC_ADCDig
@ BLC_ADCDig
Definition
CTF.h:58
o2::trd::CTF::BLC_ROBDig
@ BLC_ROBDig
Definition
CTF.h:55
o2::trd::CTF::ClassDefNV
ClassDefNV(CTF, 1)
o2::trd::CTF::N
static constexpr size_t N
Definition
CTF.h:43
DataFormats
Detectors
TRD
include
DataFormatsTRD
CTF.h
Generated on Tue Feb 25 2025 17:02:52 for Project by
1.9.8