Belle II Software development
CDCFacet Class Reference

Class representing a triple of neighboring oriented wire with additional trajectory information. More...

#include <CDCFacet.h>

Inheritance diagram for CDCFacet:
CDCRLWireHitTriple

Public Member Functions

 CDCFacet ()=default
 Default constructor for ROOT.
 
 CDCFacet (const CDCRLWireHit &startRLWireHit, const CDCRLWireHit &middleRLWireHit, const CDCRLWireHit &endRLWireHit)
 Constructor taking three oriented wire hits.
 
 CDCFacet (const CDCRLWireHit &startRLWireHit, const CDCRLWireHit &middleRLWireHit, const CDCRLWireHit &endRLWireHit, const UncertainParameterLine2D &fitLine)
 Constructor taking three oriented wire hits and the fit line.
 
void reverse ()
 Reverses the facet inplace including the fit line.
 
CDCFacet reversed () const
 Constructs the reverse tiple from this one.
 
void adjustFitLine () const
 Adjusts the contained fit line to touch such that it touches the first and third hit.
 
void invalidateFitLine ()
 Clear all information in the fit.
 
const UncertainParameterLine2DgetFitLine () const
 Getter for the contained line fit information.
 
void setFitLine (const UncertainParameterLine2D &fitLine) const
 Setter for the contained line fit information.
 
ParameterLine2D getStartToMiddleLine () const
 Getter for the tangential line from the first to the second hit.
 
ParameterLine2D getStartToEndLine () const
 Getter for the tangential line from the first to the third hit.
 
ParameterLine2D getMiddleToEndLine () const
 Getter for the tangential line from the second to the third hit.
 
Vector2D getStartRecoPos2D () const
 Getter for the reconstructed position at the first hit on the fit line.
 
Vector2D getMiddleRecoPos2D () const
 Getter for the reconstructed position at the second hit on the fit line.
 
Vector2D getEndRecoPos2D () const
 Getter for the reconstructed position at the third hit on the fit line.
 
CDCRecoHit2D getStartRecoHit2D () const
 Getter for the first reconstucted hit.
 
CDCRecoHit2D getMiddleRecoHit2D () const
 Getter for the second reconstucted hit.
 
CDCRecoHit2D getEndRecoHit2D () const
 Getter for the third reconstucted hit.
 
CDCTangent getStartToMiddle () const
 Getter for the tangential line including the hits from the first to the second hit.
 
CDCTangent getStartToEnd () const
 Getter for the tangential line including the hits from the first to the third hit.
 
CDCTangent getMiddleToEnd () const
 Getter for the tangential line including the hits from the second to the third hit.
 
void unsetAndForwardMaskedFlag () const
 Unset the masked flag of the facet's automaton cell and of the three contained wire hits.
 
void setAndForwardMaskedFlag () const
 Sets the masked flag of the facet's automaton cell and of the three contained wire hits.
 
void receiveMaskedFlag () const
 If one of the contained wire hits is marked as masked this facet is set be masked as well.
 
AutomatonCellgetAutomatonCell () const
 Mutable getter for the automaton cell.
 
CDCRLWireHitTriple getAlias () const
 Returns the aliased version of this oriented wire hit triple.
 
bool operator== (const CDCRLWireHitTriple &other) const
 Equality comparision considering all three oriented wire hits.
 
bool operator< (const CDCRLWireHitTriple &other) const
 Establish a total ordering based on the three oriented wire hits.
 
Shape getShape () const
 Getter for the shape of this tiple if all three oriented wire hits are neighbors. Else ILLSHAPE.
 
ISuperLayer getISuperLayer () const
 Getter for the common superlayer id of the pair.
 
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 CDCWiregetStartWire () const
 Getter for the wire the first oriented wire hit is based on.
 
const CDCWiregetMiddleWire () const
 Getter for the wire the second oriented wire hit is based on.
 
const CDCWiregetEndWire () const
 Getter for the wire the third oriented wire hit is based on.
 
