Project
Loading...
Searching...
No Matches
digits-to-timeclusters-workflow.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
22#include "Framework/Task.h"
24
25using namespace o2;
26using namespace o2::framework;
27
28void customize(std::vector<ConfigParamSpec>& workflowOptions)
29{
30 workflowOptions.push_back(ConfigParamSpec{"input-digits-data-description", VariantType::String, "F-DIGITS", {"description string for the input digit data"}});
31 workflowOptions.push_back(ConfigParamSpec{"input-digitrofs-data-description", VariantType::String, "F-DIGITROFS", {"description string for the input digit rofs data"}});
32 workflowOptions.push_back(ConfigParamSpec{"output-digitrofs-data-description", VariantType::String, "TC-F-DIGITROFS", {"description string for the output digit rofs data"}});
33 workflowOptions.push_back(ConfigParamSpec{
34 "configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}});
35}
36
38
40{
41 o2::conf::ConfigurableParam::updateFromString(cc.options().get<std::string>("configKeyValues"));
42
43 return {
45 "mch-time-clustering",
46 cc.options().get<std::string>("input-digits-data-description"),
47 cc.options().get<std::string>("input-digitrofs-data-description"),
48 cc.options().get<std::string>("output-digitrofs-data-description"))};
49}
Definition of a data processor to run the time clusterizer.
static void updateFromString(std::string const &)
WorkflowSpec defineDataProcessing(const ConfigContext &cc)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTimeClusterFinderSpec(const char *specName="mch-time-cluster-finder", std::string_view inputDigitDataDescription="F-DIGITS", std::string_view inputDigitRofDataDescription="F-DIGITROFS", std::string_view outputDigitRofDataDescription="TC-F-DIGITROFS", std::string_view inputIRFrameDataDescription="ITS/IRFRAMES")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< o2::mch::ChannelCode > cc