Project
Loading...
Searching...
No Matches
WaveformCalib.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 <mutex>
13#include <memory>
14#include <TH1.h>
15#include <TH2.h>
16#include <THnBase.h>
17#include <THnSparse.h>
18#include <TMinuit.h>
19#include "ZDCBase/Constants.h"
22#include "CCDB/CcdbObjectInfo.h"
23#ifndef ALICEO2_ZDC_WAVEFORMCALIB_H
24#define ALICEO2_ZDC_WAVEFORMCALIB_H
25namespace o2
26{
27namespace zdc
28{
30{
32
33 public:
34 WaveformCalib() = default;
35 int init();
36 void clear();
37 int process(const WaveformCalibData& data); // Calibration of RUN3 data - aggregator node
38 int endOfRun(); // Perform minimization
39 int saveDebugHistos(const std::string fn = "ZDCWaveformCalib.root");
40
41 CcdbObjectInfo& getCcdbObjectInfo() { return mInfo; }
42
43 void setConfig(const WaveformCalibConfig* param) { mConfig = param; };
44 const WaveformCalibConfig* getConfig() const { return mConfig; };
45
46 void setVerbosity(int v) { mVerbosity = v; }
47 int getVerbosity() const { return mVerbosity; }
48
49 void setSaveDebugHistos() { mSaveDebugHistos = true; }
50 void setDontSaveDebugHistos() { mSaveDebugHistos = false; }
51
52 WaveformCalibData& getData() { return mData; }
53
54 private:
56 bool mInitDone = false;
57 bool mSaveDebugHistos = false;
58 int32_t mVerbosity = DbgMinimal;
59 const WaveformCalibConfig* mConfig = nullptr;
60 CcdbObjectInfo mInfo;
61};
62} // namespace zdc
63} // namespace o2
64
65#endif
Configuration of ZDC Tower intercalibration procedure.
Waveform calibration intermediate data.
int saveDebugHistos(const std::string fn="ZDCWaveformCalib.root")
void setConfig(const WaveformCalibConfig *param)
const WaveformCalibConfig * getConfig() const
WaveformCalibData & getData()
CcdbObjectInfo & getCcdbObjectInfo()
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 ...