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 in place including the fit line.
 
CDCFacet reversed () const
 Constructs the reverse triple 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 reconstructed hit.
 
CDCRecoHit2D getMiddleRecoHit2D () const
 Getter for the second reconstructed hit.
 
CDCRecoHit2D getEndRecoHit2D () const
 Getter for the third reconstructed 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 comparison 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 triple if all three oriented wire hits are neighbors. Else ILLSHAPE.
 
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::CDCWiregetStartWire () const
 Getter for the wire the first oriented wire hit is based on.
 
const CDC::CDCWiregetMiddleWire () const
 Getter for the wire the second oriented wire hit is based on.
 
const CDC::CDCWiregetEndWire () const
 Getter for the wire the third oriented wire hit is based on.
 
bool hasWire (const CDC::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 associated 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 28 of file CDCFacet.cc.

31 : CDCRLWireHitTriple(startRLWireHit, middleRLWireHit, endRLWireHit),
32 m_fitLine(),
34{
36}
void adjustFitLine() const
Adjusts the contained fit line to touch such that it touches the first and third hit.
Definition CDCFacet.cc:62
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 associated 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 38 of file CDCFacet.cc.

42 : CDCRLWireHitTriple(startRLWireHit, middleRLWireHit, endRLWireHit),
43 m_fitLine(fitLine),
45{
46}

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 62 of file CDCFacet.cc.

63{
64 m_fitLine = UncertainParameterLine2D(getStartToEndLine());
65}
ParameterLine2D getStartToEndLine() const
Getter for the tangential line from the first to the third hit.
Definition CDCFacet.cc:95

◆ getAlias()

CDCRLWireHitTriple getAlias ( ) const
inherited

Returns the aliased version of this oriented wire hit triple.

Definition at line 88 of file CDCRLWireHitTriple.cc.

89{
93 getICluster());
94}
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 reconstructed hit.

Definition at line 121 of file CDCFacet.cc.

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

◆ getEndRecoPos2D()

Vector2D getEndRecoPos2D ( ) const

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

Definition at line 82 of file CDCFacet.cc.

83{
84 return getFitLine()->closest(getEndWire().getRefPos2D());
85}
const UncertainParameterLine2D & getFitLine() const
Getter for the contained line fit information.
Definition CDCFacet.h:61
const CDC::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 198 of file CDCRLWireHitTriple.h.

199 {
200 return getEndRLWireHit().getRLInfo();
201 }

◆ getEndRLWireHit() [1/2]

CDCRLWireHit & getEndRLWireHit ( )
inlineinherited

Getter for the third oriented wire hit.

Definition at line 241 of file CDCRLWireHitTriple.h.

242 {
243 return getRearRLWireHitPair().getToRLWireHit();
244 }

◆ getEndRLWireHit() [2/2]

const CDCRLWireHit & getEndRLWireHit ( ) const
inlineinherited

Constant getter for the third oriented wire hit.

Definition at line 259 of file CDCRLWireHitTriple.h.

260 {
261 return getRearRLWireHitPair().getToRLWireHit();
262 }

◆ getEndWire()

const CDC::CDCWire & getEndWire ( ) const
inlineinherited

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

Definition at line 174 of file CDCRLWireHitTriple.h.

175 {
176 return getEndRLWireHit().getWire();
177 }

◆ getEndWireHit()

const CDCWireHit & getEndWireHit ( ) const
inlineinherited

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

Definition at line 216 of file CDCRLWireHitTriple.h.

217 {
218 return getEndRLWireHit().getWireHit();
219 }

◆ 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 313 of file CDCRLWireHitTriple.h.

314 {
315 return m_rearRLWireHitPair.getICluster();
316 }

◆ getISuperLayer()

CDC::ISuperLayer getISuperLayer ( ) const
inlineinherited

Getter for the common superlayer id of the pair.

Definition at line 143 of file CDCRLWireHitTriple.h.

144 {
145 assert(getStartRLWireHit().getISuperLayer() == getRearRLWireHitPair().getISuperLayer());
146 return getStartRLWireHit().getISuperLayer();
147 }

◆ getMiddleRecoHit2D()

CDCRecoHit2D getMiddleRecoHit2D ( ) const

Getter for the second reconstructed hit.

Definition at line 116 of file CDCFacet.cc.

