40void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
45void customize(std::vector<o2::framework::CompletionPolicy>& policies)
51void customize(std::vector<ConfigParamSpec>& workflowOptions)
53 std::vector<ConfigParamSpec> options{
60 {
"digits", VariantType::Bool,
false, {
"Write digits associated to tracks"}},
61 {
"triggered", VariantType::Bool,
false, {
"use MID to trigger the MCH reconstruction"}},
62 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}}};
64 std::swap(workflowOptions, options);
73 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
74 auto disableRootInput = configcontext.
options().
get<
bool>(
"disable-root-input");
76 auto triggered = configcontext.
options().
get<
bool>(
"triggered");
77 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
78 auto disableClustering = configcontext.
options().
get<
bool>(
"disable-clustering");
79 auto disableTracking = disableClustering || configcontext.
options().
get<
bool>(
"disable-tracking");
80 auto disableAllClustersRootOutput = !configcontext.
options().
get<
bool>(
"enable-clusters-root-output");
84 if (!disableRootInput) {
94 "DIGITROFS",
"F-DIGITROFS",
95 "DIGITLABELS",
"F-DIGITLABELS"));
99 "F-DIGITS",
"E-F-DIGITS",
100 "F-DIGITROFS",
"E-F-DIGITROFS",
101 "F-DIGITLABELS",
"E-F-DIGITLABELS"));
110 triggered ?
"E-F-DIGITS" :
"F-DIGITS",
111 triggered ?
"E-F-DIGITROFS" :
"TC-F-DIGITROFS"));
113 if (!disableClustering) {
120 if (!disableRootOutput && !disableAllClustersRootOutput) {
123 if (!disableTracking) {
127 triggered ?
"E-F-DIGITROFS" :
"TC-F-DIGITROFS",
128 triggered ?
"E-F-DIGITLABELS" :
"F-DIGITLABELS"));
131 if (!disableRootOutput) {
138 !(disableClustering || disableTracking)));
139 if (!disableRootOutput) {
Definition of a data processor to run the GEM MLEM cluster finder.
Definition of a data processor to run the original MLEM cluster finder.
Configurable parameters for MCH clustering.
Definition of a data processor to merge the processing errors in one single output.
Definition of a data processor to group MCH digits based on MID information.
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Definition of a data processor to run the preclusterizer.
Definition of a data processor to run the time clusterizer.
Definition of a data processor to read clusters, reconstruct tracks and send them.
Definition of a data processor to match the reconstructed tracks with the simulated ones.
static const StatusMapCreatorParam & Instance()
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTrackMCLabelFinderSpec(const char *specName, const char *digitRofDataDescription, const char *digitLabelDataDescription)
o2::framework::DataProcessorSpec getClusterTransformerSpec(const char *specName="mch-cluster-transformer", bool disableCcdb=false)
o2::framework::DataProcessorSpec getPreClusterFinderSpec(const char *specName="PreClusterFinder", std::string_view inputDigitDataDescription="F-DIGITS", std::string_view inputDigitRofDataDescription="TC-F-DIGITROFS")
o2::framework::DataProcessorSpec getDigitFilteringSpec(bool useMC, std::string_view specName="mch-digit-filtering", std::string_view inputDigitDataDescription="DIGITS", std::string_view outputDigitDataDescription="F-DIGITS", std::string_view inputDigitRofDataDescription="DIGITROFS", std::string_view outputDigitRofDataDescription="F-DIGITROFS", std::string_view inputDigitLabelDataDescription="DIGITLABELS", std::string_view outputDigitLabelDataDescription="F-DIGITLABELS")
framework::DataProcessorSpec getDigitReaderSpec(bool useMC, std::string_view specName="mch-digit-reader", std::string_view outputDigitDataDescription="DIGITS", std::string_view outputDigitRofDataDescription="DIGITROFS", std::string_view outputDigitLabelDataDescription="DIGITLABELS")
framework::DataProcessorSpec getErrorWriterSpec(const char *specName="mch-error-writer")
o2::framework::DataProcessorSpec getClusterWriterSpec(bool useMC, const char *specName="mch-cluster-writer", bool global=true, bool digits=true)
o2::framework::DataProcessorSpec getClusterFinderGEMSpec(const char *specName)
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)
o2::framework::DataProcessorSpec getTrackWriterSpec(bool useMC, const char *specName="mch-track-writer", const char *fileName="mchtracks.root", bool digits=false)
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")
DataProcessorSpec getErrorMergerSpec(const char *specName, bool preclustering, bool clustering, bool tracking)
o2::framework::DataProcessorSpec getStatusMapCreatorSpec(std::string_view specName="mch-statusmap-creator")
o2::framework::DataProcessorSpec getClusterFinderOriginalSpec(const char *specName="mch-cluster-finder-original")
o2::framework::DataProcessorSpec getTrackFinderSpec(const char *specName="mch-track-finder", bool computeTime=true, bool digits=false, bool disableCCDBMagField=false, bool original=false)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))
std::vector< Digit > digits