Belle II Software  release-05-02-19
FilterExceptions.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2011 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler, Stefan Ferstl, Thomas Fabian *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/FrameworkExceptions.h>
14 
15 namespace Belle2 {
22  class FilterExceptions {
23  public:
24 // friend class ThreeHitFilters;
25 
27  BELLE2_DEFINE_EXCEPTION(Straight_Line, "The hits are on a straight Line (or indistinguishably near to being on it).");
28 
30  BELLE2_DEFINE_EXCEPTION(Calculating_Curvature_Failed,
31  "It was not possible to determine the curvature of the track (number of times for left handed and right handed curvature was identical)");
32 
34  BELLE2_DEFINE_EXCEPTION(Straight_Up, "The line is straight up, so the parametrization y=kx+d makes no sense.");
35 
37  BELLE2_DEFINE_EXCEPTION(Duplicate_hit, "Two hits are identical");
38 
40  BELLE2_DEFINE_EXCEPTION(Invalid_result_Nan, "Result includes 'nan'-entries!");
41 
43  BELLE2_DEFINE_EXCEPTION(Center_Is_Origin, "The Calculated Circle Center is the origin, not supported by this fitter.");
44 
46  BELLE2_DEFINE_EXCEPTION(Circle_too_small, "The radius of the circle is too small for usefull pT-estimation.");
47 
48  };
49 
51 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FilterExceptions::BELLE2_DEFINE_EXCEPTION
BELLE2_DEFINE_EXCEPTION(Straight_Line, "The hits are on a straight Line (or indistinguishably near to being on it).")
this exception is thrown by the CircleFit and occurs when the track is too straight