Belle II Software  release-05-02-19
SegmentInPhi0CurvBox Class Reference

Predicate class to check for the containment of segments in a phi0 curv hough space part. More...

#include <SegmentInPhi0CurvBox.h>

Private Member Functions

Weight operator() (const CDCSegment2D *segment, const Phi0CurvBox *phi0CurvBox)
 Checks if the segment is contained in a phi0 curv hough space. More...
 
Weight operator() (const CDCTrajectory2D *trajectory2D, const Phi0CurvBox *phi0CurvBox)
 Checks if the given trajectory is considered part of the hough box in phi0, curvature space. More...
 
Weight operator() (const CDCFacet *facet, const Phi0CurvBox *phi0CurvBox)
 Checks if the given hit triplet is considered part of the hough box in phi0, curvature space. More...
 
bool isPhi0CurvPointIn (const Vector2D &phi0Vec, const double curvature, const Phi0CurvBox *phi0CurvBox)
 Predicate checking if the phi0 vector and curvature are contained in the given box.
 

Detailed Description

Predicate class to check for the containment of segments in a phi0 curv hough space part.

Unlike hits segments occupy only a point in the hough space.

Definition at line 36 of file SegmentInPhi0CurvBox.h.

Member Function Documentation

◆ operator()() [1/3]

Weight operator() ( const CDCFacet facet,
const Phi0CurvBox *  phi0CurvBox 
)
inlineprivate

Checks if the given hit triplet is considered part of the hough box in phi0, curvature space.

Returns a finit weight if it is contained, NAN if not contained.

Definition at line 73 of file SegmentInPhi0CurvBox.h.

79  : NAN;
80  // All facets are currently worth the same weight
81  // Facets contain three hits but in general contribute only one
82  // additional hit due to overlaps with neighboring facets.
83  // Hence we stick with 1 as weight here.
84  }
85 
87  bool isPhi0CurvPointIn(const Vector2D& phi0Vec,
88  const double curvature,
89  const Phi0CurvBox* phi0CurvBox)
90  {
91 
92  const Vector2D& lowerPhi0Vec = phi0CurvBox->getLowerPhi0Vec();

◆ operator()() [2/3]

Weight operator() ( const CDCSegment2D segment,
const Phi0CurvBox *  phi0CurvBox 
)
inlineprivate

Checks if the segment is contained in a phi0 curv hough space.

Returns the size of the segment if it is contained, returns NAN if it is not contained. The method simply assumes that the segment has been fitted with origin constraint and simply uses the values from the contained trajectory The calling code has to ensure this situation

Definition at line 45 of file SegmentInPhi0CurvBox.h.

◆ operator()() [3/3]

Weight operator() ( const CDCTrajectory2D trajectory2D,
const Phi0CurvBox *  phi0CurvBox 
)
inlineprivate

Checks if the given trajectory is considered part of the hough box in phi0, curvature space.

Returns a finit weight if it is contained, NAN if not contained.

Definition at line 58 of file SegmentInPhi0CurvBox.h.


The documentation for this class was generated from the following file:
Belle2::TrackFindingCDC::SegmentInPhi0CurvBox::isPhi0CurvPointIn
bool isPhi0CurvPointIn(const Vector2D &phi0Vec, const double curvature, const Phi0CurvBox *phi0CurvBox)
Predicate checking if the phi0 vector and curvature are contained in the given box.
Definition: SegmentInPhi0CurvBox.h:95