Project
Loading...
Searching...
No Matches
ZDCTDCCorr.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_ZDCTDCCORR_H
13#define O2_ZDC_ZDCTDCCORR_H
14
15#include "ZDCBase/Constants.h"
16#include <array>
17#include <Rtypes.h>
18
22
23namespace o2
24{
25namespace zdc
26{
27struct ZDCTDCCorr {
28 const static int NParExtS = 6;
29 const static int NParExtC = 4;
30 const static int NParMidS = 3;
31 const static int NParMidC = 1;
32 std::array<std::array<std::array<std::array<std::array<float, NFParT>, NBucket>, NBucket>, NBCAn>, NTDCChannels> mTDCCorr; // Time correction with pile-up
33 std::array<std::array<std::array<std::array<std::array<float, NFParA>, NBucket>, NBucket>, NBCAn>, NTDCChannels> mAmpCorr; // Amplitude correction with pile-up
34
35 std::array<std::array<float, NParExtC>, NTDCChannels> mTSBegC; // TDC time correction, constant, beginning of sequence
36 std::array<std::array<float, NParMidC>, NTDCChannels> mTSMidC; // TDC time correction, constant, mid of sequence
37 std::array<std::array<float, NParExtC>, NTDCChannels> mTSEndC; // TDC time correction, constant, end of sequence
38 std::array<std::array<float, NParExtC>, NTDCChannels> mAFBegC; // TDC amplitude correction, constant, beginning of sequence
39 std::array<std::array<float, NParMidC>, NTDCChannels> mAFMidC; // TDC amplitude correction, constant, mid of sequence
40 std::array<std::array<float, NParExtC>, NTDCChannels> mAFEndC; // TDC amplitude correction, constant, end of sequence
41
42 void SetTDCCorr(int itdc, int ibun, int ibukb, int ibuks, int ipar, float val)
43 {
44 mAmpCorr[itdc][ibun][ibukb][ibuks][ipar] = val;
45 }
46 void SetAmpCorr(int itdc, int ibun, int ibukb, int ibuks, int ipar, float val)
47 {
48 mTDCCorr[itdc][ibun][ibukb][ibuks][ipar] = val;
49 }
50
52 {
53 clear();
54 }
55 void clear();
56 void print() const;
57 void dump() const;
59};
60} // namespace zdc
61} // namespace o2
62
63#endif
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NBucket
Definition Constants.h:119
constexpr int NTDCChannels
Definition Constants.h:90
constexpr int NBCAn
Definition Constants.h:123
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::array< std::array< std::array< std::array< std::array< float, NFParA >, NBucket >, NBucket >, NBCAn >, NTDCChannels > mAmpCorr
Definition ZDCTDCCorr.h:33
std::array< std::array< float, NParExtC >, NTDCChannels > mTSBegC
Definition ZDCTDCCorr.h:35
static const int NParMidC
Definition ZDCTDCCorr.h:31
std::array< std::array< float, NParExtC >, NTDCChannels > mTSEndC
Definition ZDCTDCCorr.h:37
static const int NParMidS
Definition ZDCTDCCorr.h:30
std::array< std::array< std::array< std::array< std::array< float, NFParT >, NBucket >, NBucket >, NBCAn >, NTDCChannels > mTDCCorr
Definition ZDCTDCCorr.h:32
std::array< std::array< float, NParMidC >, NTDCChannels > mAFMidC
Definition ZDCTDCCorr.h:39
void dump() const
static const int NParExtS
Definition ZDCTDCCorr.h:28
void print() const
static const int NParExtC
Definition ZDCTDCCorr.h:29
ClassDefNV(ZDCTDCCorr, 1)
void SetAmpCorr(int itdc, int ibun, int ibukb, int ibuks, int ipar, float val)
Definition ZDCTDCCorr.h:46
std::array< std::array< float, NParExtC >, NTDCChannels > mAFEndC
Definition ZDCTDCCorr.h:40
void SetTDCCorr(int itdc, int ibun, int ibukb, int ibuks, int ipar, float val)
Definition ZDCTDCCorr.h:42
std::array< std::array< float, NParMidC >, NTDCChannels > mTSMidC
Definition ZDCTDCCorr.h:36
std::array< std::array< float, NParExtC >, NTDCChannels > mAFBegC
Definition ZDCTDCCorr.h:38