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
16#include <iostream>
17
18using namespace o2::tpc;
19constexpr std::array<short, 32> SyncPatternMonitor::SYNC_PATTERN;
20
25
27 : mPatternFound(false), mPosition(SYNC_START), mHwWithPattern(-1), mSampa(sampa), mLowHigh(lowHigh), mCheckedWords(0)
28{
29}
30
32
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}
Class to monitor the data stream and detect synchronization patterns.
std::ostringstream debug
Class to monitor the data stream and detect synchronization patterns.
SyncPatternMonitor()
Default Constructor.
void reset()
Reset function to clear history.
Global TPC definitions and constants.
Definition SimTraits.h:167
VectorOfTObjectPtrs other
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"