Project
Loading...
Searching...
No Matches
track-and-cluster-filter.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 "
TPCCalibration/TrackDump.h
"
21
#include "
TPCReaderWorkflow/TPCSectorCompletionPolicy.h
"
22
#include "
TPCWorkflow/TrackAndClusterFilterSpec.h
"
23
24
using namespace
o2::framework
;
25
26
// customize the completion policy
27
void
customize
(std::vector<o2::framework::CompletionPolicy>& policies)
28
{
29
using
o2::framework::CompletionPolicy
;
30
// the TPC sector completion policy checks when the set of TPC/CLUSTERNATIVE data is complete
31
// in addition we require to have input from all other routes
32
policies.push_back(
o2::tpc::TPCSectorCompletionPolicy
(
"tpc-track-and-cluster-filter"
,
33
o2::tpc::TPCSectorCompletionPolicy::Config::RequireAll
,
34
InputSpec
{
"cluster"
,
ConcreteDataTypeMatcher
{
"TPC"
,
"CLUSTERNATIVE"
}})());
35
}
36
37
// we need to add workflow options before including Framework/runDataProcessing
38
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
39
{
40
41
std::vector<ConfigParamSpec> options{
42
// {"use-digit-input", VariantType::Bool, false, {"use TPC digits as input, instead of raw data"}},
43
{
"data-description"
, VariantType::String,
"TRACKS"
, {
"Can be used to select filterd tracks, e.g. 'LASERTRACKS', 'MIPS'"
}},
44
{
"write-mc"
, VariantType::Bool,
false
, {
"Can be used to write mc labels, e.g. 'TPCTracksMCTruth'"
}},
45
};
46
47
std::swap(workflowOptions, options);
48
}
49
50
#include "
Framework/runDataProcessing.h
"
51
52
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfg)
53
{
54
// const bool useDigitsAsInput = cfg.options().get<bool>("use-digit-input");
55
const
auto
dataDescription = cfg.
options
().
get
<std::string>(
"data-description"
);
56
const
auto
writeMC = cfg.
options
().
get
<
bool
>(
"write-mc"
);
57
58
WorkflowSpec
specs;
59
60
specs.emplace_back(
o2::tpc::getTrackAndClusterFilterSpec
(dataDescription, writeMC));
61
62
return
specs;
63
}
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigParamSpec.h
ControlService.h
DataProcessorSpec.h
TPCSectorCompletionPolicy.h
DPL completion policy helper for TPC scetor data.
TrackAndClusterFilterSpec.h
track and cluster filtering
TrackDump.h
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::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::getTrackAndClusterFilterSpec
o2::framework::DataProcessorSpec getTrackAndClusterFilterSpec(const std::string dataDescriptionStr="TRACKS", const bool writeMC=false)
Definition
TrackAndClusterFilterSpec.cxx:122
runDataProcessing.h
o2::framework::CompletionPolicy
Definition
CompletionPolicy.h:34
o2::framework::ConcreteDataTypeMatcher
Definition
ConcreteDataMatcher.h:21
o2::framework::InputSpec
Definition
InputSpec.h:31
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfg)
This function hooks up the the workflow specifications into the DPL driver.
Definition
track-and-cluster-filter.cxx:52
customize
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
Definition
track-and-cluster-filter.cxx:27
Detectors
TPC
workflow
src
track-and-cluster-filter.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8