Belle II Software  release-08-01-10
GblMultipleScatteringController.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 <alignment/GblMultipleScatteringController.h>
10 
11 #include <genfit/GblFitter.h>
12 
13 using namespace std;
14 using namespace Belle2;
15 
16 void GblMultipleScatteringController::controlTrackSegment(TVector3, TVector3, double scatTheta, genfit::GblFitter* fitter)
17 // void GblMultipleScatteringController::controlTrackSegment(B2Vector3D, B2Vector3D, double scatTheta, genfit::GblFitter* fitter)
18 {
19  bool enableScattering = true;
20 
21  if (scatTheta < 0.0001) enableScattering = false;
22 
23  if (!enableScattering)
24  // No scattering
25  fitter->setMSOptions(false, false);
26  else
27  // Thick scatterers
28  fitter->setMSOptions(true, true);
29 }
30 
Generic GBL implementation.
Definition: GblFitter.h:53
Abstract base class for different kinds of events.