Belle II Software
release-05-01-25
ToFinite.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2016 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Oliver Frost *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
12
#include <cmath>
13
#include <RtypesCore.h>
14
15
namespace
Belle2
{
20
namespace
TrackFindingCDC {
21
23
inline
Float_t toFinite(Float_t value, Float_t replacement)
24
{
25
return
std::isfinite(value) ? value : replacement;
26
}
27
}
29
}
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
tracking
trackFindingCDC
numerics
include
ToFinite.h
Generated on Fri Nov 5 2021 04:03:50 for Belle II Software by
1.8.17