117{
119}
Vector2D getMiddleRecoPos2D() const
Getter for the reconstructed position at the second hit on the fit line.
Definition CDCFacet.cc:77

◆ getMiddleRecoPos2D()

Vector2D getMiddleRecoPos2D ( ) const

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

Definition at line 77 of file CDCFacet.cc.

78{
79 return getFitLine()->closest(getMiddleWire().getRefPos2D());
80}
const CDC::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 192 of file CDCRLWireHitTriple.h.

193 {
194 return getMiddleRLWireHit().getRLInfo();
195 }

◆ getMiddleRLWireHit() [1/2]

CDCRLWireHit & getMiddleRLWireHit ( )
inlineinherited

Getter for the second oriented wire hit.

Definition at line 235 of file CDCRLWireHitTriple.h.

236 {
237 return getRearRLWireHitPair().getFromRLWireHit();
238 }

◆ getMiddleRLWireHit() [2/2]

const CDCRLWireHit & getMiddleRLWireHit ( ) const
inlineinherited

Constant getter for the second oriented wire hit.

Definition at line 253 of file CDCRLWireHitTriple.h.

254 {
255 return getRearRLWireHitPair().getFromRLWireHit();
256 }

◆ getMiddleToEnd()

CDCTangent getMiddleToEnd ( ) const

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

Definition at line 136 of file CDCFacet.cc.

137{
138 return CDCTangent(getMiddleRLWireHit(), getEndRLWireHit(), getMiddleToEndLine());
139}
ParameterLine2D getMiddleToEndLine() const
Getter for the tangential line from the second to the third hit.
Definition CDCFacet.cc:103

◆ 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 103 of file CDCFacet.cc.

104{
106 getMiddleRLWireHit().getSignedRefDriftLength(),
107 getEndRLWireHit().getRefPos2D(),
108 getEndRLWireHit().getSignedRefDriftLength());
109}
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 CDC::CDCWire & getMiddleWire ( ) const
inlineinherited

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

Definition at line 168 of file CDCRLWireHitTriple.h.

169 {
170 return getMiddleRLWireHit().getWire();
171 }

◆ getMiddleWireHit()

const CDCWireHit & getMiddleWireHit ( ) const
inlineinherited

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

Definition at line 210 of file CDCRLWireHitTriple.h.

211 {
212 return getMiddleRLWireHit().getWireHit();
213 }

◆ getRearRLWireHitPair() [1/2]

CDCRLWireHitPair & getRearRLWireHitPair ( )
inlineinherited

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

Definition at line 265 of file CDCRLWireHitTriple.h.

266 {
267 return m_rearRLWireHitPair;
268 }

◆ getRearRLWireHitPair() [2/2]

const CDCRLWireHitPair & getRearRLWireHitPair ( ) const
inlineinherited

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

Definition at line 271 of file CDCRLWireHitTriple.h.

272 {
273 return m_rearRLWireHitPair;
274 }

◆ getShape()

CDCRLWireHitTriple::Shape getShape ( ) const
inherited

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

Definition at line 96 of file CDCRLWireHitTriple.cc.

97{
98 const CDCWire& startWire = getStartWire();
99 const CDCWire& middleWire = getMiddleWire();
100 const CDCWire& endWire = getEndWire();
101
102 WireNeighborKind startToMiddleNeighborKind = startWire.getNeighborKind(middleWire);
103 WireNeighborKind middleToEndNeighborKind = middleWire.getNeighborKind(endWire);
104
105 if (not startToMiddleNeighborKind.isValid() or
106 not middleToEndNeighborKind.isValid()) {
107 return Shape();
108 }
109
110 // Neighbor types are marked on the clock. Difference is so to say an angular value apart from a 12 / (2 * pi) factor
111 const short oClockDelta = middleToEndNeighborKind.getOClockDirection() - startToMiddleNeighborKind.getOClockDirection();
112 const short startToMiddleCellDistance = startToMiddleNeighborKind.getCellDistance();
113 const short middleToEndCellDistance = middleToEndNeighborKind.getCellDistance();
114 return Shape(startToMiddleCellDistance,
115 middleToEndCellDistance,
116 symmetricModuloFast(oClockDelta, 12));
117}
WireNeighborKind getNeighborKind(const CDCWire &wire) const
Returns gives the kind of neighborhood relation from this wire to the given wire.
Definition CDCWire.cc:139
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.
Type for the different shapes of a triple of neighboring wire hits.
const CDC::CDCWire & getStartWire() const
Getter for the wire the first oriented wire hit is based on.

