Belle II Software development
CDCRLWireHitPair Class Reference

A pair of oriented wire hits. More...

#include <CDCRLWireHitPair.h>

Inheritance diagram for CDCRLWireHitPair:
CDCTangent

Public Member Functions

 CDCRLWireHitPair ()=default
 Default constructor for ROOT.
 
 CDCRLWireHitPair (const CDCRLWireHit &fromRLWireHit, const CDCRLWireHit &toRLWireHit, int iCluster=0)
 Constructor taking two oriented wire hits.
 
CDCRLWireHitPair reversed () const
 Constructs a oriented wire hit pair that is the reverse of this one.
 
void reverse ()
 Reverses the oriented wire hit pair inplace.
 
CDCRLWireHitPair getAlias () const
 Returns the aliased version of this oriented wire hit pair.
 
bool operator== (const CDCRLWireHitPair &other) const
 Equality comparison based the two oriented wire hits.
 
bool operator< (const CDCRLWireHitPair &other) const
 Total ordering relation based on the from oriented wire hit first and the to oriented wire hit second.
 
CDC::WireNeighborKind getNeighborKind () const
 Getter for the WireNeighborKind of the two underlying wires.
 
CDC::ISuperLayer getISuperLayer () const
 Getter for the common superlayer id of the pair.
 
CDC::EStereoKind getStereoKind () const
 Getter for the common stereo type of the superlayer of the pair.
 
bool isAxial () const
 Indicator if the underlying wires are axial.
 
const CDC::CDCWiregetFromWire () const
 Getter for the wire the first oriented wire hit is based on.
 
const CDC::CDCWiregetToWire () const
 Getter for the wire the second oriented wire hit is based on.
 
bool hasWire (const CDC::CDCWire &wire) const
 Indicator if any of the two oriented wire hits is based on the given wire.
 
const CDCWireHitgetFromWireHit () const
 Getter for the hit wire of the first oriented wire hit.
 
const CDCWireHitgetToWireHit () const
 Getter for the hit wire of the second oriented wire hit.
 
bool hasWireHit (const CDCWireHit &wirehit) const
 Indicator if any of the two oriented wire hits is based on the given wire hit.
 
ERightLeft getFromRLInfo () const
 Getter for the right left passage information of the first oriented wire hit.
 
ERightLeft getToRLInfo () const
 Getter for the right left passage information of the second oriented wire hit.
 
CDCRLWireHitgetFromRLWireHit ()
 Getter for the first oriented wire hit.
 
CDCRLWireHitgetToRLWireHit ()
 Getter for the second oriented wire hit.
 
const CDCRLWireHitgetFromRLWireHit () const
 Constant getter for the first oriented wire hit.
 
const CDCRLWireHitgetToRLWireHit () const
 Constant getter for the second oriented wire hit.
 
void setFromRLWireHit (const CDCRLWireHit &fromRLWireHit)
 Setter for the first oriented wire hit.
 
void setToRLWireHit (const CDCRLWireHit &toRLWireHit)
 Setter for the second oriented wire hit.
 
void setFromRLInfo (ERightLeft fromRLInfo)
 Setter for the right left passage information of the first oriented wire hit.
 
void setToRLInfo (ERightLeft toRLInfo)
 Setter for the right left passage information of the second oriented wire hit.
 
int getICluster () const
 Getter for the cluster id.
 
void setICluster (int iCluster)
 Setter for the cluster id.
 

Protected Attributes

CDCRLWireHit m_fromRLWireHit
 Memory for the reference to the first oriented wire hit.
 
CDCRLWireHit m_toRLWireHit
 Memory for the reference to the second oriented wire hit.
 
int m_iCluster = -1
 Memory for the cluster id of this facet.
 

Friends

bool operator< (const CDCRLWireHitPair &rlWireHitPair, const CDCWireHit &wireHit)
 Defines wire hits and oriented wire hit pair as coaligned on the first wire hit.
 
bool operator< (const CDCWireHit &wireHit, const CDCRLWireHitPair &rlWireHitPair)
 Defines wire hits and oriented wire hit pair as coaligned on the first wire hit.
 

Detailed Description

A pair of oriented wire hits.

Definition at line 31 of file CDCRLWireHitPair.h.

Constructor & Destructor Documentation

◆ CDCRLWireHitPair()

CDCRLWireHitPair ( const CDCRLWireHit & fromRLWireHit,
const CDCRLWireHit & toRLWireHit,
int iCluster = 0 )

Constructor taking two oriented wire hits.

Definition at line 23 of file CDCRLWireHitPair.cc.

26 : m_fromRLWireHit(fromRLWireHit)
27 , m_toRLWireHit(toRLWireHit)
28 , m_iCluster(iCluster)
29{
30}
CDCRLWireHit m_fromRLWireHit
Memory for the reference to the first oriented wire hit.
CDCRLWireHit m_toRLWireHit
Memory for the reference to the second oriented wire hit.
int m_iCluster
Memory for the cluster id of this facet.

Member Function Documentation

◆ getAlias()

