Project
Loading...
Searching...
No Matches
mft-cluster-writer-workflow.cxx
Go to the documentation of this file.
1
// Copyright 2019-2026 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 "
ITSMFTWorkflow/ClusterWriterSpec.h
"
13
#include "
DataFormatsITSMFT/DPLAlpideParamInitializer.h
"
14
#include "
Framework/ConfigParamSpec.h
"
15
#include "
Framework/CompletionPolicyHelpers.h
"
16
17
using namespace
o2::framework
;
18
19
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
20
{
21
// ordered policies for the writers
22
policies.push_back(
CompletionPolicyHelpers::consumeWhenAllOrdered
(
".*(?:MFT|mft).*[W,w]riter.*"
));
23
}
24
25
void
customize
(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
26
{
27
workflowOptions.push_back(
28
ConfigParamSpec
{
"disable-mc"
,
o2::framework::VariantType::Bool
,
false
, {
"disable MC propagation even if available"
}});
29
o2::itsmft::DPLAlpideParamInitializer::addMFTConfigOption
(workflowOptions);
30
}
31
32
#include "
Framework/runDataProcessing.h
"
33
34
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& configcontext)
35
{
36
auto
useMC = !configcontext.
options
().
get
<
bool
>(
"disable-mc"
);
37
auto
doStag =
o2::itsmft::DPLAlpideParamInitializer::isMFTStaggeringEnabled
(configcontext);
38
WorkflowSpec
specs;
39
specs.emplace_back(
o2::itsmft::getMFTClusterWriterSpec
(useMC, doStag));
40
return
specs;
41
}
CompletionPolicyHelpers.h
ConfigParamSpec.h
DPLAlpideParamInitializer.h
ClusterWriterSpec.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
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition
mft-cluster-writer-workflow.cxx:34
customize
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Definition
mft-cluster-writer-workflow.cxx:19
o2::framework
Defining ITS Vertex explicitly as messageable.
Definition
Cartesian.h:288
o2::framework::VariantType::Bool
@ Bool
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::itsmft::getMFTClusterWriterSpec
framework::DataProcessorSpec getMFTClusterWriterSpec(bool useMC, bool doStag)
Definition
ClusterWriterSpec.cxx:118
runDataProcessing.h
o2::framework::CompletionPolicyHelpers::consumeWhenAllOrdered
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
Definition
CompletionPolicyHelpers.cxx:176
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
o2::itsmft::DPLAlpideParamInitializer::addMFTConfigOption
static void addMFTConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts)
Definition
DPLAlpideParamInitializer.cxx:31
o2::itsmft::DPLAlpideParamInitializer::isMFTStaggeringEnabled
static bool isMFTStaggeringEnabled(o2::framework::ConfigContext const &cfgc)
Definition
DPLAlpideParamInitializer.cxx:41
Detectors
ITSMFT
MFT
workflow
src
mft-cluster-writer-workflow.cxx
Generated on Tue Apr 28 2026 09:31:48 for Project by
1.9.8