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
15
16using namespace o2::framework;
17
18using namespace o2::framework;
19
20// customize the completion policy
21void customize(std::vector<o2::framework::CompletionPolicy>& policies)
22{
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",
28 InputSpec{"cluster", ConcreteDataTypeMatcher{"TPC", "CLUSTERNATIVE"}})());
29}
30
31// we need to add workflow options before including Framework/runDataProcessing
32void 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
45
47{
48 using namespace o2::tpc;
49 return WorkflowSpec{getClusterQCSpec()};
50}
Workflow to run clusterQC.
DPL completion policy helper for TPC scetor data.
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
Global TPC definitions and constants.
Definition SimTraits.h:167
void customize(std::vector< o2::framework::CompletionPolicy > &policies)
WorkflowSpec defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.