Project
Loading...
Searching...
No Matches
RecoWorkflow.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
18#include "Framework/Logger.h"
19
21{
22
23framework::WorkflowSpec getWorkflow(bool useMC, const std::string& trmode, o2::gpu::GPUDataTypes::DeviceType dtype,
24 bool upstreamDigits, bool upstreamClusters, bool disableRootOutput, bool useGeom, int useTrig, bool overrideBeamPosition)
25{
27
28 if (!(upstreamDigits || upstreamClusters)) {
29 specs.emplace_back(o2::its3::getITS3DigitReaderSpec(useMC, false, "it3digits.root"));
30 }
31
32 if (!upstreamClusters) {
33 specs.emplace_back(o2::its3::getClustererSpec(useMC));
34 }
35
36 if (!disableRootOutput) {
37 specs.emplace_back(o2::its3::getClusterWriterSpec(useMC));
38 }
39
40 if (trmode != "off") {
41 specs.emplace_back(o2::its3::getTrackerSpec(useMC, useGeom, useTrig, trmode, overrideBeamPosition, dtype));
42
43 if (!disableRootOutput) {
44 specs.emplace_back(o2::its3::getTrackWriterSpec(useMC));
45 }
46 }
47
48 return specs;
49}
50
51} // namespace o2::its3::reco_workflow
std::vector< DataProcessorSpec > WorkflowSpec
framework::WorkflowSpec getWorkflow(bool useMC, const std::string &trmode, o2::gpu::GPUDataTypes::DeviceType dtype, bool upstreamDigits, bool upstreamClusters, bool disableRootOutput, bool useGeom, int useTrig, bool overrideBeamPosition)
o2::framework::DataProcessorSpec getTrackWriterSpec(bool useMC)
framework::DataProcessorSpec getTrackerSpec(bool useMC, bool useGeom, int useTrig, const std::string &trMode, const bool overrBeamEst=false, gpu::GPUDataTypes::DeviceType dType=gpu::GPUDataTypes::DeviceType::CPU)
framework::DataProcessorSpec getClusterWriterSpec(bool useMC)
framework::DataProcessorSpec getClustererSpec(bool useMC)
framework::DataProcessorSpec getITS3DigitReaderSpec(bool useMC=true, bool useCalib=false, std::string defname="it3digits.root")