bool hasWire (const CDCWire &wire) const
 Indicator if any of the three oriented wire hits is based on the given wire.
 
ERightLeft getStartRLInfo () const
 Getter for the right left passage information of the first oriented wire hit.
 
ERightLeft getMiddleRLInfo () const
 Getter for the right left passage information of the second oriented wire hit.
 
ERightLeft getEndRLInfo () const
 Getter for the right left passage information of the third oriented wire hit.
 
const CDCWireHitgetStartWireHit () const
 Getter for the hit wire of the first oriented wire hit.
 
const CDCWireHitgetMiddleWireHit () const
 Getter for the hit wire of the second oriented wire hit.
 
const CDCWireHitgetEndWireHit () const
 Getter for the hit wire of the third oriented wire hit.
 
bool hasWireHit (const CDCWireHit &wirehit) const
 Indicator if any of the three oriented wire hits is based on the given wire hit.
 
CDCRLWireHitgetStartRLWireHit ()
 Getter for the first oriented wire hit.
 
const CDCRLWireHitgetStartRLWireHit () const
 Constant getter for the first oriented wire hit.
 
CDCRLWireHitgetMiddleRLWireHit ()
 Getter for the second oriented wire hit.
 
const CDCRLWireHitgetMiddleRLWireHit () const
 Constant getter for the second oriented wire hit.
 
CDCRLWireHitgetEndRLWireHit ()
 Getter for the third oriented wire hit.
 
const CDCRLWireHitgetEndRLWireHit () const
 Constant getter for the third oriented wire hit.
 
CDCRLWireHitPairgetRearRLWireHitPair ()
 Getter for the pair of second and third oriented wire hit.
 
const CDCRLWireHitPairgetRearRLWireHitPair () const
 Constant getter for the pair of second and third oriented wire hit.
 
void setStartRLWireHit (const CDCRLWireHit &startRLWireHit)
 Setter for the first oriented wire hit.
 
void setMiddleRLWireHit (const CDCRLWireHit &middleRLWireHit)
 Setter for the second oriented wire hit.
 
void setEndRLWireHit (const CDCRLWireHit &endRLWireHit)
 Setter for the third oriented wire hit.
 
void setStartRLInfo (const ERightLeft startRLInfo)
 Setter for the right left passage information of the first oriented wire hit.
 
void setMiddleRLInfo (const ERightLeft middleRLInfo)
 Setter for the right left passage information of the second oriented wire hit.
 
void setEndRLInfo (const ERightLeft endRLInfo)
 Setter for the right left passage information of the third oriented wire hit.
 
int getICluster () const
 Getter for the cluster id.
 
void setICluster (int iCluster)
 Setter for the cluster id.
 

Protected Attributes

CDCRLWireHit m_startRLWireHit
 Memory for the start oriented wire hit.
 
CDCRLWireHitPair m_rearRLWireHitPair
 Memory for the second and third wire hits.
 

Private Attributes

UncertainParameterLine2D m_fitLine
 Memory for a line fit to the three contained hits.
 
AutomatonCell m_automatonCell
 Memory for the cellular automaton cell assoziated with the facet.
 

Detailed Description

Class representing a triple of neighboring oriented wire with additional trajectory information.

As trajectory information a single parameter line from a fit is used

Definition at line 32 of file CDCFacet.h.

Constructor & Destructor Documentation

◆ CDCFacet() [1/2]

CDCFacet ( const CDCRLWireHit startRLWireHit,
const CDCRLWireHit middleRLWireHit,
const CDCRLWireHit endRLWireHit 
)

Constructor taking three oriented wire hits.

Definition at line 27 of file CDCFacet.cc.

