Belle II Software development
CDCRLWireHitPair.cc
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#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitPair.h>
9
10#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
11
12#include <tracking/trackFindingCDC/topology/WireNeighborKind.h>
13#include <tracking/trackFindingCDC/topology/CDCWire.h>
14
15#include <tracking/trackFindingCDC/numerics/ERightLeft.h>
16
17#include <utility>
18
19using namespace Belle2;
20using namespace TrackFindingCDC;
21
23 const CDCRLWireHit& toRLWireHit,
24 int iCluster)
25 : m_fromRLWireHit(fromRLWireHit)
26 , m_toRLWireHit(toRLWireHit)
27 , m_iCluster(iCluster)
28{
29}
30
31// Inline candidate
33{
35}
36
38{
40}
41
43{
47}
48
50{
52}
53
55{
56 m_fromRLWireHit.setRLInfo(fromRLInfo);
57}
58
60{
61 m_toRLWireHit.setRLInfo(toRLInfo);
62}
void reverse()
Reverses the oriented wire hit pair inplace.
CDCRLWireHit & getToRLWireHit()
Getter for the second oriented wire hit.
CDCRLWireHitPair getAlias() const
Returns the aliased version of this oriented wire hit pair.
void setFromRLInfo(ERightLeft fromRLInfo)
Setter for the right left passage information of the first oriented wire hit.
CDCRLWireHit m_fromRLWireHit
Memory for the reference to the first oriented wire hit.
void setToRLInfo(ERightLeft toRLInfo)
Setter for the right left passage information of the second oriented wire hit.
WireNeighborKind getNeighborKind() const
Getter for the WireNeighborKind of the two underlying wires.
const CDCWire & getFromWire() const
Getter for the wire the first oriented wire hit is based on.
const CDCWire & getToWire() const
Getter for the wire the second oriented wire hit is based on.
int getICluster() const
Getter for the cluster id.
CDCRLWireHitPair reversed() const
Constructs a oriented wire hit pair that is the reverse of this one.
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.
CDCRLWireHitPair()=default
Default constructor for ROOT.
CDCRLWireHit m_toRLWireHit
Memory for the reference to the second oriented wire hit.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Definition: CDCRLWireHit.h:41
void reverse()
Swiches the right left passage to its opposite inplace.
Definition: CDCRLWireHit.h:98
void setRLInfo(const ERightLeft rlInfo)
Setter for the right left passage information.
Definition: CDCRLWireHit.h:240
WireNeighborKind getNeighborKind(const CDCWire &wire) const
Returns gives the kind of neighborhood relation from this wire to the given wire.
Definition: CDCWire.cc:139
Type for the neighbor relationship from one wire to another.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Definition: ERightLeft.h:25
Abstract base class for different kinds of events.