Project
Loading...
Searching...
No Matches
FV0ChannelTimeCalibrationSpec.h
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#ifndef O2_FV0CHANNELTIMECALIBRATIONSPEC_H
13#define O2_FV0CHANNELTIMECALIBRATIONSPEC_H
14
20
21namespace o2::fv0
22{
23
25{
28 std::vector<o2::framework::InputSpec> inputs;
29 std::vector<o2::framework::OutputSpec> outputs;
30 const o2::header::DataDescription inputDataDescriptor{"CALIB_INFO"};
31 const o2::header::DataDescription outputDataDescriptor{"FV0_TIME_CALIB"};
32 CalibrationDeviceType::prepareVecInputSpec(inputs, o2::header::gDataOriginFV0, inputDataDescriptor);
33 CalibrationDeviceType::prepareVecOutputSpec(outputs, outputDataDescriptor);
34 auto ccdbRequest = std::make_shared<o2::base::GRPGeomRequest>(true, // orbitResetTime
35 true, // GRPECS=true
36 false, // GRPLHCIF
37 false, // GRPMagField
38 false, // askMatLUT
40 inputs);
42 "calib-fv0-channel-time",
43 inputs,
44 outputs,
45 o2::framework::AlgorithmSpec{o2::framework::adaptFromTask<CalibrationDeviceType>(ccdbRequest, outputDataDescriptor)},
47 {"tf-per-slot", o2::framework::VariantType::UInt32, 5u, {""}},
48 {"max-delay", o2::framework::VariantType::UInt32, 3u, {""}},
49 {"updateInterval", o2::framework::VariantType::UInt32, 10u, {""}},
50 {"extra-info-per-slot", o2::framework::VariantType::String, "", {"Extra info for time slot(usually for debugging)"}}}};
51}
52} // namespace o2::fv0
53
54#endif // O2_FV0CHANNELTIMECALIBRATIONSPEC_H
constexpr o2::header::DataOrigin gDataOriginFV0
Definition DataHeader.h:567
std::vector< ConfigParamSpec > Options
o2::framework::DataProcessorSpec getFV0ChannelTimeCalibrationSpec()