30 : CDCRLWireHitTriple(startRLWireHit, middleRLWireHit, endRLWireHit),
31 m_fitLine(),
33{
35}
void adjustFitLine() const
Adjusts the contained fit line to touch such that it touches the first and third hit.
Definition: CDCFacet.cc:61
UncertainParameterLine2D m_fitLine
Memory for a line fit to the three contained hits.
Definition: CDCFacet.h:137
AutomatonCell m_automatonCell
Memory for the cellular automaton cell assoziated with the facet.
Definition: CDCFacet.h:140
CDCRLWireHitTriple()=default
Default constructor for ROOT.

◆ CDCFacet() [2/2]

CDCFacet ( const CDCRLWireHit startRLWireHit,
const CDCRLWireHit middleRLWireHit,
const CDCRLWireHit endRLWireHit,
const UncertainParameterLine2D fitLine 
)

Constructor taking three oriented wire hits and the fit line.

Definition at line 37 of file CDCFacet.cc.

41 : CDCRLWireHitTriple(startRLWireHit, middleRLWireHit, endRLWireHit),
42 m_fitLine(fitLine),
44{
45}

Member Function Documentation

◆ adjustFitLine()

void adjustFitLine ( ) const

Adjusts the contained fit line to touch such that it touches the first and third hit.

Definition at line 61 of file CDCFacet.cc.

62{
64}
ParameterLine2D getStartToEndLine() const
Getter for the tangential line from the first to the third hit.
Definition: CDCFacet.cc:94
A parameter line including including an line covariance matrix which is interpreted as located in the...

◆ getAlias()

CDCRLWireHitTriple getAlias ( ) const
inherited

Returns the aliased version of this oriented wire hit triple.

Definition at line 87 of file CDCRLWireHitTriple.cc.

88{
92 getICluster());
93}
CDCRLWireHit & getStartRLWireHit()
Getter for the first oriented wire hit.
int getICluster() const
Getter for the cluster id.
CDCRLWireHit & getEndRLWireHit()
Getter for the third oriented wire hit.
CDCRLWireHit & getMiddleRLWireHit()
Getter for the second oriented wire hit.
CDCRLWireHitTriple getAlias() const
Returns the aliased version of this oriented wire hit triple.

◆ getAutomatonCell()

AutomatonCell & getAutomatonCell ( ) const
inline

Mutable getter for the automaton cell.

Definition at line 130 of file CDCFacet.h.

131 {
132 return m_automatonCell;
133 }

◆ getEndRecoHit2D()

CDCRecoHit2D getEndRecoHit2D ( ) const

Getter for the third reconstucted hit.

Definition at line 120 of file CDCFacet.cc.

121{
123}
Vector2D getEndRecoPos2D() const
Getter for the reconstructed position at the third hit on the fit line.
Definition: CDCFacet.cc:81
static CDCRecoHit2D fromRecoPos2D(const CDCRLWireHit &rlWireHit, const Vector2D &recoPos2D, bool snap=true)
Constructs a two dimensional reconstructed hit from an absolute position.
Definition: CDCRecoHit2D.cc:84

◆ getEndRecoPos2D()

Vector2D getEndRecoPos2D ( ) const

Getter for the reconstructed position at the third hit on the fit line.

Definition at line 81 of file CDCFacet.cc.

82{
83 return getFitLine()->closest(getEndWire().getRefPos2D());
84}
const UncertainParameterLine2D & getFitLine() const
Getter for the contained line fit information.
Definition: CDCFacet.h:61
const CDCWire & getEndWire() const
Getter for the wire the third oriented wire hit is based on.
Vector2D closest(const Vector2D &point) const
Gives the position at the closest approach on the line to point.

◆ getEndRLInfo()

ERightLeft getEndRLInfo ( ) const
inlineinherited

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

Definition at line 196 of file CDCRLWireHitTriple.h.

197 {
198 return getEndRLWireHit().getRLInfo();
199 }
ERightLeft getRLInfo() const
Getter for the right left passage information.
Definition: CDCRLWireHit.h:234

◆ getEndRLWireHit() [1/2]

CDCRLWireHit & getEndRLWireHit ( )
inlineinherited

Getter for the third oriented wire hit.

Definition at line 239 of file CDCRLWireHitTriple.h.

