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 
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 {
34 }
35 
36 } // namespace PndFtsTrackFinder::PndFtsUtility
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:37