Project
Loading...
Searching...
No Matches
FT0DCSConfigProcessorSpec.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_FT0_DCSCONFIGPROCESSOR_H
18#define O2_FT0_DCSCONFIGPROCESSOR_H
19
24#include "Headers/DataHeader.h"
25
26#include <string>
27#include <vector>
28
29namespace o2
30{
31namespace ft0
32{
33
35{
36 // Example of how to use another DCS config reader (subclass of o2::fit::FITDCSConfigReader)
37 public:
38 FT0DCSConfigProcessor(const std::string& detectorName, const o2::header::DataDescription& dataDescriptionDChM)
39 : o2::fit::FITDCSConfigProcessor(detectorName, dataDescriptionDChM) {}
40
41 protected:
42 void initDCSConfigReader() override
43 {
44 mDCSConfigReader = std::make_unique<FT0DCSConfigReader>(FT0DCSConfigReader());
45 }
46};
47
48} // namespace ft0
49
50namespace framework
51{
52
54{
55 o2::header::DataDescription ddDChM = "FT0_DCHM";
56 std::vector<OutputSpec> outputs;
57 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, ddDChM}, Lifetime::Sporadic);
58 outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, ddDChM}, Lifetime::Sporadic);
59
60 return DataProcessorSpec{
61 "ft0-dcs-config-processor",
62 Inputs{{"inputConfig", o2::header::gDataOriginFT0, "DCS_CONFIG_FILE", Lifetime::Sporadic},
63 {"inputConfigFileName", o2::header::gDataOriginFT0, "DCS_CONFIG_NAME", Lifetime::Sporadic}},
64 outputs,
65 AlgorithmSpec{adaptFromTask<o2::ft0::FT0DCSConfigProcessor>("FT0", ddDChM)},
66 Options{{"use-verbose-mode", VariantType::Bool, false, {"Use verbose mode"}},
67 {"filename-dchm", VariantType::String, "FT0-deadchannels.txt", {"Dead channel map file name"}},
68 {"valid-days-dchm", VariantType::UInt32, 180u, {"Dead channel map validity in days"}},
69 {"no-validate", VariantType::Bool, false, {"Don't validate the CCDB uploads"}}}};
70}
71
72} // namespace framework
73} // namespace o2
74
75#endif // O2_FT0_DCSCONFIGPROCESSOR_H
Utils and constants for calibration and related workflows.
DCS configuration reader for FT0.
std::unique_ptr< FITDCSConfigReader > mDCSConfigReader
Reader for the DCS configurations.
FITDCSConfigProcessor(const std::string &detectorName, const o2::header::DataDescription &dataDescriptionDChM)
FT0DCSConfigProcessor(const std::string &detectorName, const o2::header::DataDescription &dataDescriptionDChM)
constexpr o2::header::DataOrigin gDataOriginFT0
Definition DataHeader.h:566
DataProcessorSpec getFT0DCSConfigProcessorSpec()
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
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