240 {
242 }
CDCRLWireHit & getToRLWireHit()
Getter for the second oriented wire hit.
CDCRLWireHitPair & getRearRLWireHitPair()
Getter for the pair of second and third oriented wire hit.

◆ getEndRLWireHit() [2/2]

const CDCRLWireHit & getEndRLWireHit ( ) const
inlineinherited

Constant getter for the third oriented wire hit.

Definition at line 257 of file CDCRLWireHitTriple.h.

258 {
260 }

◆ getEndWire()

const CDCWire & getEndWire ( ) const
inlineinherited

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

Definition at line 172 of file CDCRLWireHitTriple.h.

173 {
174 return getEndRLWireHit().getWire();
175 }
const CDCWire & getWire() const
Getter for the wire the oriented hit associated to.

◆ getEndWireHit()

const CDCWireHit & getEndWireHit ( ) const
inlineinherited

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

Definition at line 214 of file CDCRLWireHitTriple.h.

215 {
216 return getEndRLWireHit().getWireHit();
217 }
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
Definition: CDCRLWireHit.h:192

◆ getFitLine()

const UncertainParameterLine2D & getFitLine ( ) const
inline

Getter for the contained line fit information.

Definition at line 61 of file CDCFacet.h.

62 {
63 return m_fitLine;
64 }

◆ getICluster()

int getICluster ( ) const
inlineinherited

Getter for the cluster id.

Definition at line 311 of file CDCRLWireHitTriple.h.

312 {
314 }
int getICluster() const
Getter for the cluster id.
CDCRLWireHitPair m_rearRLWireHitPair
Memory for the second and third wire hits.

◆ getISuperLayer()

ISuperLayer getISuperLayer ( ) const
inlineinherited

Getter for the common superlayer id of the pair.

Definition at line 141 of file CDCRLWireHitTriple.h.

142 {
145 }
ISuperLayer getISuperLayer() const
Getter for the common superlayer id of the pair.
ISuperLayer getISuperLayer() const
Getter for the superlayer id.

◆ getMiddleRecoHit2D()

CDCRecoHit2D getMiddleRecoHit2D ( ) const

Getter for the second reconstucted hit.

Definition at line 115 of file CDCFacet.cc.

116{
118}
Vector2D getMiddleRecoPos2D() const
Getter for the reconstructed position at the second hit on the fit line.
Definition: CDCFacet.cc:76

◆ getMiddleRecoPos2D()

Vector2D getMiddleRecoPos2D ( ) const

Getter for the reconstructed position at the second hit on the fit line.

Definition at line 76 of file CDCFacet.cc.

77{
78 return getFitLine()->closest(getMiddleWire().getRefPos2D());
79}
const CDCWire & getMiddleWire() const
Getter for the wire the second oriented wire hit is based on.

◆ getMiddleRLInfo()

ERightLeft getMiddleRLInfo ( ) const
inlineinherited

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

Definition at line 190 of file CDCRLWireHitTriple.h.

191 {
192 return getMiddleRLWireHit().getRLInfo();
193 }

◆ getMiddleRLWireHit() [1/2]

CDCRLWireHit & getMiddleRLWireHit ( )
inlineinherited

Getter for the second oriented wire hit.

Definition at line 233 of file CDCRLWireHitTriple.h.

234 {
236 }
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.

◆ getMiddleRLWireHit() [2/2]

const CDCRLWireHit & getMiddleRLWireHit ( ) const
inlineinherited

Constant getter for the second oriented wire hit.

Definition at line 251 of file CDCRLWireHitTriple.h.

252 {
254 }

◆ getMiddleToEnd()

CDCTangent getMiddleToEnd ( ) const

Getter for the tangential line including the hits from the second to the third hit.

Definition at line 135 of file CDCFacet.cc.

136{
138}
ParameterLine2D getMiddleToEndLine() const
Getter for the tangential line from the second to the third hit.
Definition: CDCFacet.cc:102
Class representating a linear track piece between two oriented wire hits.
Definition: CDCTangent.h:40

