Project
Loading...
Searching...
No Matches
ZDCTDCData.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 "
DataFormatsZDC/ZDCTDCData.h
"
13
14
using namespace
o2::zdc
;
15
16
uint32_t
ZDCTDCDataErr::mErrVal
[
NTDCChannels
] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
17
uint32_t
ZDCTDCDataErr::mErrId
= 0;
18
19
void
o2::zdc::ZDCTDCData::print
()
const
20
{
21
int
itdc =
id
& 0x0f;
22
int
isig =
IdDummy
;
23
if
(
id
!= 0xff && itdc >= 0 && itdc <
NTDCChannels
) {
24
isig =
TDCSignal
[itdc];
25
}
26
printf(
"%2d (%s) %8.3f @ %d = %6.3f%s%s\n"
, isig,
channelName
(isig),
amp
,
val
,
value
(),
isBeg
() ?
" B"
:
""
,
isEnd
() ?
" E"
:
""
);
27
}
ZDCTDCData.h
Container class to store a TDC hit in a ZDC channel.
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
o2::zdc
Definition
ZDCConstants.h:23
o2::zdc::TDCSignal
const int TDCSignal[NTDCChannels]
Definition
Constants.h:181
o2::zdc::NTDCChannels
constexpr int NTDCChannels
Definition
Constants.h:90
o2::zdc::channelName
constexpr const char * channelName(int channel)
Definition
Constants.h:318
o2::zdc::IdDummy
constexpr int IdDummy
Definition
ZDCConstants.h:26
o2::zdc::ZDCTDCDataErr::mErrId
static uint32_t mErrId
Definition
ZDCTDCData.h:33
o2::zdc::ZDCTDCDataErr::mErrVal
static uint32_t mErrVal[NTDCChannels]
Definition
ZDCTDCData.h:32
o2::zdc::ZDCTDCData::print
void print() const
Definition
ZDCTDCData.cxx:19
o2::zdc::ZDCTDCData::isEnd
bool isEnd() const
Definition
ZDCTDCData.h:138
o2::zdc::ZDCTDCData::isBeg
bool isBeg() const
Definition
ZDCTDCData.h:133
o2::zdc::ZDCTDCData::amp
float amp
Definition
ZDCTDCData.h:52
o2::zdc::ZDCTDCData::value
float value() const
Definition
ZDCTDCData.h:122
DataFormats
Detectors
ZDC
src
ZDCTDCData.cxx
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8