Project
Loading...
Searching...
No Matches
NoiseCalibEPN.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 <map>
14#include <gsl/span>
15#include "ZDCBase/Constants.h"
23#ifndef ALICEO2_ZDC_NOISECALIBEPN_H
24#define ALICEO2_ZDC_NOISECALIBEPN_H
25namespace o2
26{
27namespace zdc
28{
30{
31 public:
32 NoiseCalibEPN() = default;
33 int init();
34
35 void setModuleConfig(const ModuleConfig* moduleConfig) { mModuleConfig = moduleConfig; };
36 const ModuleConfig* getModuleConfig() { return mModuleConfig; };
37
38 void clear();
39 int process(const gsl::span<const o2::zdc::OrbitData>& orbitdata, const gsl::span<const o2::zdc::BCData>& bcdata, const gsl::span<const o2::zdc::ChannelData>& chdata);
40 int endOfRun();
41 int saveDebugHistos(const std::string fn = "ZDCNoiseCalibEPN.root");
42 void setSaveDebugHistos() { mSaveDebugHistos = true; }
43 void setDontSaveDebugHistos() { mSaveDebugHistos = false; }
44 void setVerbosity(int val) { mVerbosity = val; }
45 NoiseCalibData mData; // Data to compute RMS of noise
46 NoiseCalibData mDataSum; // Data to compute RMS of noise (cumulated)
49 std::array<std::array<o2::dataformats::FlatHisto1D<double>*, NChannels>, NoiseCalibData::NHA> mH{};
50 std::array<std::array<o2::dataformats::FlatHisto1D<double>*, NChannels>, NoiseCalibData::NHA> mHSum{};
51
52 private:
53 bool mInitDone = false;
54 bool mSaveDebugHistos = false;
55 const ModuleConfig* mModuleConfig = nullptr;
56 const RecoParamZDC* mRopt = nullptr;
57 uint32_t mChMask[NChannels] = {0};
58 int32_t mVerbosity = DbgMinimal;
59};
60} // namespace zdc
61} // namespace o2
62
63#endif
Class to describe fired triggered and/or stored channels for the BC and to refer to channel data.
1D messeageable histo class
Format of noise calibration intermediate data.
Class to describe pedestal data accumulated over the orbit.
ZDC reconstruction parameters.
Container class to store NTimeBinsPerBC ADC values of single ZDC channel.
NoiseCalibData mDataSum
void setVerbosity(int val)
NoiseCalibData & getDataSum()
int saveDebugHistos(const std::string fn="ZDCNoiseCalibEPN.root")
std::array< std::array< o2::dataformats::FlatHisto1D< double > *, NChannels >, NoiseCalibData::NHA > mHSum
const ModuleConfig * getModuleConfig()
void setModuleConfig(const ModuleConfig *moduleConfig)
NoiseCalibData & getData()
std::array< std::array< o2::dataformats::FlatHisto1D< double > *, NChannels >, NoiseCalibData::NHA > mH
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NChannels
Definition Constants.h:65
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static constexpr int NHA