◆ getMiddleToEndLine()

ParameterLine2D getMiddleToEndLine ( ) const

Getter for the tangential line from the second to the third hit.

The line is computed as touching the second and third drift circle assuming the stored right left passage information

Definition at line 102 of file CDCFacet.cc.

103{
105 getMiddleRLWireHit().getSignedRefDriftLength() ,
106 getEndRLWireHit().getRefPos2D(),
107 getEndRLWireHit().getSignedRefDriftLength());
108}
static ParameterLine2D touchingCircles(const Vector2D &fromCenter, double fromSignedRadius, const Vector2D &toCenter, double toSignedRadius)
Constructs a line touching two circles in one point each.

◆ getMiddleWire()

const CDCWire & getMiddleWire ( ) const
inlineinherited

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

Definition at line 166 of file CDCRLWireHitTriple.h.

167 {
168 return getMiddleRLWireHit().getWire();
169 }

◆ getMiddleWireHit()

const CDCWireHit & getMiddleWireHit ( ) const
inlineinherited

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

Definition at line 208 of file CDCRLWireHitTriple.h.

209 {
211 }

◆ getRearRLWireHitPair() [1/2]

CDCRLWireHitPair & getRearRLWireHitPair ( )
inlineinherited

Getter for the pair of second and third oriented wire hit.

Definition at line 263 of file CDCRLWireHitTriple.h.

264 {
265 return m_rearRLWireHitPair;
266 }

◆ getRearRLWireHitPair() [2/2]

const CDCRLWireHitPair & getRearRLWireHitPair ( ) const
inlineinherited

Constant getter for the pair of second and third oriented wire hit.

Definition at line 269 of file CDCRLWireHitTriple.h.

270 {
271 return m_rearRLWireHitPair;
272 }

◆ getShape()

CDCRLWireHitTriple::Shape getShape ( ) const
inherited

Getter for the shape of this tiple if all three oriented wire hits are neighbors. Else ILLSHAPE.

Definition at line 95 of file CDCRLWireHitTriple.cc.

96{
97 const CDCWire& startWire = getStartWire();
98 const CDCWire& middleWire = getMiddleWire();
99 const CDCWire& endWire = getEndWire();
100
101 WireNeighborKind startToMiddleNeighborKind = startWire.getNeighborKind(middleWire);
102 WireNeighborKind middleToEndNeighborKind = middleWire.getNeighborKind(endWire);
103
104 if (not startToMiddleNeighborKind.isValid() or
105 not middleToEndNeighborKind.isValid()) {
106 return Shape();
107 }
108
109 // Neighbor types are marked on the clock. Difference is so to say an angular value apart from a 12 / (2 * pi) factor
110 const short oClockDelta = middleToEndNeighborKind.getOClockDirection() - startToMiddleNeighborKind.getOClockDirection();
111 const short startToMiddleCellDistance = startToMiddleNeighborKind.getCellDistance();
112 const short middleToEndCellDistance = middleToEndNeighborKind.getCellDistance();
113 return Shape(startToMiddleCellDistance,
114 middleToEndCellDistance,
115 symmetricModuloFast(oClockDelta, 12));
116}
const CDCWire & getStartWire() const
Getter for the wire the first oriented wire hit is based on.
Class representing a sense wire in the central drift chamber.
Definition: CDCWire.h:58
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.
bool isValid() const
Check if the neighbor kind is in principle valid.
short getOClockDirection() const
Get the direction on the clock to follow to reach the neighbor.
short getCellDistance() const
Get the distance to the wire neighbor counted in number of cells.

◆ getStartRecoHit2D()

CDCRecoHit2D getStartRecoHit2D ( ) const

Getter for the first reconstucted hit.

Definition at line 110 of file CDCFacet.cc.

111{
113}
Vector2D getStartRecoPos2D() const
Getter for the reconstructed position at the first hit on the fit line.
Definition: CDCFacet.cc:71