CDCRLWireHitPair getAlias ( ) const

Returns the aliased version of this oriented wire hit pair.

Definition at line 50 of file CDCRLWireHitPair.cc.

51{
53}
CDCRLWireHit & getToRLWireHit()
Getter for the second oriented wire hit.
CDCRLWireHitPair getAlias() const
Returns the aliased version of this oriented wire hit pair.
int getICluster() const
Getter for the cluster id.
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.
CDCRLWireHitPair()=default
Default constructor for ROOT.

◆ getFromRLInfo()

ERightLeft getFromRLInfo ( ) const
inline

Getter for the right left passage information of the first oriented wire hit.

Definition at line 141 of file CDCRLWireHitPair.h.

142 {
143 return getFromRLWireHit().getRLInfo();
144 }

◆ getFromRLWireHit() [1/2]

CDCRLWireHit & getFromRLWireHit ( )
inline

Getter for the first oriented wire hit.

Definition at line 153 of file CDCRLWireHitPair.h.

154 {
155 return m_fromRLWireHit;
156 }

◆ getFromRLWireHit() [2/2]

const CDCRLWireHit & getFromRLWireHit ( ) const
inline

Constant getter for the first oriented wire hit.

Definition at line 165 of file CDCRLWireHitPair.h.

166 {
167 return m_fromRLWireHit;
168 }

◆ getFromWire()

const CDC::CDCWire & getFromWire ( ) const
inline

Getter for the wire the first oriented wire hit is based on.

Definition at line 105 of file CDCRLWireHitPair.h.

106 {
107 return getFromRLWireHit().getWire();
108 }

◆ getFromWireHit()

const CDCWireHit & getFromWireHit ( ) const
inline

Getter for the hit wire of the first oriented wire hit.

Definition at line 123 of file CDCRLWireHitPair.h.

124 {
125 return getFromRLWireHit().getWireHit();
126 }

◆ getICluster()

int getICluster ( ) const
inline

Getter for the cluster id.

Definition at line 195 of file CDCRLWireHitPair.h.

196 {
197 return m_iCluster;
198 }

◆ getISuperLayer()

CDC::ISuperLayer getISuperLayer ( ) const
inline

Getter for the common superlayer id of the pair.

Definition at line 86 of file CDCRLWireHitPair.h.

87 {
88 CDC::ISuperLayer result = getFromRLWireHit().getISuperLayer();
89 return result == getToRLWireHit().getISuperLayer() ? result : CDC::ISuperLayerUtil::c_Invalid;
90 }

◆ getNeighborKind()

WireNeighborKind getNeighborKind ( ) const
inline

Getter for the WireNeighborKind of the two underlying wires.

Definition at line 33 of file CDCRLWireHitPair.cc.

34{
36}
WireNeighborKind getNeighborKind(const CDCWire &wire) const
Returns gives the kind of neighborhood relation from this wire to the given wire.
Definition CDCWire.cc:139
const CDC::CDCWire & getFromWire() const
Getter for the wire the first oriented wire hit is based on.
const CDC::CDCWire & getToWire() const
Getter for the wire the second oriented wire hit is based on.

◆ getStereoKind()

CDC::EStereoKind getStereoKind ( ) const
inline

Getter for the common stereo type of the superlayer of the pair.

Definition at line 93 of file CDCRLWireHitPair.h.

94 {
95 return CDC::ISuperLayerUtil::getStereoKind(getISuperLayer());
96 }

◆ getToRLInfo()

ERightLeft getToRLInfo ( ) const
inline

Getter for the right left passage information of the second oriented wire hit.

Definition at line 147 of file CDCRLWireHitPair.h.

148 {
149 return getToRLWireHit().getRLInfo();
150 }

◆ getToRLWireHit() [1/2]

CDCRLWireHit & getToRLWireHit ( )
inline

Getter for the second oriented wire hit.

Definition at line 159 of file CDCRLWireHitPair.h.

160 {
161 return m_toRLWireHit;
162 }

◆ getToRLWireHit() [2/2]

const CDCRLWireHit & getToRLWireHit ( ) const
inline

Constant getter for the second oriented wire hit.

Definition at line 171 of file CDCRLWireHitPair.h.

172 {
173 return m_toRLWireHit;
174 }

◆ getToWire()

const CDC::CDCWire & getToWire ( ) const
inline

Getter for the wire the second oriented wire hit is based on.

Definition at line 111 of file CDCRLWireHitPair.h.

112 {
113 return getToRLWireHit().getWire();
114 }

◆ getToWireHit()

const CDCWireHit & getToWireHit ( ) const
inline

Getter for the hit wire of the second oriented wire hit.

Definition at line 129 of file CDCRLWireHitPair.h.

130 {
131 return getToRLWireHit().getWireHit();
132 }

◆ hasWire()

bool hasWire ( const CDC::CDCWire & wire) const
inline

Indicator if any of the two oriented wire hits is based on the given wire.

Definition at line 117 of file CDCRLWireHitPair.h.

