Project
Loading...
Searching...
No Matches
event-finder-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
16
17#include <string>
18#include <vector>
23#include "EventFinderSpec.h"
24
25using namespace o2::framework;
26
27void customize(std::vector<ConfigParamSpec>& workflowOptions)
28{
29 workflowOptions.push_back(ConfigParamSpec{"input-digits-data-description", VariantType::String, "F-DIGITS", {"description string for the input MCH digits data"}});
30 workflowOptions.push_back(ConfigParamSpec{"output-digits-data-description", VariantType::String, "E-F-DIGITS", {"description string for the output MCH digits data"}});
31 workflowOptions.push_back(ConfigParamSpec{"input-digitrofs-data-description", VariantType::String, "F-DIGITROFS", {"description string for the input MCH digit rofs data"}});
32 workflowOptions.push_back(ConfigParamSpec{"output-digitrofs-data-description", VariantType::String, "E-F-DIGITROFS", {"description string for the output MCH digit rofs data"}});
33 workflowOptions.push_back(ConfigParamSpec{"input-digitlabels-data-description", VariantType::String, "F-DIGITLABELS", {"description string for the input MCH digit labels data (not used if disable-mc is true)"}});
34 workflowOptions.push_back(ConfigParamSpec{"output-digitlabels-data-description", VariantType::String, "E-F-DIGITLABELS", {"description string for the output MCH digit labels data (not used if disable-mc is true)"}});
35 workflowOptions.push_back(ConfigParamSpec{"disable-mc", VariantType::Bool, false, {"Do not propagate MC info"}});
36 workflowOptions.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}});
37}
38
40
42{
43 o2::conf::ConfigurableParam::updateFromString(cc.options().get<std::string>("configKeyValues"));
45 not cc.options().get<bool>("disable-mc"),
46 "mch-event-finder",
47 cc.options().get<std::string>("input-digits-data-description"),
48 cc.options().get<std::string>("output-digits-data-description"),
49 cc.options().get<std::string>("input-digitrofs-data-description"),
50 cc.options().get<std::string>("output-digitrofs-data-description"),
51 cc.options().get<std::string>("input-digitlabels-data-description"),
52 cc.options().get<std::string>("output-digitlabels-data-description"))};
53}
Definition of a data processor to group MCH digits based on MID information.
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
DataProcessorSpec getEventFinderSpec(bool useMC, std::string_view specName, std::string_view inputDigitDataDescription, std::string_view outputDigitDataDescription, std::string_view inputDigitRofDataDescription, std::string_view outputDigitRofDataDescription, std::string_view inputDigitLabelDataDescription, std::string_view outputDigitLabelDataDescription)
std::vector< o2::mch::ChannelCode > cc