◆ getStartRecoPos2D()

Vector2D getStartRecoPos2D ( ) const

Getter for the reconstructed position at the first hit on the fit line.

Definition at line 71 of file CDCFacet.cc.

72{
73 return getFitLine()->closest(getStartWire().getRefPos2D());
74}

◆ getStartRLInfo()

ERightLeft getStartRLInfo ( ) const
inlineinherited

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

Definition at line 184 of file CDCRLWireHitTriple.h.

185 {
186 return getStartRLWireHit().getRLInfo();
187 }

◆ getStartRLWireHit() [1/2]

CDCRLWireHit & getStartRLWireHit ( )
inlineinherited

Getter for the first oriented wire hit.

Definition at line 227 of file CDCRLWireHitTriple.h.

228 {
229 return m_startRLWireHit;
230 }
CDCRLWireHit m_startRLWireHit
Memory for the start oriented wire hit.

◆ getStartRLWireHit() [2/2]

const CDCRLWireHit & getStartRLWireHit ( ) const
inlineinherited

Constant getter for the first oriented wire hit.

Definition at line 245 of file CDCRLWireHitTriple.h.

246 {
247 return m_startRLWireHit;
248 }

◆ getStartToEnd()

CDCTangent getStartToEnd ( ) const

Getter for the tangential line including the hits from the first to the third hit.

Definition at line 130 of file CDCFacet.cc.

◆ getStartToEndLine()

ParameterLine2D getStartToEndLine ( ) const

Getter for the tangential line from the first to the third hit.

The line is computed as touching the first and third drift circle assuming the stored right left passage information

Definition at line 94 of file CDCFacet.cc.

95{
97 getStartRLWireHit().getSignedRefDriftLength() ,
98 getEndRLWireHit().getRefPos2D(),
99 getEndRLWireHit().getSignedRefDriftLength());
100}

◆ getStartToMiddle()

CDCTangent getStartToMiddle ( ) const

Getter for the tangential line including the hits from the first to the second hit.

Definition at line 125 of file CDCFacet.cc.

126{
128}
ParameterLine2D getStartToMiddleLine() const
Getter for the tangential line from the first to the second hit.
Definition: CDCFacet.cc:86

◆ getStartToMiddleLine()

ParameterLine2D getStartToMiddleLine ( ) const

Getter for the tangential line from the first to the second hit.

The line is computed as touching the first and second drift circle assuming the stored right left passage information.

Definition at line 86 of file CDCFacet.cc.

87{
89 getStartRLWireHit().getSignedRefDriftLength() ,
90 getMiddleRLWireHit().getRefPos2D(),
91 getMiddleRLWireHit().getSignedRefDriftLength());
92}

◆ getStartWire()

const CDCWire & getStartWire ( ) const
inlineinherited

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

Definition at line 160 of file CDCRLWireHitTriple.h.

161 {
162 return getStartRLWireHit().getWire();
163 }

◆ getStartWireHit()

const CDCWireHit & getStartWireHit ( ) const
inlineinherited

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

Definition at line 202 of file CDCRLWireHitTriple.h.

203 {
204 return getStartRLWireHit().getWireHit();
205 }

◆ getStereoKind()

EStereoKind getStereoKind ( ) const
inlineinherited

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

Definition at line 148 of file CDCRLWireHitTriple.h.

149 {
151 }
static EStereoKind getStereoKind(ISuperLayer iSuperLayer)
Returns the stereo kind of the super layer.
Definition: ISuperLayer.cc:26

◆ hasWire()

bool hasWire ( const CDCWire wire) const
inlineinherited

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

Definition at line 178 of file CDCRLWireHitTriple.h.

179 {
180 return getStartRLWireHit().isOnWire(wire) or getRearRLWireHitPair().hasWire(wire);
181 }
bool hasWire(const CDCWire &wire) const
Indicator if any of the two oriented wire hits is based on the given wire.
bool isOnWire(const CDCWire &wire) const
Checks if the oriented hit is associated with the give wire.
Definition: CDCRLWireHit.h:168

