Belle II Software  release-05-01-25
PQBox.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun, Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <tracking/trackFindingCDC/hough/boxes/Box.h>
12 #include <tracking/trackFindingCDC/hough/axes/StandardAxes.h>
13 
14 namespace Belle2 {
19  namespace TrackFindingCDC {
21  class PQBox : public Box<DiscreteP, DiscreteQ> {
22 
23  private:
25  using Super = Box<DiscreteP, DiscreteQ>;
26 
27  public:
29  using Super::Super;
30 
31  public:
33  float getLowerP() const
34  { return *(getLowerBound<DiscreteP>()); }
35 
37  float getUpperP() const
38  { return *(getUpperBound<DiscreteP>()); }
39 
41  float getLowerQ() const
42  { return *(getLowerBound<DiscreteQ>()); }
43 
45  float getUpperQ() const
46  { return *(getUpperBound<DiscreteQ>()); }
47 
48  //FIXME this interface should not be here, but we need a generically named getter
50  float getLowerX() const
51  { return getLowerP(); }
52 
54  float getUpperX() const
55  { return getUpperP(); }
56 
58  float getLowerY() const
59  { return getLowerQ(); }
60 
62  float getUpperY() const
63  { return getUpperQ(); }
64  };
65  }
67 }
Belle2::TrackFindingCDC::PQBox::getLowerQ
float getLowerQ() const
Concise getter for the lower q bound.
Definition: PQBox.h:49
Belle2::TrackFindingCDC::PQBox::getUpperQ
float getUpperQ() const
Concise getter for the upper q bound.
Definition: PQBox.h:53
Belle2::TrackFindingCDC::PQBox::Super
Box< DiscreteP, DiscreteQ > Super
Type of the base class.
Definition: PQBox.h:33
Belle2::TrackFindingCDC::PQBox::getLowerY
float getLowerY() const
Get the lower q bound (alias)
Definition: PQBox.h:66
Belle2::TrackFindingCDC::PQBox::getUpperX
float getUpperX() const
Get the upper p bound (alias)
Definition: PQBox.h:62
Belle2::TrackFindingCDC::PQBox::getUpperY
float getUpperY() const
Get the upper q bound (alias)
Definition: PQBox.h:70
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::PQBox::getLowerX
float getLowerX() const
Get the lower p bound (alias)
Definition: PQBox.h:58
Belle2::TrackFindingCDC::PQBox::getLowerP
float getLowerP() const
Concise getter for the lower p bound.
Definition: PQBox.h:41
Belle2::TrackFindingCDC::PQBox::getUpperP
float getUpperP() const
Concise getter for the upper p bound.
Definition: PQBox.h:45