Project
Loading...
Searching...
No Matches
RawDataChecker.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
16#ifndef O2_MID_RAWDATACHECKER_H
17#define O2_MID_RAWDATACHECKER_H
18
19#include <array>
20#include <string>
21#include <gsl/gsl>
23#include "MIDRaw/CrateMasks.h"
27
28namespace o2
29{
30namespace mid
31{
33{
34 public:
35 void init(const CrateMasks& masks);
36 bool process(gsl::span<const ROBoard> localBoards, gsl::span<const ROFRecord> rofRecords, gsl::span<const ROFRecord> pageRecords);
37 bool checkMissingLinks(bool clear = true);
39 unsigned int getNEventsProcessed() const;
41 unsigned int getNEventsFaulty() const;
43 unsigned int getNBusyRaised() const;
45 std::string getDebugMessage() const { return mDebugMsg; }
46 void clear(bool all = false);
47
49 void setElectronicsDelay(const ElectronicsDelay& electronicsDelay) { mElectronicsDelay = electronicsDelay; }
50
51 void setSyncTrigger(uint32_t syncTrigger);
52
53 private:
54 std::array<GBTRawDataChecker, crateparams::sNGBTs> mCheckers{};
55 std::string mDebugMsg{};
56 ElectronicsDelay mElectronicsDelay{};
57};
58} // namespace mid
59} // namespace o2
60
61#endif /* O2_MID_RAWDATACHECKER_H */
MID crate masks.
Delay parameters for MID electronics.
Class to check the raw data from a GBT link.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
Definition of the MID event record.
Structure to store the readout board information.
void setSyncTrigger(uint32_t syncTrigger)
void setElectronicsDelay(const ElectronicsDelay &electronicsDelay)
Sets the delay in the electronics.
void init(const CrateMasks &masks)
std::string getDebugMessage() const
Gets the debug message.
unsigned int getNEventsFaulty() const
Gets the number of faulty events.
bool checkMissingLinks(bool clear=true)
unsigned int getNEventsProcessed() const
Gets the number of processed events.
unsigned int getNBusyRaised() const
Gets the number of busy raised.
simClustering correlation clear()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...