◆ hasWireHit()

bool hasWireHit ( const CDCWireHit wirehit) const
inlineinherited

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

Definition at line 220 of file CDCRLWireHitTriple.h.

221 {
222 return getStartRLWireHit().hasWireHit(wirehit) or
224 }
bool hasWireHit(const CDCWireHit &wirehit) const
Indicator if any of the two oriented wire hits is based on the given wire hit.
bool hasWireHit(const CDCWireHit &wirehit) const
Checks if the oriented hit is associated with the give wire hit.
Definition: CDCRLWireHit.h:198

◆ invalidateFitLine()

void invalidateFitLine ( )

Clear all information in the fit.

Definition at line 66 of file CDCFacet.cc.

67{
69}
void invalidate()
Sets all line parameters to zero including the covariance matrix.

◆ isAxial()

bool isAxial ( ) const
inlineinherited

Indicator if the underlying wires are axial.

Definition at line 154 of file CDCRLWireHitTriple.h.

155 {
156 return getStereoKind() == EStereoKind::c_Axial;
157 }
EStereoKind getStereoKind() const
Getter for the common stereo type of the superlayer of the pair.

◆ operator<()

bool operator< ( const CDCRLWireHitTriple other) const
inlineinherited

Establish a total ordering based on the three oriented wire hits.

Definition at line 102 of file CDCRLWireHitTriple.h.

103 {
104 return getICluster() < other.getICluster() or
105 (getICluster() == other.getICluster() and
106 (getStartRLWireHit() < other.getStartRLWireHit() or
107 (getStartRLWireHit() == other.getStartRLWireHit() and
108 getRearRLWireHitPair() < other.getRearRLWireHitPair())));
109 }

◆ operator==()

bool operator== ( const CDCRLWireHitTriple other) const
inlineinherited

Equality comparision considering all three oriented wire hits.

Definition at line 94 of file CDCRLWireHitTriple.h.

95 {
96 return getStartRLWireHit() == other.getStartRLWireHit() and
97 getRearRLWireHitPair() == other.getRearRLWireHitPair();
98 }

◆ receiveMaskedFlag()

void receiveMaskedFlag ( ) const

If one of the contained wire hits is marked as masked this facet is set be masked as well.

Definition at line 156 of file CDCFacet.cc.

157{
158 if (getStartWireHit().getAutomatonCell().hasMaskedFlag() or
159 getMiddleWireHit().getAutomatonCell().hasMaskedFlag() or
160 getEndWireHit().getAutomatonCell().hasMaskedFlag()) {
161
163 }
164}
void setMaskedFlag(bool setTo=true)
Sets the masked flag to the given value. Default value true.
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition: CDCFacet.h:130
const CDCWireHit & getMiddleWireHit() const
Getter for the hit wire of the second oriented wire hit.
const CDCWireHit & getEndWireHit() const
Getter for the hit wire of the third oriented wire hit.
const CDCWireHit & getStartWireHit() const
Getter for the hit wire of the first oriented wire hit.

◆ reverse()

void reverse ( )

Reverses the facet inplace including the fit line.

Definition at line 47 of file CDCFacet.cc.

48{
51}
void reverse()
Reverses the triple inplace.
void reverse()
Reverses the direction of flight represented by this line.

◆ reversed()

CDCFacet reversed ( ) const

Constructs the reverse tiple from this one.

Definition at line 53 of file CDCFacet.cc.

54{
59}
CDCFacet()=default
Default constructor for ROOT.
CDCFacet reversed() const
Constructs the reverse tiple from this one.
Definition: CDCFacet.cc:53
UncertainParameterLine2D reversed() const
Returns a copy of the line corresponding to the reverse direction of travel.

◆ setAndForwardMaskedFlag()

void setAndForwardMaskedFlag ( ) const

Sets the masked flag of the facet's automaton cell and of the three contained wire hits.

