Project
Loading...
Searching...
No Matches
DCSConfigReader.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 MFTDCSCONFIGPROCESSOR_H_
13#define MFTDCSCONFIGPROCESSOR_H_
14
15#include "Rtypes.h"
20#include <gsl/span>
21#include <memory>
22
24
25namespace o2
26{
27namespace mft
28{
29
30using namespace o2::mft;
31
33{
34
35 public:
36 DCSConfigReader() = default; // default constructor
37 ~DCSConfigReader() = default; // default destructor
38
39 void init(bool);
40 void loadConfig(gsl::span<const char> configBuf); // load MFT config
41 void clear();
42 void clearDeadmap();
43
44 const std::vector<o2::mft::DCSConfigInfo>& getConfigInfo() const { return mDCSConfig; }
45 const o2::itsmft::NoiseMap& getNoiseMap() const { return mNoiseMap; }
47
48 private:
49 void parseConfig();
50
51 std::string mParams;
52 bool mVerbose = false;
53
54 std::vector<o2::mft::DCSConfigInfo> mDCSConfig;
55 o2::itsmft::NoiseMap mNoiseMap{936};
57
58 DCSConfigUtils* mDCSUtils;
59
60 ClassDefNV(DCSConfigReader, 1);
61};
62
63} // namespace mft
64} // namespace o2
65
66#endif
MFT Processor for DCS Config.
Definition of the ITSMFT NoiseMap.
NoiseMap class for the ITS and MFT.
Definition NoiseMap.h:39
void loadConfig(gsl::span< const char > configBuf)
const std::vector< o2::mft::DCSConfigInfo > & getConfigInfo() const
const o2::itsmft::NoiseMap & getNoiseMap() const
const o2::itsmft::DPLAlpideParam< o2::detectors::DetID::MFT > & getAlpideInfo() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...