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_TOF_CTF_H
17#define O2_TOF_CTF_H
18
19#include <vector>
20#include <Rtypes.h>
22
23namespace o2
24{
25namespace tof
26{
27
28class ROFRecord;
29class CompClusterExt;
30
33 uint32_t nROFs = 0;
34 uint32_t nDigits = 0;
35 uint32_t nPatternBytes = 0;
36 uint32_t firstOrbit = 0;
37 uint16_t firstBC = 0;
38
40};
41
44
46
47 /*
48 ROF = 1/3 orbit = 1188 BC
49 1 TF = 128 * 3 = 364 ROF
50 TIMEFRAME = 2^8 TDC
51 1 BC = 2^10 TDC = 4 TIMEFRAME
52 ROF = 4752 TIMEFRAME < 2^13 TIMEFRAME
53
54 timeFrame = deltaBC/64;
55 timeTDC = (deltaBC%64)*1024+ dig.getTDC();
56 */
57
58 // ROF header data
59 std::vector<int16_t> bcIncROF;
60 std::vector<int32_t> orbitIncROF;
61 std::vector<uint32_t> ndigROF;
62 std::vector<uint32_t> ndiaROF;
63 std::vector<uint32_t> ndiaCrate;
64
65 // Hit data
66 std::vector<int16_t> timeFrameInc;
67 std::vector<uint16_t> timeTDCInc;
68 std::vector<uint16_t> stripID;
69 std::vector<uint8_t> chanInStrip;
70 std::vector<uint16_t> tot;
71 std::vector<uint8_t> pattMap;
72
73 CompressedInfos() = default;
74
75 void clear();
76
78};
79
98
99} // namespace tof
100} // namespace o2
101
102#endif
<<======================== Auxiliary classes =======================<<
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Detector header base.
Header for a single CTF.
Definition CTF.h:32
uint32_t nPatternBytes
number of digits in TF
Definition CTF.h:35
uint16_t firstBC
1st orbit of TF
Definition CTF.h:37
ClassDefNV(CTFHeader, 2)
1st BC of TF
uint32_t nDigits
number of ROFrame in TF
Definition CTF.h:34
uint32_t firstOrbit
number of bytes for explict patterns
Definition CTF.h:36
uint32_t nROFs
Definition CTF.h:33
wrapper for the Entropy-encoded clusters of the TF
Definition CTF.h:81
ClassDefNV(CTF, 1)
static constexpr size_t N
Definition CTF.h:83
@ BLCndiaCrate
Definition CTF.h:88
@ BLCtimeFrameInc
Definition CTF.h:89
@ BLCorbitIncROF
Definition CTF.h:85
@ BLCndigROF
Definition CTF.h:86
@ BLCtimeTDCInc
Definition CTF.h:90
@ BLCtot
Definition CTF.h:93
@ BLCchanInStrip
Definition CTF.h:92
@ BLCbcIncROF
Definition CTF.h:84
@ BLCstripID
Definition CTF.h:91
@ BLCndiaROF
Definition CTF.h:87
@ BLCpattMap
Definition CTF.h:94
Compressed but not yet entropy-encoded infos.
Definition CTF.h:43
std::vector< uint32_t > ndiaROF
number of digits in ROF
Definition CTF.h:62
CTFHeader header
Definition CTF.h:45
ClassDefNV(CompressedInfos, 3)
std::vector< int16_t > bcIncROF
Definition CTF.h:59
std::vector< uint32_t > ndiaCrate
number of diagnostic/pattern words in ROF
Definition CTF.h:63
std::vector< uint16_t > stripID
time increment with respect of previous digit in TDC channel (about 24.4 ps) within timeframe
Definition CTF.h:68
std::vector< uint8_t > chanInStrip
increment of stripID wrt that of prev. strip
Definition CTF.h:69
std::vector< int32_t > orbitIncROF
increment of ROF BC wrt BC of previous ROF
Definition CTF.h:60
std::vector< uint32_t > ndigROF
increment of ROF orbit wrt orbit of previous ROF
Definition CTF.h:61
std::vector< int16_t > timeFrameInc
number of diagnostic/pattern words per crate in ROF
Definition CTF.h:66
std::vector< uint16_t > timeTDCInc
time increment with respect of previous digit in TimeFrame units
Definition CTF.h:67
CompressedInfos()=default
explict patterns container
std::vector< uint16_t > tot
channel in strip 0-95 (ordered in time)
Definition CTF.h:70
std::vector< uint8_t > pattMap
Time-Over-Threshold in TOF channel (about 48.8 ps)
Definition CTF.h:71