Belle II Software development
TwoHitFilters.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include "tracking/vxdCaTracking/TwoHitFilters.h"
10
11using namespace Belle2;
12
13
14double TwoHitFilters::filterNan(double value) const
15{
16 if (std::isnan(value) == true) { return 0; }
17 if (std::isinf(value) == true) { return 0; }
18 return value;
19}
double filterNan(double value) const
nice little nanChecker returns 0 if value was nan or inf, else returns value itself
Abstract base class for different kinds of events.