Project
Loading...
Searching...
No Matches
tpc-cluster-qc.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 "
TPCWorkflow/ClusterQCSpec.h
"
13
#include "
TPCReaderWorkflow/TPCSectorCompletionPolicy.h
"
14
#include "
Framework/runDataProcessing.h
"
15
16
using namespace
o2::framework
;
17
18
using namespace
o2::framework
;
19
20
// customize the completion policy
21
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
22
{
23
using
o2::framework::CompletionPolicy
;
24
// the TPC sector completion policy checks when the set of TPC/CLUSTERNATIVE data is complete
25
// in addition we require to have input from all other routes
26
policies.push_back(
o2::tpc::TPCSectorCompletionPolicy
(
"tpc-track-and-cluster-filter"
,
27
o2::tpc::TPCSectorCompletionPolicy::Config::RequireAll
,
28
InputSpec
{
"cluster"
,
ConcreteDataTypeMatcher
{
"TPC"
,
"CLUSTERNATIVE"
}})());
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
//{"data-description", VariantType::String, "TRACKS", {"Can be used to select filterd tracks, e.g. 'LASERTRACKS', 'MIPS'"}},
38
//{"write-mc", VariantType::Bool, false, {"Can be used to write mc labels, e.g. 'TPCTracksMCTruth'"}},
39
};
40
41
std::swap(workflowOptions, options);
42
}
43
44
#include "
Framework/runDataProcessing.h
"
45
46
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
&)
47
{
48
using namespace
o2::tpc
;
49
return
WorkflowSpec
{getClusterQCSpec()};
50
}
ClusterQCSpec.h
Workflow to run clusterQC.
TPCSectorCompletionPolicy.h
DPL completion policy helper for TPC scetor data.
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::tpc::TPCSectorCompletionPolicy
Definition
TPCSectorCompletionPolicy.h:70
o2::tpc::TPCSectorCompletionPolicy::Config::RequireAll
@ RequireAll
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::tpc
Global TPC definitions and constants.
Definition
SimTraits.h:167
runDataProcessing.h
o2::framework::CompletionPolicy
Definition
CompletionPolicy.h:34
o2::framework::ConcreteDataTypeMatcher
Definition
ConcreteDataMatcher.h:21
o2::framework::InputSpec
Definition
InputSpec.h:31
customize
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Definition
tpc-cluster-qc.cxx:21
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tpc-cluster-qc.cxx:46
Detectors
TPC
workflow
src
tpc-cluster-qc.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8