◆ getStartRecoHit2D()

CDCRecoHit2D getStartRecoHit2D ( ) const

Getter for the first reconstructed hit.

Definition at line 111 of file CDCFacet.cc.

112{
114}
Vector2D getStartRecoPos2D() const
Getter for the reconstructed position at the first hit on the fit line.
Definition CDCFacet.cc:72

◆ getStartRecoPos2D()

Vector2D getStartRecoPos2D ( ) const

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

Definition at line 72 of file CDCFacet.cc.

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

◆ getStartRLInfo()

ERightLeft getStartRLInfo ( ) const
inlineinherited

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

Definition at line 186 of file CDCRLWireHitTriple.h.

187 {
188 return getStartRLWireHit().getRLInfo();
189 }

◆ getStartRLWireHit() [1/2]

CDCRLWireHit & getStartRLWireHit ( )
inlineinherited

Getter for the first oriented wire hit.

Definition at line 229 of file CDCRLWireHitTriple.h.

230 {
231 return m_startRLWireHit;
232 }

◆ getStartRLWireHit() [2/2]

const CDCRLWireHit & getStartRLWireHit ( ) const
inlineinherited

Constant getter for the first oriented wire hit.

Definition at line 247 of file CDCRLWireHitTriple.h.

248 {
249 return m_startRLWireHit;
250 }

◆ getStartToEnd()

CDCTangent getStartToEnd ( ) const

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

Definition at line 131 of file CDCFacet.cc.

132{
133 return CDCTangent(getStartRLWireHit(), getEndRLWireHit(), getStartToEndLine());
134}

◆ 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 95 of file CDCFacet.cc.

96{
98 getStartRLWireHit().getSignedRefDriftLength(),
99 getEndRLWireHit().getRefPos2D(),
100 getEndRLWireHit().getSignedRefDriftLength());
101}

◆ getStartToMiddle()

CDCTangent getStartToMiddle ( ) const

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

Definition at line 126 of file CDCFacet.cc.

127{
128 return CDCTangent(getStartRLWireHit(), getEndRLWireHit(), getStartToMiddleLine());
129}
ParameterLine2D getStartToMiddleLine() const
Getter for the tangential line from the first to the second hit.
Definition CDCFacet.cc:87

◆ 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 87 of file CDCFacet.cc.

88{
90 getStartRLWireHit().getSignedRefDriftLength(),
91 getMiddleRLWireHit().getRefPos2D(),
92 getMiddleRLWireHit().getSignedRefDriftLength());
93}

◆ getStartWire()

const CDC::CDCWire & getStartWire ( ) const
inlineinherited

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

Definition at line 162 of file CDCRLWireHitTriple.h.

163 {
164 return getStartRLWireHit().getWire();
165 }

◆ getStartWireHit()

const CDCWireHit & getStartWireHit ( ) const
inlineinherited

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

Definition at line 204 of file CDCRLWireHitTriple.h.

205 {
206 return getStartRLWireHit().getWireHit();
207 }

◆ getStereoKind()

CDC::EStereoKind getStereoKind ( ) const
inlineinherited

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

Definition at line 150 of file CDCRLWireHitTriple.h.

151 {
152 return CDC::ISuperLayerUtil::getStereoKind(getISuperLayer());
153 }

◆ hasWire()

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

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

Definition at line 180 of file CDCRLWireHitTriple.h.

181 {
182 return getStartRLWireHit().isOnWire(wire) or getRearRLWireHitPair().hasWire(wire);
183 }

◆ 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 222 of file CDCRLWireHitTriple.h.

223 {
224 return getStartRLWireHit().hasWireHit(wirehit) or
225 getRearRLWireHitPair().hasWireHit(wirehit);
226 }

◆ invalidateFitLine()

void invalidateFitLine ( )

Clear all information in the fit.

Definition at line 67 of file CDCFacet.cc.

68{
69 m_fitLine.invalidate();
70}

◆ isAxial()

bool isAxial ( ) const
inlineinherited

Indicator if the underlying wires are axial.

Definition at line 156 of file CDCRLWireHitTriple.h.

