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