Belle II Software  release-06-02-00
ThreeHitFilters.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/ThreeHitFilters.h"
10 // #include <boost/math/special_functions/fpclassify.hpp>
11 // #include <TMathBase.h>
12 // #include <math.h>
13 #include <boost/math/special_functions/sign.hpp>
14 
15 using namespace std;
16 using namespace Belle2;
17 using boost::math::sign;
18 
19 int ThreeHitFilters::calcSign(const TVector3& a, const TVector3& b, const TVector3& c)
20 {
21  TVector3 ba = a - b; ba.SetZ(0.);
22  TVector3 bc = b - c; bc.SetZ(0.);
23  return sign(bc.Orthogonal() * ba); //normal vector of m_vecBC times segment of ba
24 }
Abstract base class for different kinds of events.