Belle II Software  release-05-01-25
CDCFacet.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitTriple.h>
13 #include <tracking/trackFindingCDC/geometry/UncertainParameterLine2D.h>
14 
15 #include <tracking/trackFindingCDC/ca/AutomatonCell.h>
16 
17 namespace Belle2 {
22  namespace TrackFindingCDC {
23  class CDCTangent;
24  class CDCRecoHit2D;
25  class CDCRLWireHit;
26  class ParameterLine2D;
27  class Vector2D;
28 
34  class CDCFacet : public CDCRLWireHitTriple {
35  public:
37  CDCFacet() = default;
38 
40  CDCFacet(const CDCRLWireHit& startRLWireHit,
41  const CDCRLWireHit& middleRLWireHit,
42  const CDCRLWireHit& endRLWireHit);
43 
45  CDCFacet(const CDCRLWireHit& startRLWireHit,
46  const CDCRLWireHit& middleRLWireHit,
47  const CDCRLWireHit& endRLWireHit,
48  const UncertainParameterLine2D& fitLine);
49 
51  void reverse();
52 
54  CDCFacet reversed() const;
55 
57  void adjustFitLine() const;
58 
60  void invalidateFitLine();
61 
64  {
65  return m_fitLine;
66  }
67 
69  void setFitLine(const UncertainParameterLine2D& fitLine) const
70  {
71  m_fitLine = fitLine;
72  }
73 
80 
87 
94 
97 
100 
102  Vector2D getEndRecoPos2D() const;
103 
106 
109 
112 
115 
117  CDCTangent getStartToEnd() const;
118 
120  CDCTangent getMiddleToEnd() const;
121 
123  void unsetAndForwardMaskedFlag() const;
124 
126  void setAndForwardMaskedFlag() const;
127 
129  void receiveMaskedFlag() const;
130 
133  {
134  return m_automatonCell;
135  }
136 
137  private:
139  mutable UncertainParameterLine2D m_fitLine;
140 
143  };
144  }
146 }
Belle2::TrackFindingCDC::CDCFacet::setAndForwardMaskedFlag
void setAndForwardMaskedFlag() const
Sets the masked flag of the facet's automaton cell and of the three contained wire hits.
Definition: CDCFacet.cc:150
Belle2::TrackFindingCDC::CDCFacet::getStartToEndLine
ParameterLine2D getStartToEndLine() const
Getter for the tangential line from the first to the third hit.
Definition: CDCFacet.cc:96
Belle2::TrackFindingCDC::CDCFacet::getStartRecoPos2D
Vector2D getStartRecoPos2D() const
Getter for the reconstructed position at the first hit on the fit line.
Definition: CDCFacet.cc:73
Belle2::TrackFindingCDC::CDCFacet::getMiddleRecoHit2D
CDCRecoHit2D getMiddleRecoHit2D() const
Getter for the second reconstucted hit.
Definition: CDCFacet.cc:117
Belle2::TrackFindingCDC::CDCFacet::setFitLine
void setFitLine(const UncertainParameterLine2D &fitLine) const
Setter for the contained line fit information.
Definition: CDCFacet.h:77
Belle2::TrackFindingCDC::CDCFacet::getAutomatonCell
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition: CDCFacet.h:140
Belle2::TrackFindingCDC::Vector2D
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
Definition: Vector2D.h:37
Belle2::TrackFindingCDC::CDCFacet::getStartToMiddle
CDCTangent getStartToMiddle() const
Getter for the tangential line including the hits from the first to the second hit.
Definition: CDCFacet.cc:127
Belle2::TrackFindingCDC::CDCFacet::getStartRecoHit2D
CDCRecoHit2D getStartRecoHit2D() const
Getter for the first reconstucted hit.
Definition: CDCFacet.cc:112
Belle2::TrackFindingCDC::ParameterLine2D
A line with a support point and tangential vector.
Definition: ParameterLine2D.h:48
Belle2::TrackFindingCDC::CDCFacet::getStartToEnd
CDCTangent getStartToEnd() const
Getter for the tangential line including the hits from the first to the third hit.
Definition: CDCFacet.cc:132
Belle2::TrackFindingCDC::CDCFacet::adjustFitLine
void adjustFitLine() const
Adjusts the contained fit line to touch such that it touches the first and third hit.
Definition: CDCFacet.cc:63
Belle2::TrackFindingCDC::CDCFacet::m_fitLine
UncertainParameterLine2D m_fitLine
Memory for a line fit to the three contained hits.
Definition: CDCFacet.h:147
Belle2::TrackFindingCDC::CDCFacet::m_automatonCell
AutomatonCell m_automatonCell
Memory for the cellular automaton cell assoziated with the facet.
Definition: CDCFacet.h:150
Belle2::TrackFindingCDC::CDCFacet::unsetAndForwardMaskedFlag
void unsetAndForwardMaskedFlag() const
Unset the masked flag of the facet's automaton cell and of the three contained wire hits.
Definition: CDCFacet.cc:142
Belle2::TrackFindingCDC::CDCFacet::getMiddleToEnd
CDCTangent getMiddleToEnd() const
Getter for the tangential line including the hits from the second to the third hit.
Definition: CDCFacet.cc:137
Belle2::TrackFindingCDC::CDCRecoHit2D
Class representing a two dimensional reconstructed hit in the central drift chamber.
Definition: CDCRecoHit2D.h:57
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCFacet::getStartToMiddleLine
ParameterLine2D getStartToMiddleLine() const
Getter for the tangential line from the first to the second hit.
Definition: CDCFacet.cc:88
Belle2::TrackFindingCDC::CDCRLWireHit
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Definition: CDCRLWireHit.h:51
Belle2::TrackFindingCDC::CDCTangent
Class representating a linear track piece between two oriented wire hits.
Definition: CDCTangent.h:50
Belle2::TrackFindingCDC::AutomatonCell
Cell used by the cellular automata.
Definition: AutomatonCell.h:39
Belle2::TrackFindingCDC::CDCFacet::CDCFacet
CDCFacet()=default
Default constructor for ROOT.
Belle2::TrackFindingCDC::CDCFacet::reversed
CDCFacet reversed() const
Constructs the reverse tiple from this one.
Definition: CDCFacet.cc:55
Belle2::TrackFindingCDC::CDCFacet::getEndRecoPos2D
Vector2D getEndRecoPos2D() const
Getter for the reconstructed position at the third hit on the fit line.
Definition: CDCFacet.cc:83
Belle2::TrackFindingCDC::CDCFacet::receiveMaskedFlag
void receiveMaskedFlag() const
If one of the contained wire hits is marked as masked this facet is set be masked as well.
Definition: CDCFacet.cc:158
Belle2::TrackFindingCDC::CDCFacet::invalidateFitLine
void invalidateFitLine()
Clear all information in the fit.
Definition: CDCFacet.cc:68
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::CDCFacet::getMiddleToEndLine
ParameterLine2D getMiddleToEndLine() const
Getter for the tangential line from the second to the third hit.
Definition: CDCFacet.cc:104
Belle2::TrackFindingCDC::UncertainParameterLine2D
A parameter line including including an line covariance matrix which is interpreted as located in the...
Definition: UncertainParameterLine2D.h:34
Belle2::TrackFindingCDC::CDCFacet::getMiddleRecoPos2D
Vector2D getMiddleRecoPos2D() const
Getter for the reconstructed position at the second hit on the fit line.
Definition: CDCFacet.cc:78
Belle2::TrackFindingCDC::CDCFacet::getFitLine
const UncertainParameterLine2D & getFitLine() const
Getter for the contained line fit information.
Definition: CDCFacet.h:71
Belle2::TrackFindingCDC::CDCFacet::getEndRecoHit2D
CDCRecoHit2D getEndRecoHit2D() const
Getter for the third reconstucted hit.
Definition: CDCFacet.cc:122
Belle2::TrackFindingCDC::CDCFacet::reverse
void reverse()
Reverses the facet inplace including the fit line.
Definition: CDCFacet.cc:49