Project
Loading...
Searching...
No Matches
SyncPatternMonitor.cxx
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
14
15
#include "
TPCReconstruction/SyncPatternMonitor.h
"
16
#include <iostream>
17
18
using namespace
o2::tpc
;
19
constexpr
std::array<short, 32> SyncPatternMonitor::SYNC_PATTERN;
20
21
SyncPatternMonitor::SyncPatternMonitor
()
22
:
SyncPatternMonitor
(-1, -1)
23
{
24
}
25
26
SyncPatternMonitor::SyncPatternMonitor
(
int
sampa,
int
lowHigh)
27
: mPatternFound(false), mPosition(SYNC_START), mHwWithPattern(-1), mSampa(sampa), mLowHigh(lowHigh), mCheckedWords(0)
28
{
29
}
30
31
SyncPatternMonitor::SyncPatternMonitor
(
const
SyncPatternMonitor
&
other
) =
default
;
32
33
void
SyncPatternMonitor::reset
()
34
{
35
mPatternFound =
false
;
36
mPosition = SYNC_START;
37
mHwWithPattern = -1;
38
mCheckedWords = 0;
39
LOG
(
debug
) <<
"Sync pattern monitoring for SAMPA "
<< mSampa <<
" ("
<< ((mLowHigh == 0) ?
"low"
:
"high"
) <<
" bits) "
40
<<
"was resetted"
;
41
}
SyncPatternMonitor.h
Class to monitor the data stream and detect synchronization patterns.
debug
std::ostringstream debug
Definition
VariantJSONHelpers.h:307
o2::tpc::SyncPatternMonitor
Class to monitor the data stream and detect synchronization patterns.
Definition
SyncPatternMonitor.h:32
o2::tpc::SyncPatternMonitor::SyncPatternMonitor
SyncPatternMonitor()
Default Constructor.
Definition
SyncPatternMonitor.cxx:21
o2::tpc::SyncPatternMonitor::reset
void reset()
Reset function to clear history.
Definition
SyncPatternMonitor.cxx:33
o2::tpc
Global TPC definitions and constants.
Definition
SimTraits.h:167
other
VectorOfTObjectPtrs other
Definition
test_Algorithm.cxx:501
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
Detectors
TPC
reconstruction
src
SyncPatternMonitor.cxx
Generated on Tue Feb 25 2025 23:16:29 for Project by
1.9.8