Belle II Software  release-05-01-25
CDCRLWireHitPair.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost <oliver.frost@desy.de> *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitPair.h>
11 
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
13 
14 #include <tracking/trackFindingCDC/topology/WireNeighborKind.h>
15 #include <tracking/trackFindingCDC/topology/CDCWire.h>
16 
17 #include <tracking/trackFindingCDC/numerics/ERightLeft.h>
18 
19 #include <utility>
20 
21 using namespace Belle2;
22 using namespace TrackFindingCDC;
23 
24 CDCRLWireHitPair::CDCRLWireHitPair(const CDCRLWireHit& fromRLWireHit,
25  const CDCRLWireHit& toRLWireHit,
26  int iCluster)
27  : m_fromRLWireHit(fromRLWireHit)
28  , m_toRLWireHit(toRLWireHit)
29  , m_iCluster(iCluster)
30 {
31 }
32 
33 // Inline candidate
35 {
37 }
38 
40 {
42 }
43 
45 {
46  std::swap(m_fromRLWireHit, m_toRLWireHit);
49 }
50 
52 {
54 }
55 
57 {
58  m_fromRLWireHit.setRLInfo(fromRLInfo);
59 }
60 
62 {
63  m_toRLWireHit.setRLInfo(toRLInfo);
64 }
Belle2::TrackFindingCDC::CDCRLWireHit::setRLInfo
void setRLInfo(const ERightLeft rlInfo)
Setter for the right left passage information.
Definition: CDCRLWireHit.h:250
Belle2::TrackFindingCDC::CDCRLWireHitPair::getICluster
int getICluster() const
Getter for the cluster id.
Definition: CDCRLWireHitPair.h:201
Belle2::TrackFindingCDC::CDCWire::getNeighborKind
WireNeighborKind getNeighborKind(const CDCWire &wire) const
Returns gives the kind of neighborhood relation from this wire to the given wire.
Definition: CDCWire.cc:145
Belle2::TrackFindingCDC::CDCRLWireHitPair::getToRLWireHit
CDCRLWireHit & getToRLWireHit()
Getter for the second oriented wire hit.
Definition: CDCRLWireHitPair.h:165
Belle2::TrackFindingCDC::CDCRLWireHitPair::setToRLInfo
void setToRLInfo(ERightLeft toRLInfo)
Setter for the right left passage information of the second oriented wire hit.
Definition: CDCRLWireHitPair.cc:61
Belle2::TrackFindingCDC::CDCRLWireHitPair::CDCRLWireHitPair
CDCRLWireHitPair()=default
Default constructor for ROOT.
Belle2::TrackFindingCDC::CDCRLWireHitPair::getFromRLWireHit
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.
Definition: CDCRLWireHitPair.h:159
Belle2::TrackFindingCDC::CDCRLWireHitPair::reversed
CDCRLWireHitPair reversed() const
Constructs a oriented wire hit pair that is the reverse of this one.
Definition: CDCRLWireHitPair.cc:39
Belle2::TrackFindingCDC::CDCRLWireHitPair::m_fromRLWireHit
CDCRLWireHit m_fromRLWireHit
Memory for the reference to the first oriented wire hit.
Definition: CDCRLWireHitPair.h:214
Belle2::TrackFindingCDC::CDCRLWireHitPair::m_toRLWireHit
CDCRLWireHit m_toRLWireHit
Memory for the reference to the second oriented wire hit.
Definition: CDCRLWireHitPair.h:217
Belle2::TrackFindingCDC::CDCRLWireHitPair::reverse
void reverse()
Reverses the oriented wire hit pair inplace.
Definition: CDCRLWireHitPair.cc:44
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCRLWireHitPair::getAlias
CDCRLWireHitPair getAlias() const
Returns the aliased version of this oriented wire hit pair.
Definition: CDCRLWireHitPair.cc:51
Belle2::TrackFindingCDC::CDCRLWireHit::reverse
void reverse()
Swiches the right left passage to its opposite inplace.
Definition: CDCRLWireHit.h:108
Belle2::TrackFindingCDC::NRightLeft::ERightLeft
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Definition: ERightLeft.h:35
Belle2::TrackFindingCDC::CDCRLWireHitPair
A pair of oriented wire hits.
Definition: CDCRLWireHitPair.h:37
Belle2::TrackFindingCDC::CDCRLWireHitPair::getFromWire
const CDCWire & getFromWire() const
Getter for the wire the first oriented wire hit is based on.
Definition: CDCRLWireHitPair.h:111
Belle2::TrackFindingCDC::WireNeighborKind
Type for the neighbor relationship from one wire to another.
Definition: WireNeighborKind.h:35
Belle2::TrackFindingCDC::CDCRLWireHitPair::getToWire
const CDCWire & getToWire() const
Getter for the wire the second oriented wire hit is based on.
Definition: CDCRLWireHitPair.h:117
Belle2::TrackFindingCDC::CDCRLWireHitPair::getNeighborKind
WireNeighborKind getNeighborKind() const
Getter for the WireNeighborKind of the two underlying wires.
Definition: CDCRLWireHitPair.cc:34
Belle2::TrackFindingCDC::CDCRLWireHitPair::setFromRLInfo
void setFromRLInfo(ERightLeft fromRLInfo)
Setter for the right left passage information of the first oriented wire hit.
Definition: CDCRLWireHitPair.cc:56