Project
Loading...
Searching...
No Matches
TRDEventDisplayFeedWorkflow.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 "
TRDWorkflowIO/TRDDigitReaderSpec.h
"
13
#include "
TRDWorkflowIO/TRDTrackReaderSpec.h
"
14
#include "
TRDWorkflow/TRDEventDisplayFeedSpec.h
"
15
#include "
TRDWorkflowIO/TRDTrackletReaderSpec.h
"
16
17
#include "
CommonUtils/ConfigurableParam.h
"
18
19
using namespace
o2::framework
;
20
21
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
22
{
23
std::vector<o2::framework::ConfigParamSpec> options{
24
{
"disable-root-input"
,
o2::framework::VariantType::Bool
,
false
, {
"disable root-files input reader"
}},
25
{
"nEventsMax"
,
o2::framework::VariantType::Int
, 5, {
"Number of events to display"
}},
26
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings ..."
}}};
27
28
std::swap(workflowOptions, options);
29
}
30
31
#include "
Framework/runDataProcessing.h
"
32
33
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& configcontext)
34
{
35
o2::conf::ConfigurableParam::updateFromString
(configcontext.
options
().
get
<std::string>(
"configKeyValues"
));
36
37
WorkflowSpec
spec;
38
39
bool
useMC =
true
;
40
if
(!configcontext.
options
().
get
<
bool
>(
"disable-root-input"
)) {
41
spec.emplace_back(
o2::trd::getTRDGlobalTrackReaderSpec
(useMC));
42
spec.emplace_back(
o2::trd::getTRDTrackletReaderSpec
(useMC,
false
));
43
spec.emplace_back(
o2::trd::getTRDDigitReaderSpec
(useMC));
44
}
45
46
int
nEventsMax = configcontext.
options
().
get
<
int
>(
"nEventsMax"
);
47
spec.emplace_back(
o2::trd::getTRDEventDisplayFeedSpec
(nEventsMax));
48
49
return
spec;
50
}
ConfigurableParam.h
TRDDigitReaderSpec.h
TRDEventDisplayFeedSpec.h
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
Definition
TRDEventDisplayFeedWorkflow.cxx:33
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
TRDEventDisplayFeedWorkflow.cxx:21
TRDTrackReaderSpec.h
TRDTrackletReaderSpec.h
o2::conf::ConfigurableParam::updateFromString
static void updateFromString(std::string const &)
Definition
ConfigurableParam.cxx:433
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::VariantType::Int
@ Int
o2::framework::VariantType::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::trd::getTRDEventDisplayFeedSpec
o2::framework::DataProcessorSpec getTRDEventDisplayFeedSpec(int nEventsMax)
Definition
TRDEventDisplayFeedSpec.cxx:262
o2::trd::getTRDTrackletReaderSpec
framework::DataProcessorSpec getTRDTrackletReaderSpec(bool useMC, bool useCalibratedTracklets)
Definition
TRDTrackletReaderSpec.cxx:97
o2::trd::getTRDGlobalTrackReaderSpec
framework::DataProcessorSpec getTRDGlobalTrackReaderSpec(bool useMC)
read ITS-TPC-TRD matched tracks from a root file
Definition
TRDTrackReaderSpec.cxx:111
o2::trd::getTRDDigitReaderSpec
o2::framework::DataProcessorSpec getTRDDigitReaderSpec(bool useMC, bool trigRec=true, int dataSubspec=1)
Definition
TRDDigitReaderSpec.cxx:76
runDataProcessing.h
Detectors
TRD
workflow
src
TRDEventDisplayFeedWorkflow.cxx
Generated on Tue Feb 25 2025 23:16:32 for Project by
1.9.8