Project
Loading...
Searching...
No Matches
DigitalCurrentClusterIntegrator.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
14
15
#include "
TPCReconstruction/DigitalCurrentClusterIntegrator.h
"
16
17
using namespace
o2::tpc
;
18
using namespace
o2::tpc::constants
;
19
20
void
DigitalCurrentClusterIntegrator::clear
()
21
{
22
for
(
int
i
= 0;
i
<
MAXSECTOR
;
i
++) {
23
for
(
int
j
= 0;
j
<
MAXGLOBALPADROW
;
j
++) {
24
if
(mIntegratedCurrents[
i
][
j
]) {
25
int
nPads =
Mapper::instance
().
getNumberOfPadsInRowSector
(
j
);
26
memset(&mIntegratedCurrents[
i
][
j
][0], 0, nPads *
sizeof
(mIntegratedCurrents[
i
][
j
][0]));
27
}
28
}
29
}
30
}
31
32
void
DigitalCurrentClusterIntegrator::reset
()
33
{
34
for
(
int
i
= 0;
i
<
MAXSECTOR
;
i
++) {
35
for
(
int
j
= 0;
j
<
MAXGLOBALPADROW
;
j
++) {
36
mIntegratedCurrents[
i
][
j
].reset(
nullptr
);
37
}
38
}
39
}
DigitalCurrentClusterIntegrator.h
Decoder to convert TPC ClusterHardware to ClusterNative.
i
int32_t i
Definition
GPUCommonAlgorithm.h:443
j
uint32_t j
Definition
RawData.h:0
o2::tpc::DigitalCurrentClusterIntegrator::clear
void clear()
Definition
DigitalCurrentClusterIntegrator.cxx:20
o2::tpc::DigitalCurrentClusterIntegrator::reset
void reset()
Definition
DigitalCurrentClusterIntegrator.cxx:32
o2::tpc::Mapper::getNumberOfPadsInRowSector
int getNumberOfPadsInRowSector(int row) const
Definition
Mapper.h:340
o2::tpc::Mapper::instance
static Mapper & instance(const std::string mappingDir="")
Definition
Mapper.h:44
o2::tpc::constants
Definition
Constants.h:25
o2::tpc::constants::MAXSECTOR
constexpr int MAXSECTOR
Definition
Constants.h:28
o2::tpc::constants::MAXGLOBALPADROW
constexpr int MAXGLOBALPADROW
Definition
Constants.h:34
o2::tpc
Global TPC definitions and constants.
Definition
SimTraits.h:167
Detectors
TPC
reconstruction
src
DigitalCurrentClusterIntegrator.cxx
Generated on Tue Feb 25 2025 23:16:29 for Project by
1.9.8