-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathUtils.h
More file actions
56 lines (45 loc) · 2.29 KB
/
Utils.h
File metadata and controls
56 lines (45 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
/// \file Utils.h
/// \brief A collection of , v0.1
///
/// \author Gabriele Gaetano Fronzé, gfronze@cern.ch
#ifndef UTILS_H
#define UTILS_H
#include "Framework/DataProcessorSpec.h"
#include "MemoryResources/MemoryResources.h"
namespace o2f = o2::framework;
namespace o2
{
namespace workflows
{
//
o2f::Output getOutput(const o2f::OutputSpec outputSpec);
std::shared_ptr<std::vector<o2f::Output>> getOutputList(const o2f::Outputs outputSpecs);
// Broadcaster implementations
o2f::DataProcessorSpec defineBroadcaster(std::string devName, o2f::InputSpec usrInput, o2f::Outputs usrOutputs,
std::function<size_t(o2f::DataRef)> const func);
o2f::DataProcessorSpec defineBroadcaster(std::string devName, o2f::InputSpec usrInput, o2f::Outputs usrOutputs,
size_t fixMsgSize);
o2f::DataProcessorSpec defineBroadcaster(std::string devName, o2f::InputSpec usrInput, o2f::Outputs usrOutputs);
using OutputBuffer = o2::pmr::vector<char>;
// Merger implementations
o2f::DataProcessorSpec defineMerger(std::string devName, o2f::Inputs usrInputs, o2f::OutputSpec usrOutput,
std::function<void(OutputBuffer, const o2f::DataRef)> const mergerFunc);
o2f::DataProcessorSpec defineMerger(std::string devName, o2f::Inputs usrInputs, o2f::OutputSpec usrOutput);
// Splitter implementation
o2f::DataProcessorSpec defineRouter(std::string devName, o2f::Inputs usrInput, o2f::Outputs usrOutputs,
std::function<size_t(const o2f::DataRef)> const mappingFunc);
// Gatherer implementation
o2f::DataProcessorSpec defineGatherer(std::string devName, o2f::Inputs usrInputs, o2f::OutputSpec usrOutput);
} // namespace workflows
} // namespace o2
#endif // UTILS_H