PandaRoot
PndFtsUtility.h
Go to the documentation of this file.
1
//
2
// Created by Bartosz Sobol on 20.10.2021.
3
//
4
5
#pragma once
6
7
namespace
PndFtsTrackFinder::PndFtsUtility
{
8
9
template
<
typename
T>
10
T
PlusIfNotMax
(T accu, T curr)
11
{
12
if
(curr <
std::numeric_limits<T>::max
()) {
13
return
accu + curr;
14
}
15
return
accu;
16
}
17
18
template
<
typename
T>
19
bool
IfNotMax
(
const
T x)
20
{
21
return
x < std::numeric_limits<T>::max
();
22
}
23
24
}
// namespace PndFtsTrackFinder::PndFtsUtility
max
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition:
P4_F32vec4.h:25
PndFtsTrackFinder::PndFtsUtility
Definition:
PndFtsUtility.h:7
PndFtsTrackFinder::PndFtsUtility::PlusIfNotMax
T PlusIfNotMax(T accu, T curr)
Definition:
PndFtsUtility.h:10
PndFtsTrackFinder::PndFtsUtility::IfNotMax
bool IfNotMax(const T x)
Definition:
PndFtsUtility.h:19
home
gitlab-runner
builds
LYZoAKaU
0
PandaRootGroup
PandaRoot
tracking
PndFtsTrackFinder
tool
PndFtsUtility.h
Generated on Fri Oct 21 2022 07:03:58 for PandaRoot by
1.8.13