PandaRoot
PndFtsUtility.h
Go to the documentation of this file.
1
//****************************************************************************
2
//* This file is part of PandaRoot. *
3
//* *
4
//* PandaRoot is distributed under the terms of the *
5
//* GNU General Public License (GPL) version 3, *
6
//* copied verbatim in the file "LICENSE". *
7
//* *
8
//* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9
//* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10
//* The authors are listed in the file "AUTHORS". *
11
//****************************************************************************
12
13
//
14
// Created by Bartosz Sobol on 20.10.2021.
15
//
16
17
#pragma once
18
19
namespace
PndFtsTrackFinder::PndFtsUtility
{
20
21
template
<
typename
T>
22
T
PlusIfNotMax
(T accu, T curr)
23
{
24
if
(curr <
std::numeric_limits<T>::max
()) {
25
return
accu + curr;
26
}
27
return
accu;
28
}
29
30
template
<
typename
T>
31
bool
IfNotMax
(
const
T x)
32
{
33
return
x < std::numeric_limits<T>::max
();
34
}
35
36
}
// namespace PndFtsTrackFinder::PndFtsUtility
max
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition:
P4_F32vec4.h:37
PndFtsTrackFinder::PndFtsUtility
Definition:
PndFtsUtility.h:19
PndFtsTrackFinder::PndFtsUtility::PlusIfNotMax
T PlusIfNotMax(T accu, T curr)
Definition:
PndFtsUtility.h:22
PndFtsTrackFinder::PndFtsUtility::IfNotMax
bool IfNotMax(const T x)
Definition:
PndFtsUtility.h:31
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
tracking
PndFtsTrackFinder
tool
PndFtsUtility.h
Generated on Fri Nov 29 2024 06:04:42 for PandaRoot by
1.8.13