Project
Loading...
Searching...
No Matches
FT0EventsPerBcProcessor-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
12#include "FT0EventsPerBcSpec.h"
13#include "Framework/Lifetime.h"
14#include <limits>
15
17{
18 using namespace o2::framework;
20 std::vector<InputSpec> inputs;
21 inputs.emplace_back("digits", "FT0", "DIGITSBC", Lifetime::Timeframe);
22 auto ccdbRequest = std::make_shared<o2::base::GRPGeomRequest>(true, // orbitResetTime
23 false, // GRPECS=true
24 false, // GRPLHCIF
25 false, // GRPMagField
26 false, // askMatLUT
28 inputs);
29 std::vector<OutputSpec> outputs;
30 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "EventsPerBc"}, Lifetime::Timeframe);
31 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "EventsPerBc"}, Lifetime::Timeframe);
32 DataProcessorSpec dataProcessorSpec{
33 "FT0EventsPerBcProcessor",
34 inputs,
35 outputs,
36 AlgorithmSpec(adaptFromTask<FT0EventsPerBcProcessor>(ccdbRequest)),
37 Options{
38 {"slot-len-sec", VariantType::UInt32, 3600u, {"Duration of each slot in seconds"}},
39 {"one-object-per-run", VariantType::Bool, false, {"If set, workflow creates only one calibration object per run"}},
40 {"min-entries-number", VariantType::UInt32, 5000u, {"Minimum number of entries required for a slot to be valid"}},
41 {"min-ampl-side-a", VariantType::Int, 0, {"Amplitude threshold for Side A events"}},
42 {"min-ampl-side-c", VariantType::Int, 0, {"Amplitude threshold for Side C events"}},
43 {"min-sum-of-ampl", VariantType::Int, 0, {"Amplitude threshold for sum of A-side and C-side amplitudes"}}}};
44
45 WorkflowSpec workflow;
46 workflow.emplace_back(dataProcessorSpec);
47 return workflow;
48}
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const &cfgc)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::WorkflowSpec WorkflowSpec
static constexpr o2::header::DataOrigin gDataOriginCDBWrapper
Definition Utils.h:44
static constexpr o2::header::DataOrigin gDataOriginCDBPayload
Definition Utils.h:43