Project
Loading...
Searching...
No Matches
WaveformCalibConfig.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#ifndef O2_ZDC_WAVEFORMCALIBCONFIG_H
13#define O2_ZDC_WAVEFORMCALIBCONFIG_H
14
15//#define O2_ZDC_WAVEFORMCALIB_DEBUG
16
17#include "ZDCBase/Constants.h"
18#include <Rtypes.h>
19#include <string>
20
24
25namespace o2
26{
27namespace zdc
28{
30
32
33 double cutLow[NChannels]{};
34 double cutHigh[NChannels]{};
35 double min_e[NChannels]{};
38 std::string desc = "";
41 int nbun = iend - ibeg + 1;
42
43 void print() const;
44 void restrictRange(int ib, int ie);
45 void resetCuts();
46 void resetCutLow();
47 void resetCutHigh();
48 void resetCutLow(int ih);
49 void resetCutHigh(int ih);
50 void setMinEntries(double val);
51 void setMinEntries(int ih, double val);
52 void setCutLow(double val);
53 void setCutHigh(double val);
54 void setCutLow(int ih, double val);
55 void setCutHigh(int ih, double val);
56 void setCuts(double low, double high);
57 void setCuts(int ih, double low, double high);
58 void setTimeCuts(double low, double high);
59 void setTimeCuts(int itdc, double low, double high);
60 void setDescription(std::string d) { desc = d; }
61 int getFirst() const;
62 int getLast() const;
63
65};
66} // namespace zdc
67} // namespace o2
68
69#endif
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NTDCChannels
Definition Constants.h:90
constexpr int WaveformCalib_NBB
Definition Constants.h:347
constexpr int NChannels
Definition Constants.h:65
constexpr int WaveformCalib_NBA
Definition Constants.h:348
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
double cutTimeHigh[NTDCChannels]
TDC cut low.
ClassDefNV(WaveformCalibConfig, 1)
void setTimeCuts(double low, double high)
double min_e[NChannels]
Amplitude cut high.
double cutHigh[NChannels]
Amplitude cut low.
std::string desc
TDC cut high.
double cutTimeLow[NTDCChannels]
Minimum entries to compute waveform.
void setCuts(double low, double high)