157 {
158 return getStereoKind() == CDC::EStereoKind::c_Axial;
159 }

◆ operator<()

bool operator< ( const CDCRLWireHitTriple & other) const
inlineinherited

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

Definition at line 104 of file CDCRLWireHitTriple.h.

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

◆ operator==()

bool operator== ( const CDCRLWireHitTriple & other) const
inlineinherited

Equality comparison considering all three oriented wire hits.

Definition at line 96 of file CDCRLWireHitTriple.h.

97 {
98 return getStartRLWireHit() == other.getStartRLWireHit() and
99 getRearRLWireHitPair() == other.getRearRLWireHitPair();
100 }

◆ 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 157 of file CDCFacet.cc.

158{
159 if (getStartWireHit().getAutomatonCell().hasMaskedFlag() or
160 getMiddleWireHit().getAutomatonCell().hasMaskedFlag() or
161 getEndWireHit().getAutomatonCell().hasMaskedFlag()) {
162
164 }
165}
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 in place including the fit line.

Definition at line 48 of file CDCFacet.cc.

49{
51 m_fitLine.reverse();
52}
void reverse()
Reverses the triple inplace.

◆ reversed()

CDCFacet reversed ( ) const

Constructs the reverse triple from this one.

Definition at line 54 of file CDCFacet.cc.

55{
59 m_fitLine.reversed());
60}
CDCFacet()=default
Default constructor for ROOT.
CDCFacet reversed() const
Constructs the reverse triple from this one.
Definition CDCFacet.cc:54

◆ setAndForwardMaskedFlag()

void setAndForwardMaskedFlag ( ) const

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

Definition at line 149 of file CDCFacet.cc.

150{
155}
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition CDCWireHit.h:289

◆ setEndRLInfo()

void setEndRLInfo ( const ERightLeft endRLInfo)
inlineinherited

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

Definition at line 307 of file CDCRLWireHitTriple.h.

308 {
309 getRearRLWireHitPair().setToRLInfo(endRLInfo);
310 }

◆ setEndRLWireHit()

void setEndRLWireHit ( const CDCRLWireHit & endRLWireHit)
inlineinherited

Setter for the third oriented wire hit.

Definition at line 289 of file CDCRLWireHitTriple.h.

290 {
291 m_rearRLWireHitPair.setToRLWireHit(endRLWireHit);
292 }

◆ 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 319 of file CDCRLWireHitTriple.h.

320 {
321 m_rearRLWireHitPair.setICluster(iCluster);
322 }

◆ setMiddleRLInfo()

void setMiddleRLInfo ( const ERightLeft middleRLInfo)
inlineinherited

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

Definition at line 301 of file CDCRLWireHitTriple.h.

302 {
303 getRearRLWireHitPair().setFromRLInfo(middleRLInfo);
304 }

◆ setMiddleRLWireHit()

void setMiddleRLWireHit ( const CDCRLWireHit & middleRLWireHit)
inlineinherited

Setter for the second oriented wire hit.

Definition at line 283 of file CDCRLWireHitTriple.h.

284 {
285 m_rearRLWireHitPair.setFromRLWireHit(middleRLWireHit);
286 }

◆ setStartRLInfo()

void setStartRLInfo ( const ERightLeft startRLInfo)
inlineinherited

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

Definition at line 295 of file CDCRLWireHitTriple.h.

296 {
297 m_startRLWireHit.setRLInfo(startRLInfo);
298 }

◆ setStartRLWireHit()

void setStartRLWireHit ( const CDCRLWireHit & startRLWireHit)
inlineinherited

Setter for the first oriented wire hit.

Definition at line 277 of file CDCRLWireHitTriple.h.

278 {
279 m_startRLWireHit = startRLWireHit;
280 }

◆ unsetAndForwardMaskedFlag()

void unsetAndForwardMaskedFlag ( ) const

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

Definition at line 141 of file CDCFacet.cc.

Member Data Documentation

◆ m_automatonCell

AutomatonCell m_automatonCell
mutableprivate

Memory for the cellular automaton cell associated 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 329 of file CDCRLWireHitTriple.h.

◆ m_startRLWireHit

CDCRLWireHit m_startRLWireHit
protectedinherited

Memory for the start oriented wire hit.

Definition at line 326 of file CDCRLWireHitTriple.h.


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