Project
Loading...
Searching...
No Matches
FITDCSConfigReader.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_FIT_DCSCONFIGREADER_H
18#define O2_FIT_DCSCONFIGREADER_H
19
20#include "CCDB/CcdbObjectInfo.h"
22
23#include <gsl/span>
24#include <string>
25
26namespace o2
27{
28namespace fit
29{
30
32{
33 public:
34 FITDCSConfigReader() = default;
36
37 virtual void processDChM(gsl::span<const char> configBuf);
39
40 const o2::fit::DeadChannelMap& getDChM() const;
41 void resetDChM();
42 const std::string& getCcdbPathDChm() const;
43 void setCcdbPathDChM(const std::string& ccdbPath);
44 const long getStartValidityDChM() const;
45 const long getEndValidityDChM() const;
46 void setStartValidityDChM(const long startValidity);
47 const bool isStartValidityDChMSet() const;
51
52 const std::string& getFileNameDChM() const;
53 void setFileNameDChM(const std::string& fileName);
54
55 const uint getValidDaysDChM() const;
56 void setValidDaysDChM(const uint validDays);
57
58 const bool getVerboseMode() const;
59 void setVerboseMode(const bool verboseMode);
60
61 const bool getValidateUploadMode() const;
62 void setValidateUploadMode(const bool validateUpload);
63
64 protected:
66 bool mVerbose = false;
67
68 private:
69 std::string mFileNameDChM;
70 uint mValidDaysDChM = 180u;
71 std::string mCcdbPathDChM;
72 long mStartValidityDChM = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP;
73 o2::ccdb::CcdbObjectInfo mCcdbObjectInfoDChM;
74 bool mValidateUpload = true;
75
76 ClassDefNV(FITDCSConfigReader, 1);
77};
78
79} // namespace fit
80} // namespace o2
81
82#endif // O2_FIT_DCSCONFIGREADER_H
Dead channel map for FIT.
std::string ccdbPath(const std::string badChannelType)
static constexpr long INFINITE_TIMESTAMP
void setVerboseMode(const bool verboseMode)
void setValidDaysDChM(const uint validDays)
const long getStartValidityDChM() const
const bool isStartValidityDChMSet() const
void setCcdbPathDChM(const std::string &ccdbPath)
o2::fit::DeadChannelMap mDChM
The dead channel map CCDB object.
void setValidateUploadMode(const bool validateUpload)
const bool getValidateUploadMode() const
virtual void processDChM(gsl::span< const char > configBuf)
const std::string & getFileNameDChM() const
void setStartValidityDChM(const long startValidity)
const o2::ccdb::CcdbObjectInfo & getObjectInfoDChM() const
const o2::fit::DeadChannelMap & getDChM() const
const long getEndValidityDChM() const
void setFileNameDChM(const std::string &fileName)
const std::string & getCcdbPathDChm() const
TFitResultPtr fit(const size_t nBins, const T *arr, const T xMin, const T xMax, TF1 &func, std::string_view option="")
Definition fit.h:59
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...