Skip to content

Commit c0e0d04

Browse files
Maciej Slupeckishahor02
authored andcommitted
[FV0] Enable data sampling - to be used for calibration
1 parent 2823a5e commit c0e0d04

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

Detectors/FIT/FV0/calibration/workflow/FV0TFProcessor-Workflow.cxx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,28 @@ class FV0TFProcessor final : public o2::framework::Task
4141

4242
} // namespace o2::fv0
4343

44+
void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
45+
{
46+
std::vector<ConfigParamSpec> options;
47+
options.push_back(ConfigParamSpec{"dispatcher-mode", VariantType::Bool, false, {"Dispatcher mode (FV0/SUB_DIGITSCH and FV0/SUB_DIGITSBC DPL channels should be applied as dispatcher output)."}});
48+
std::swap(workflowOptions, options);
49+
}
50+
4451
#include "Framework/runDataProcessing.h"
4552

46-
WorkflowSpec defineDataProcessing(ConfigContext const&)
53+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
4754
{
48-
55+
Inputs inputs{};
56+
if (cfgc.options().get<bool>("dispatcher-mode")) {
57+
inputs.push_back(InputSpec{{"channels"}, "FV0", "SUB_DIGITSCH"});
58+
inputs.push_back(InputSpec{{"digits"}, "FV0", "SUB_DIGITSBC"});
59+
} else {
60+
inputs.push_back(InputSpec{{"channels"}, "FV0", "DIGITSCH"});
61+
inputs.push_back(InputSpec{{"digits"}, "FV0", "DIGITSBC"});
62+
}
4963
DataProcessorSpec dataProcessorSpec{
5064
"FV0TFProcessor",
51-
Inputs{
52-
{{"channels"}, "FV0", "DIGITSCH"},
53-
{{"digits"}, "FV0", "DIGITSBC"},
54-
},
65+
inputs,
5566
Outputs{
5667
{{"calib"}, "FV0", "CALIB_INFO"}},
5768
AlgorithmSpec{adaptFromTask<o2::fv0::FV0TFProcessor>()},

0 commit comments

Comments
 (0)