Project
Loading...
Searching...
No Matches
test_SimpleCondition.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
#include "
Framework/DataRefUtils.h
"
12
#include "
Framework/AlgorithmSpec.h
"
13
#include "
Framework/ServiceRegistry.h
"
14
#include "
Framework/runDataProcessing.h
"
15
#include <Monitoring/Monitoring.h>
16
#include "
Framework/ControlService.h
"
17
#include "
Framework/CallbackService.h
"
18
#include "
Framework/Logger.h
"
19
20
using namespace
o2::framework
;
21
using
DataHeader
=
o2::header::DataHeader
;
22
25
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
&)
26
{
27
return
WorkflowSpec
{
28
DataProcessorSpec
{
29
"condition_consumer"
,
//
30
{
31
InputSpec
{
"condition"
,
"TES"
,
"STRING"
, 0, Lifetime::Condition},
//
32
},
//
33
Outputs
{},
//
34
AlgorithmSpec
{
35
[](
ProcessingContext
& ctx) {
36
auto
s = ctx.inputs().get<std::string>(
"condition"
);
37
38
if
(s !=
"Hello"
) {
39
LOG
(error) <<
"Expecting `Hello', found `"
<< s <<
"'"
;
40
}
else
{
41
LOG
(info) <<
"Everything OK"
;
42
}
43
ctx.services().get<
ControlService
>().readyToQuit(QuitRequest::All);
44
}
//
45
}
//
46
}
//
47
};
48
}
AlgorithmSpec.h
CallbackService.h
ControlService.h
DataRefUtils.h
Logger.h
ServiceRegistry.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ControlService
Definition
ControlService.h:40
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::framework::Outputs
std::vector< OutputSpec > Outputs
Definition
DataProcessorSpec.h:30
runDataProcessing.h
o2::framework::AlgorithmSpec
Definition
AlgorithmSpec.h:43
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::InputSpec
Definition
InputSpec.h:31
o2::header::DataHeader
the main header struct
Definition
DataHeader.h:618
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.
Definition
test_SimpleCondition.cxx:25
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
Framework
Core
test
test_SimpleCondition.cxx
Generated on Tue Feb 25 2025 23:16:40 for Project by
1.9.8