118 {
119 return getFromRLWireHit().isOnWire(wire) or getToRLWireHit().isOnWire(wire);
120 }

◆ hasWireHit()

bool hasWireHit ( const CDCWireHit & wirehit) const
inline

Indicator if any of the two oriented wire hits is based on the given wire hit.

Definition at line 135 of file CDCRLWireHitPair.h.

136 {
137 return getFromRLWireHit().hasWireHit(wirehit) or getToRLWireHit().hasWireHit(wirehit);
138 }

◆ isAxial()

bool isAxial ( ) const
inline

Indicator if the underlying wires are axial.

Definition at line 99 of file CDCRLWireHitPair.h.

100 {
101 return getStereoKind() == CDC::EStereoKind::c_Axial;
102 }

◆ operator<()

bool operator< ( const CDCRLWireHitPair & other) const
inline

Total ordering relation based on the from oriented wire hit first and the to oriented wire hit second.

Definition at line 61 of file CDCRLWireHitPair.h.

62 {
63 return getICluster() < other.getICluster() or
64 (getICluster() == other.getICluster() and
65 (getFromRLWireHit() < other.getFromRLWireHit() or
66 (getFromRLWireHit() == other.getFromRLWireHit() and
67 getToRLWireHit() < other.getToRLWireHit())));
68 }

◆ operator==()

bool operator== ( const CDCRLWireHitPair & other) const
inline

Equality comparison based the two oriented wire hits.

Definition at line 51 of file CDCRLWireHitPair.h.

52 {
53 return getFromRLWireHit() == other.getFromRLWireHit() and
54 getToRLWireHit() == other.getToRLWireHit();
55 }

◆ reverse()

void reverse ( )

Reverses the oriented wire hit pair inplace.

Definition at line 43 of file CDCRLWireHitPair.cc.

44{
46 m_fromRLWireHit.reverse();
47 m_toRLWireHit.reverse();
48}

◆ reversed()

CDCRLWireHitPair reversed ( ) const

Constructs a oriented wire hit pair that is the reverse of this one.

Definition at line 38 of file CDCRLWireHitPair.cc.

39{
41}
CDCRLWireHitPair reversed() const
Constructs a oriented wire hit pair that is the reverse of this one.

◆ setFromRLInfo()

void setFromRLInfo ( ERightLeft fromRLInfo)

Setter for the right left passage information of the first oriented wire hit.

Definition at line 55 of file CDCRLWireHitPair.cc.

56{
57 m_fromRLWireHit.setRLInfo(fromRLInfo);
58}

◆ setFromRLWireHit()

void setFromRLWireHit ( const CDCRLWireHit & fromRLWireHit)
inline

Setter for the first oriented wire hit.

Definition at line 177 of file CDCRLWireHitPair.h.

178 {
179 m_fromRLWireHit = fromRLWireHit;
180 }

◆ setICluster()

void setICluster ( int iCluster)
inline

Setter for the cluster id.

Definition at line 201 of file CDCRLWireHitPair.h.

202 {
203 m_iCluster = iCluster;
204 }

◆ setToRLInfo()

void setToRLInfo ( ERightLeft toRLInfo)

Setter for the right left passage information of the second oriented wire hit.

Definition at line 60 of file CDCRLWireHitPair.cc.

61{
62 m_toRLWireHit.setRLInfo(toRLInfo);
63}

◆ setToRLWireHit()

void setToRLWireHit ( const CDCRLWireHit & toRLWireHit)
inline

Setter for the second oriented wire hit.

Definition at line 183 of file CDCRLWireHitPair.h.

184 {
185 m_toRLWireHit = toRLWireHit;
186 }

Friends And Related Symbol Documentation

◆ operator< [1/2]

bool operator< ( const CDCRLWireHitPair & rlWireHitPair,
const CDCWireHit & wireHit )
friend

Defines wire hits and oriented wire hit pair as coaligned on the first wire hit.

Definition at line 71 of file CDCRLWireHitPair.h.

72 {
73 return rlWireHitPair.getFromRLWireHit() < wireHit;
74 }

◆ operator< [2/2]

bool operator< ( const CDCWireHit & wireHit,
const CDCRLWireHitPair & rlWireHitPair )
friend

Defines wire hits and oriented wire hit pair as coaligned on the first wire hit.

Definition at line 77 of file CDCRLWireHitPair.h.

78 {
79 return wireHit < rlWireHitPair.getFromRLWireHit();
80 }

Member Data Documentation

◆ m_fromRLWireHit

CDCRLWireHit m_fromRLWireHit
protected

Memory for the reference to the first oriented wire hit.

Definition at line 208 of file CDCRLWireHitPair.h.

◆ m_iCluster

int m_iCluster = -1
protected

Memory for the cluster id of this facet.

Definition at line 214 of file CDCRLWireHitPair.h.

◆ m_toRLWireHit

CDCRLWireHit m_toRLWireHit
protected

Memory for the reference to the second oriented wire hit.

Definition at line 211 of file CDCRLWireHitPair.h.


The documentation for this class was generated from the following files: