Project
Loading...
Searching...
No Matches
BaselineCalibEPN.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#ifndef ALICEO2_ZDC_BASELINECALIBEPN_H
20#define ALICEO2_ZDC_BASELINECALIBEPN_H
21namespace o2
22{
23namespace zdc
24{
26{
27 public:
28 BaselineCalibEPN() = default;
29 int init();
30
31 void setModuleConfig(const ModuleConfig* moduleConfig) { mModuleConfig = moduleConfig; };
32 const ModuleConfig* getModuleConfig() { return mModuleConfig; };
33
34 void resetInitFlag() { mInitDone = false; };
35 bool getInitFlag() const { return mInitDone; };
36 int process(const gsl::span<const o2::zdc::OrbitData>& orbitdata);
37 int endOfRun();
38 int saveDebugHistos(const std::string fn = "ZDCBaselineCalibEPN.root");
39 void setSaveDebugHistos() { mSaveDebugHistos = true; }
40 void setDontSaveDebugHistos() { mSaveDebugHistos = false; }
41 void setVerbosity(int val) { mVerbosity = val; }
42 BaselineCalibData mData; // Data to be transmitted to aggregator
43 BaselineCalibData mDataSum; // Debug histograms to be saved on EPN node
46
47 private:
48 bool mInitDone = false;
49 bool mSaveDebugHistos = false;
50 const ModuleConfig* mModuleConfig = nullptr;
51 int32_t mVerbosity = DbgMinimal;
52};
53} // namespace zdc
54} // namespace o2
55
56#endif
Configuration of ZDC Baseline calibration procedure.
Baseline calibration intermediate data.
Class to describe pedestal data accumulated over the orbit.
void setModuleConfig(const ModuleConfig *moduleConfig)
BaselineCalibData & getData()
int saveDebugHistos(const std::string fn="ZDCBaselineCalibEPN.root")
BaselineCalibData & getDataSum()
const ModuleConfig * getModuleConfig()
GLuint GLfloat * val
Definition glcorearb.h:1582
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 ...