Project
Loading...
Searching...
No Matches
ColumnDataToLocalBoard.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_COLUMNDATATOLOCALBOARD_H
17#define O2_MID_COLUMNDATATOLOCALBOARD_H
18
19#include <cstdint>
20#include <vector>
21#include <unordered_map>
22#include <gsl/gsl>
25#include "MIDBase/Mapping.h"
26#include "MIDRaw/CrateMapper.h"
27
28namespace o2
29{
30namespace mid
31{
33{
34 public:
35 void process(gsl::span<const ColumnData> data, bool allowEmpty = false);
37 const std::unordered_map<uint8_t, ROBoard> getDataMap() const { return mLocalBoardsMap; }
39 std::vector<ROBoard> getData() const;
40
41 private:
42 std::unordered_map<uint8_t, ROBoard> mLocalBoardsMap;
43 CrateMapper mCrateMapper;
44 Mapping mMapping;
45};
46
47} // namespace mid
48} // namespace o2
49
50#endif /* O2_MID_COLUMNDATATOLOCALBOARD_H */
Strip pattern (aka digits)
Mapper to convert the RO Ids to a format suitable for O2.
Mapping for MID.
Structure to store the readout board information.
const std::unordered_map< uint8_t, ROBoard > getDataMap() const
Gets the output data as a map.
std::vector< ROBoard > getData() const
Gets vector of ROBoard.
GLboolean * data
Definition glcorearb.h:298
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...