Project
Loading...
Searching...
No Matches
tpc-monitor-workflow.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 <vector>
13
14
#include "
Framework/WorkflowSpec.h
"
15
#include "
Framework/DataProcessorSpec.h
"
16
#include "
Framework/ControlService.h
"
17
#include "
Framework/ConfigParamSpec.h
"
18
#include "
Framework/CompletionPolicy.h
"
19
#include "
Framework/CompletionPolicyHelpers.h
"
20
#include "
TPCWorkflow/MonitorWorkflowSpec.h
"
21
22
using namespace
o2::framework
;
23
24
// customize the completion policy
25
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
26
{
27
using
o2::framework::CompletionPolicy
;
28
policies.push_back(
CompletionPolicyHelpers::defineByName
(
"tpc-monitor-workflow"
, CompletionPolicy::CompletionOp::Consume));
29
}
30
31
// we need to add workflow options before including Framework/runDataProcessing
32
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
33
{
34
35
std::vector<ConfigParamSpec> options{
36
{
"use-digit-input"
, VariantType::Bool,
false
, {
"use TPC digits as input, instead of raw data"
}},
37
{
"input-spec"
, VariantType::String,
"tpcraw:TPC/RAWDATA"
, {
"selection string input specs"
}},
38
};
39
40
std::swap(workflowOptions, options);
41
}
42
43
#include "
Framework/runDataProcessing.h
"
44
45
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfg)
46
{
47
const
bool
useDigitsAsInput = cfg.
options
().
get
<
bool
>(
"use-digit-input"
);
48
auto
inputSpec = cfg.
options
().
get
<std::string>(
"input-spec"
);
49
if
(useDigitsAsInput) {
50
inputSpec =
"tpcdigits:TPC/DIGITS"
;
51
}
52
53
WorkflowSpec
specs;
54
55
specs.emplace_back(
o2::tpc::getMonitorWorkflowSpec
(inputSpec));
56
57
return
specs;
58
}
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ControlService.h
DataProcessorSpec.h
MonitorWorkflowSpec.h
Raw data monitor workflow.
WorkflowSpec.h
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::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::tpc::getMonitorWorkflowSpec
o2::framework::DataProcessorSpec getMonitorWorkflowSpec(std::string inputSpec="tpcraw:TPC/RAWDATA")
Definition
MonitorWorkflowSpec.cxx:164
runDataProcessing.h
o2::framework::CompletionPolicyHelpers::defineByName
static CompletionPolicy defineByName(std::string const &name, CompletionPolicy::CompletionOp op)
Definition
CompletionPolicyHelpers.cxx:76
o2::framework::CompletionPolicy
Definition
CompletionPolicy.h:34
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfg)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tpc-monitor-workflow.cxx:45
customize
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Definition
tpc-monitor-workflow.cxx:25
Detectors
TPC
workflow
src
tpc-monitor-workflow.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8