Project
Loading...
Searching...
No Matches
ZDCTDCParam.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_TDCPARAM_H_
13
#define O2_ZDC_TDCPARAM_H_
14
15
#include "
ZDCBase/Constants.h
"
16
#include <Rtypes.h>
17
#include <array>
18
22
23
namespace
o2
24
{
25
namespace
zdc
26
{
27
struct
ZDCTDCParam
{
28
float
tdc_shift
[
NTDCChannels
] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
// Correction of TDC position (ns)
29
float
tdc_calib
[
NTDCChannels
] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
// Correction factor of TDC amplitude
30
float
tdc_offset
[
NTDCChannels
] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
// Offset of TDC amplitude calibration
31
void
setShift
(uint32_t ich,
float
val
);
32
float
getShift
(uint32_t ich)
const
;
33
void
setFactor
(uint32_t ich,
float
val
);
34
float
getFactor
(uint32_t ich)
const
;
35
void
setOffset
(uint32_t ich,
float
val
);
36
float
getOffset
(uint32_t ich)
const
;
37
void
print
()
const
;
38
ClassDefNV
(
ZDCTDCParam
, 3);
39
};
40
}
// namespace zdc
41
}
// namespace o2
42
43
#endif
Constants.h
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
o2::upgrades_utils::zdc
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
o2::zdc::NTDCChannels
constexpr int NTDCChannels
Definition
Constants.h:90
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::zdc::ZDCTDCParam
Definition
ZDCTDCParam.h:27
o2::zdc::ZDCTDCParam::getOffset
float getOffset(uint32_t ich) const
Definition
ZDCTDCParam.cxx:64
o2::zdc::ZDCTDCParam::ClassDefNV
ClassDefNV(ZDCTDCParam, 3)
o2::zdc::ZDCTDCParam::tdc_calib
float tdc_calib[NTDCChannels]
Definition
ZDCTDCParam.h:29
o2::zdc::ZDCTDCParam::print
void print() const
Definition
ZDCTDCParam.cxx:74
o2::zdc::ZDCTDCParam::setFactor
void setFactor(uint32_t ich, float val)
Definition
ZDCTDCParam.cxx:36
o2::zdc::ZDCTDCParam::tdc_shift
float tdc_shift[NTDCChannels]
Definition
ZDCTDCParam.h:28
o2::zdc::ZDCTDCParam::setOffset
void setOffset(uint32_t ich, float val)
Definition
ZDCTDCParam.cxx:55
o2::zdc::ZDCTDCParam::setShift
void setShift(uint32_t ich, float val)
Definition
ZDCTDCParam.cxx:17
o2::zdc::ZDCTDCParam::tdc_offset
float tdc_offset[NTDCChannels]
Definition
ZDCTDCParam.h:30
o2::zdc::ZDCTDCParam::getFactor
float getFactor(uint32_t ich) const
Definition
ZDCTDCParam.cxx:45
o2::zdc::ZDCTDCParam::getShift
float getShift(uint32_t ich) const
Definition
ZDCTDCParam.cxx:26
Detectors
ZDC
reconstruction
include
ZDCReconstruction
ZDCTDCParam.h
Generated on Tue Feb 25 2025 23:16:37 for Project by
1.9.8