Project
Loading...
Searching...
No Matches
BaselineCalib.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#include <memory>
13#include <gsl/span>
14#include "ZDCBase/Constants.h"
19#include "CCDB/CcdbObjectInfo.h"
20#ifndef ALICEO2_ZDC_BASELINECALIB_H
21#define ALICEO2_ZDC_BASELINECALIB_H
22namespace o2
23{
24namespace zdc
25{
27{
29
30 public:
31 BaselineCalib() = default;
32 int init();
33
34 void setConfig(const BaselineCalibConfig* param) { mConfig = param; };
35 const BaselineCalibConfig* getConfig() const { return mConfig; };
36 void setModuleConfig(const ModuleConfig* moduleConfig) { mModuleConfig = moduleConfig; };
37 const ModuleConfig* getModuleConfig() { return mModuleConfig; };
38 void setBaselineParam(const BaselineParam* param) { mParam = param; };
39 const BaselineParam* getBaselineParam() const { return mParam; };
40
41 void resetInitFlag() { mInitDone = false; };
42 void clear();
43 //int process(const o2::zdc::BaselineCalibSummaryData& data);
45 int endOfRun();
46 int saveDebugHistos(const std::string fn = "ZDCBaselineCalib.root");
47 void setSaveDebugHistos() { mSaveDebugHistos = true; }
48 void setDontSaveDebugHistos() { mSaveDebugHistos = false; }
49
50 CcdbObjectInfo& getCcdbObjectInfo() { return mInfo; }
51
52 void setVerbosity(int v) { mVerbosity = v; }
53 int getVerbosity() const { return mVerbosity; }
54
55 BaselineCalibData& getData() { return mData; }
56 BaselineParam& getParamUpd() { return mParamUpd; }
57
58 private:
60 const BaselineParam* mParam = nullptr;
61 BaselineParam mParamUpd;
62 bool mInitDone = false;
63 bool mSaveDebugHistos = false;
64 int32_t mVerbosity = DbgMinimal;
65 const BaselineCalibConfig* mConfig = nullptr;
66 const ModuleConfig* mModuleConfig = nullptr;
67 CcdbObjectInfo mInfo;
68};
69} // namespace zdc
70} // namespace o2
71
72#endif
Configuration of ZDC Baseline calibration procedure.
Baseline calibration intermediate data.
Baseline calibration data.
CcdbObjectInfo & getCcdbObjectInfo()
BaselineCalibData & getData()
void setModuleConfig(const ModuleConfig *moduleConfig)
const ModuleConfig * getModuleConfig()
void setBaselineParam(const BaselineParam *param)
BaselineParam & getParamUpd()
const BaselineParam * getBaselineParam() const
int saveDebugHistos(const std::string fn="ZDCBaselineCalib.root")
void setConfig(const BaselineCalibConfig *param)
const BaselineCalibConfig * getConfig() const
const GLdouble * v
Definition glcorearb.h:832
GLboolean * data
Definition glcorearb.h:298
GLenum GLfloat param
Definition glcorearb.h:271
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...