Project
Loading...
Searching...
No Matches
TOFFEElightReader.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 DETECTOR_TOFFEELIGHTREADER_H_
13#define DETECTOR_TOFFEELIGHTREADER_H_
14
15#include "Rtypes.h"
18#include "TOFBase/Geo.h"
19#include <gsl/span>
20#include <memory>
21
23
24namespace o2
25{
26namespace tof
27{
28
29using namespace o2::tof;
30
32{
33
34 public:
35 TOFFEElightReader() = default; // default constructor
36 ~TOFFEElightReader() = default; // default destructor
37
38 void loadFEElightConfig(const char* fileName); // load FEElight config
39 void loadFEElightConfig(gsl::span<const char> configBuf); // load FEElight config
40 int parseFEElightConfig(bool verbose = false); // parse FEElight config
41
42 const TOFFEElightConfig* getTOFFEElightConfig() { return mFEElightConfig; }
43 TOFFEElightInfo& getTOFFEElightInfo() { return mFEElightInfo; }
44
45 private:
46 const TOFFEElightConfig* mFEElightConfig = nullptr; // FEElight config
47 TOFFEElightInfo mFEElightInfo; // what will go to CCDB
48 std::unique_ptr<char[]> mFileLoadBuff; // temporary buffer to be used when we load the configuration from file
49
50 ClassDefNV(TOFFEElightReader, 1);
51};
52
53} // namespace tof
54} // namespace o2
55
56#endif
TOFFEElightInfo & getTOFFEElightInfo()
void loadFEElightConfig(const char *fileName)
const TOFFEElightConfig * getTOFFEElightConfig()
int parseFEElightConfig(bool verbose=false)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...