Belle II Software  release-08-01-10
PQBox.h
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 #pragma once
9 #include <tracking/trackFindingCDC/hough/boxes/Box.h>
10 #include <tracking/trackFindingCDC/hough/axes/StandardAxes.h>
11 
12 namespace Belle2 {
17  namespace TrackFindingCDC {
19  class PQBox : public Box<DiscreteP, DiscreteQ> {
20 
21  private:
24 
25  public:
27  using Super::Super;
28 
29  public:
31  float getLowerP() const
32  { return *(getLowerBound<DiscreteP>()); }
33 
35  float getUpperP() const
36  { return *(getUpperBound<DiscreteP>()); }
37 
39  float getLowerQ() const
40  { return *(getLowerBound<DiscreteQ>()); }
41 
43  float getUpperQ() const
44  { return *(getUpperBound<DiscreteQ>()); }
45 
46  //FIXME this interface should not be here, but we need a generically named getter
48  float getLowerX() const
49  { return getLowerP(); }
50 
52  float getUpperX() const
53  { return getUpperP(); }
54 
56  float getLowerY() const
57  { return getLowerQ(); }
58 
60  float getUpperY() const
61  { return getUpperQ(); }
62  };
63  }
65 }
The base class for all boxes.
Definition: Box.h:33
A rectangular domain for the hough space over p and q.
Definition: PQBox.h:19
float getLowerX() const
Get the lower p bound (alias)
Definition: PQBox.h:48
float getUpperP() const
Concise getter for the upper p bound.
Definition: PQBox.h:35
float getLowerQ() const
Concise getter for the lower q bound.
Definition: PQBox.h:39
float getUpperQ() const
Concise getter for the upper q bound.
Definition: PQBox.h:43
float getUpperY() const
Get the upper q bound (alias)
Definition: PQBox.h:60
float getLowerY() const
Get the lower q bound (alias)
Definition: PQBox.h:56
float getLowerP() const
Concise getter for the lower p bound.
Definition: PQBox.h:31
float getUpperX() const
Get the upper p bound (alias)
Definition: PQBox.h:52
Abstract base class for different kinds of events.