Belle II Software  release-05-01-25
GblMultipleScatteringController.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Tadeas Bilka *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <alignment/GblMultipleScatteringController.h>
12 
13 #include <genfit/GblFitter.h>
14 
15 using namespace std;
16 using namespace Belle2;
17 
18 void GblMultipleScatteringController::controlTrackSegment(TVector3, TVector3, double scatTheta, genfit::GblFitter* fitter)
19 // void GblMultipleScatteringController::controlTrackSegment(B2Vector3D, B2Vector3D, double scatTheta, genfit::GblFitter* fitter)
20 {
21  bool enableScattering = true;
22 
23  if (scatTheta < 0.0001) enableScattering = false;
24 
25  if (!enableScattering)
26  // No scattering
27  fitter->setMSOptions(false, false);
28  else
29  // Thick scatterers
30  fitter->setMSOptions(true, true);
31 }
32 
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
genfit::GblFitter
Generic GBL implementation.
Definition: GblFitter.h:53