CbmRoot
Loading...
Searching...
No Matches
UnpackMSBase.h
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4#pragma once
5
6#include <utility>
7#include <vector>
8
9namespace fles
10{
11 class MicrosliceDescriptor;
12}
13
14namespace cbm::algo
15{
16
17 template<typename D, typename M, typename A>
19
20 public:
21 using Digi_t = D;
22 using Monitor_t = M;
23 using Aux_t = A;
24
25 using Result_t = std::tuple<std::vector<Digi_t>, Monitor_t, Aux_t>;
26
27 virtual ~UnpackMSBase() = default;
28
29 virtual Result_t operator()(const uint8_t* msContent, const fles::MicrosliceDescriptor& msDescr,
30 const uint64_t tTimeslice) const = 0;
31 };
32
33} // namespace cbm::algo
virtual ~UnpackMSBase()=default
virtual Result_t operator()(const uint8_t *msContent, const fles::MicrosliceDescriptor &msDescr, const uint64_t tTimeslice) const =0
std::tuple< std::vector< Digi_t >, Monitor_t, Aux_t > Result_t
Definition Reco.h:14