Project
Loading...
Searching...
No Matches
FDDDCSConfigProcessorSpec.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
16
17#ifndef O2_FDD_DCSCONFIGPROCESSOR_H
18#define O2_FDD_DCSCONFIGPROCESSOR_H
19
23#include "Headers/DataHeader.h"
24
25#include <string>
26#include <vector>
27
28namespace o2
29{
30
31namespace framework
32{
33
35{
36 o2::header::DataDescription ddDChM = "FDD_DCHM";
37 std::vector<OutputSpec> outputs;
38 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, ddDChM}, Lifetime::Sporadic);
39 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, ddDChM}, Lifetime::Sporadic);
40
41 return DataProcessorSpec{
42 "fdd-dcs-config-processor",
43 Inputs{{"inputConfig", o2::header::gDataOriginFDD, "DCS_CONFIG_FILE", Lifetime::Sporadic},
44 {"inputConfigFileName", o2::header::gDataOriginFDD, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
45 outputs,
46 AlgorithmSpec{adaptFromTask<o2::fit::FITDCSConfigProcessor>("FDD", ddDChM)},
47 Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}},
48 {"filename-dchm", VariantType::String, "FDD-deadchannels.txt", {"Dead channel map file name"}},
49 {"valid-days-dchm", VariantType::UInt32, 180u, {"Dead channel map validity in days"}},
50 {"no-validate", VariantType::Bool, false, {"Don't validate the CCDB uploads"}}}};
51}
52
53} // namespace framework
54} // namespace o2
55
56#endif // O2_FDD_DCSCONFIGPROCESSOR_H
Utils and constants for calibration and related workflows.
constexpr o2::header::DataOrigin gDataOriginFDD
Definition DataHeader.h:568
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
DataProcessorSpec getFDDDCSConfigProcessorSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static constexpr o2::header::DataOrigin gDataOriginCDBWrapper
Definition Utils.h:44
static constexpr o2::header::DataOrigin gDataOriginCDBPayload
Definition Utils.h:43