Project
Loading...
Searching...
No Matches
BaselineCalibConfig.cxx
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 "Framework/Logger.h"
14
15using namespace o2::zdc;
17{
18 for (int isig = 0; isig < NChannels; isig++) {
19 cutLow[isig] = BaselineMin;
20 cutHigh[isig] = BaselineMax;
21 }
22}
23
25{
26 LOG(info) << "BaselineCalibConfig::print()";
27 for (int isig = 0; isig < NChannels; isig++) {
28 LOG(info) << ChannelNames[isig] << " limits (" << cutLow[isig] << " : " << cutHigh[isig] << ") min_entries = " << min_e[isig];
29 }
30}
31
33{
34 for (int32_t isig = 0; isig < NChannels; isig++) {
35 min_e[isig] = val;
36 }
37}
38
40{
41 min_e[isig] = val;
42}
43
45{
46 for (int32_t isig = 0; isig < NChannels; isig++) {
47 cutLow[isig] = BaselineMin;
48 cutHigh[isig] = BaselineMax;
49 }
50}
51
53{
54 for (int32_t isig = 0; isig < NChannels; isig++) {
55 cutLow[isig] = val;
56 }
57}
58
60{
61 for (int32_t isig = 0; isig < NChannels; isig++) {
62 cutHigh[isig] = val;
63 }
64}
65
67{
68 cutLow[isig] = val;
69}
70
72{
73 cutHigh[isig] = val;
74}
75
76void BaselineCalibConfig::setCuts(int low, int high)
77{
78 for (int32_t isig = 0; isig < NChannels; isig++) {
79 cutLow[isig] = low;
80 cutHigh[isig] = high;
81 }
82}
83
84void BaselineCalibConfig::setCuts(int isig, int low, int high)
85{
86 cutLow[isig] = low;
87 cutHigh[isig] = high;
88}
Configuration of ZDC Baseline calibration procedure.
GLuint GLfloat * val
Definition glcorearb.h:1582
constexpr int NChannels
Definition Constants.h:65
constexpr int BaselineMax
Definition Constants.h:353
constexpr int BaselineMin
Definition Constants.h:353
constexpr std::string_view ChannelNames[]
Definition Constants.h:147
int cutHigh[NChannels]
Baseline cut low.
uint32_t min_e[NChannels]
Baseline cut high.
void setCuts(int low, int high)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"