Definition at line 148 of file CDCFacet.cc.

149{
154}
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition: CDCWireHit.h:286

◆ setEndRLInfo()

void setEndRLInfo ( const ERightLeft  endRLInfo)
inlineinherited

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

Definition at line 305 of file CDCRLWireHitTriple.h.

306 {
308 }
void setToRLInfo(ERightLeft toRLInfo)
Setter for the right left passage information of the second oriented wire hit.

◆ setEndRLWireHit()

void setEndRLWireHit ( const CDCRLWireHit endRLWireHit)
inlineinherited

Setter for the third oriented wire hit.

Definition at line 287 of file CDCRLWireHitTriple.h.

288 {
290 }
void setToRLWireHit(const CDCRLWireHit &toRLWireHit)
Setter for the second oriented wire hit.

◆ setFitLine()

void setFitLine ( const UncertainParameterLine2D fitLine) const
inline

Setter for the contained line fit information.

Definition at line 67 of file CDCFacet.h.

68 {
69 m_fitLine = fitLine;
70 }

◆ setICluster()

void setICluster ( int  iCluster)
inlineinherited

Setter for the cluster id.

Definition at line 317 of file CDCRLWireHitTriple.h.

318 {
320 }
void setICluster(int iCluster)
Setter for the cluster id.

◆ setMiddleRLInfo()

void setMiddleRLInfo ( const ERightLeft  middleRLInfo)
inlineinherited

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

Definition at line 299 of file CDCRLWireHitTriple.h.

300 {
301 getRearRLWireHitPair().setFromRLInfo(middleRLInfo);
302 }
void setFromRLInfo(ERightLeft fromRLInfo)
Setter for the right left passage information of the first oriented wire hit.

◆ setMiddleRLWireHit()

void setMiddleRLWireHit ( const CDCRLWireHit middleRLWireHit)
inlineinherited

Setter for the second oriented wire hit.

Definition at line 281 of file CDCRLWireHitTriple.h.

282 {
283 m_rearRLWireHitPair.setFromRLWireHit(middleRLWireHit);
284 }
void setFromRLWireHit(const CDCRLWireHit &fromRLWireHit)
Setter for the first oriented wire hit.

◆ setStartRLInfo()

void setStartRLInfo ( const ERightLeft  startRLInfo)
inlineinherited

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

Definition at line 293 of file CDCRLWireHitTriple.h.

294 {
295 m_startRLWireHit.setRLInfo(startRLInfo);
296 }
void setRLInfo(const ERightLeft rlInfo)
Setter for the right left passage information.
Definition: CDCRLWireHit.h:240

◆ setStartRLWireHit()

void setStartRLWireHit ( const CDCRLWireHit startRLWireHit)
inlineinherited

Setter for the first oriented wire hit.

Definition at line 275 of file CDCRLWireHitTriple.h.

276 {
277 m_startRLWireHit = startRLWireHit;
278 }

◆ unsetAndForwardMaskedFlag()

void unsetAndForwardMaskedFlag ( ) const

Unset the masked flag of the facet's automaton cell and of the three contained wire hits.

Definition at line 140 of file CDCFacet.cc.

Member Data Documentation

◆ m_automatonCell

AutomatonCell m_automatonCell
mutableprivate

Memory for the cellular automaton cell assoziated with the facet.

Definition at line 140 of file CDCFacet.h.

◆ m_fitLine

UncertainParameterLine2D m_fitLine
mutableprivate

Memory for a line fit to the three contained hits.

Definition at line 137 of file CDCFacet.h.

◆ m_rearRLWireHitPair

CDCRLWireHitPair m_rearRLWireHitPair
protectedinherited

Memory for the second and third wire hits.

Definition at line 327 of file CDCRLWireHitTriple.h.

◆ m_startRLWireHit

CDCRLWireHit m_startRLWireHit
protectedinherited

Memory for the start oriented wire hit.

Definition at line 324 of file CDCRLWireHitTriple.h.


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