Belle II Software  release-05-01-25
TwoHitFilters.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include "tracking/vxdCaTracking/TwoHitFilters.h"
12 
13 using namespace std;
14 using namespace Belle2;
15 
16 
17 double TwoHitFilters::filterNan(double value) const
18 {
19  // cppcheck-suppress compareBoolExpressionWithInt
20  if (std::isnan(value) == true) { return 0; }
21  // cppcheck-suppress compareBoolExpressionWithInt
22  if (std::isinf(value) == true) { return 0; }
23  return value;
24 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19