Project
Loading...
Searching...
No Matches
dataSamplingStandalone.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
12
#include "
Framework/ConfigParamSpec.h
"
13
#include "
DataSampling/DataSampling.h
"
14
#include "
Framework/CompletionPolicyHelpers.h
"
15
#include <vector>
16
17
using namespace
o2::framework
;
18
using namespace
o2::utilities
;
19
20
void
customize
(std::vector<CompletionPolicy>& policies)
21
{
22
DataSampling::CustomizeInfrastructure
(policies);
23
}
24
25
void
customize
(std::vector<ChannelConfigurationPolicy>& policies)
26
{
27
DataSampling::CustomizeInfrastructure
(policies);
28
}
29
30
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
31
{
32
workflowOptions.push_back(
ConfigParamSpec
{
"config"
, VariantType::String,
""
, {
"path to the Data Sampling configuration file"
}});
33
workflowOptions.push_back(
ConfigParamSpec
{
"dispatchers"
, VariantType::Int, 1, {
"amount of parallel Dispatchers"
}});
34
}
35
36
#include "
Framework/runDataProcessing.h
"
37
38
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& config)
39
{
40
auto
configurationPath = config.
options
().
get
<std::string>(
"config"
);
41
auto
numberOfDispatchers = config.
options
().
get
<
int
>(
"dispatchers"
);
42
43
WorkflowSpec
specs;
44
DataSampling::GenerateInfrastructure
(specs, configurationPath, numberOfDispatchers);
45
return
specs;
46
}
CompletionPolicyHelpers.h
ConfigParamSpec.h
DataSampling.h
Definition of O2 Data Sampling, v1.0.
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
o2::utilities::DataSampling::CustomizeInfrastructure
static void CustomizeInfrastructure(std::vector< framework::CompletionPolicy > &)
Configures dispatcher to consume any data immediately.
Definition
DataSampling.cxx:112
o2::utilities::DataSampling::GenerateInfrastructure
static void GenerateInfrastructure(framework::WorkflowSpec &workflow, const std::string &policiesSource, size_t threads=1, const std::string &host="")
Generates data sampling infrastructure.
Definition
DataSampling.cxx:40
customize
void customize(std::vector< CompletionPolicy > &policies)
Definition
dataSamplingStandalone.cxx:20
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
Definition
dataSamplingStandalone.cxx:38
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::utilities
A header which contains some meta-data generated by Data Sampling.
Definition
DataSampling.h:38
runDataProcessing.h
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
Utilities
DataSampling
src
dataSamplingStandalone.cxx
Generated on Tue Feb 25 2025 23:16:47 for Project by
1.9.8