10#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitPair.h>
11#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
13#include <tracking/trackFindingCDC/numerics/ERightLeft.h>
14#include <tracking/trackFindingCDC/topology/EStereoKind.h>
15#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
25 namespace TrackFindingCDC {
45 Shape(
const short startToMiddleCellDistance,
46 const short middleToEndCellDistance,
47 const short oClockDelta);
330 std::ostream& operator<<(std::ostream& output,
const CDCRLWireHitTriple& rlWireHitTriple);
A pair of oriented wire hits.
void setICluster(int iCluster)
Setter for the cluster id.
void setFromRLWireHit(const CDCRLWireHit &fromRLWireHit)
Setter for the first oriented wire hit.
CDCRLWireHit & getToRLWireHit()
Getter for the second 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.
bool hasWireHit(const CDCWireHit &wirehit) const
Indicator if any of the two oriented wire hits is based on the given 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.
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.
bool hasWire(const CDCWire &wire) const
Indicator if any of the two oriented wire hits is based on the given wire.
Type for the different shapes of a triple of neighboring wire hits.
short getMiddleToEndCellDistance() const
Getter for the middle to end cell distance.
char m_middleToEndCellDistance
The cell distances from middle to end.
bool isValid() const
Check if the shape is considered valid.
char m_startToMiddleCellDistance
The cell distances from start to middle.
short getCellExtend() const
Getter for the sum of cell distances from start to middle and middle to end.
Shape()
Default constructor for an invalid shape.
short getOClockDelta() const
Getter for the o'clock direction difference from start to middle compared to middle to end.
short m_oClockDelta
The o'clock direction difference from start to middle compared to middle to end.
short getStartToMiddleCellDistance() const
Getter for the start to middle cell distance.
Class representing a triple of neighboring wire hits.
void setICluster(int iCluster)
Setter for the cluster id.
CDCRLWireHitPair & getRearRLWireHitPair()
Getter for the pair of second and third oriented wire hit.
ERightLeft getMiddleRLInfo() const
Getter for the right left passage information of the second oriented wire hit.
const CDCRLWireHit & getEndRLWireHit() const
Constant getter for the third oriented wire hit.
const CDCWireHit & getMiddleWireHit() const
Getter for the hit wire of the second oriented wire hit.
ISuperLayer getISuperLayer() const
Getter for the common superlayer id of the pair.
void setEndRLInfo(const ERightLeft endRLInfo)
Setter for the right left passage information of the third oriented wire hit.
void reverse()
Reverses the triple inplace.
CDCRLWireHitTriple()=default
Default constructor for ROOT.
const CDCWire & getStartWire() const
Getter for the wire the first oriented wire hit is based on.
bool operator==(const CDCRLWireHitTriple &other) const
Equality comparison considering all three oriented wire hits.
const CDCRLWireHit & getStartRLWireHit() const
Constant getter for the first oriented wire hit.
bool isAxial() const
Indicator if the underlying wires are axial.
const CDCWire & getMiddleWire() const
Getter for the wire the second oriented wire hit is based on.
void setEndRLWireHit(const CDCRLWireHit &endRLWireHit)
Setter for the third oriented wire hit.
CDCRLWireHit & getStartRLWireHit()
Getter for the first oriented wire hit.
void setMiddleRLInfo(const ERightLeft middleRLInfo)
Setter for the right left passage information of the second oriented wire hit.
const CDCRLWireHitPair & getRearRLWireHitPair() const
Constant getter for the pair of second and third oriented wire hit.
ERightLeft getStartRLInfo() const
Getter for the right left passage information of the first 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.
void setMiddleRLWireHit(const CDCRLWireHit &middleRLWireHit)
Setter for the second oriented wire hit.
const CDCWireHit & getEndWireHit() const
Getter for the hit wire of the third oriented wire hit.
CDCRLWireHitTriple reversed() const
Constructs the reverse triple from this one.
CDCRLWireHitPair m_rearRLWireHitPair
Memory for the second and third wire hits.
ERightLeft getEndRLInfo() const
Getter for the right left passage information of the third oriented wire hit.
int getICluster() const
Getter for the cluster id.
const CDCWireHit & getStartWireHit() const
Getter for the hit wire of the first oriented wire hit.
const CDCRLWireHit & getMiddleRLWireHit() const
Constant getter for the second oriented wire hit.
const CDCWire & getEndWire() const
Getter for the wire the third oriented wire hit is based on.
EStereoKind getStereoKind() const
Getter for the common stereo type of the superlayer of the pair.
Shape getShape() const
Getter for the shape of this triple if all three oriented wire hits are neighbors....
CDCRLWireHit & getEndRLWireHit()
Getter for the third oriented wire hit.
bool hasWire(const CDCWire &wire) const
Indicator if any of the three oriented wire hits is based on the given wire.
CDCRLWireHit & getMiddleRLWireHit()
Getter for the second oriented wire hit.
friend bool operator<(const CDCRLWireHitTriple &rlWireHitTriple, const CDCRLWireHitPair &rlWireHitPair)
Define oriented wire hit pairs to be coaligned with oriented wire hit triples on the first two orient...
void setStartRLInfo(const ERightLeft startRLInfo)
Setter for the right left passage information of the first oriented wire hit.
void setStartRLWireHit(const CDCRLWireHit &startRLWireHit)
Setter for the first oriented wire hit.
CDCRLWireHit m_startRLWireHit
Memory for the start oriented wire hit.
CDCRLWireHitTriple getAlias() const
Returns the aliased version of this oriented wire hit triple.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
ISuperLayer getISuperLayer() const
Getter for the superlayer id.
const CDCWire & getWire() const
Getter for the wire the oriented hit associated to.
bool hasWireHit(const CDCWireHit &wirehit) const
Checks if the oriented hit is associated with the give wire hit.
void setRLInfo(const ERightLeft rlInfo)
Setter for the right left passage information.
bool isOnWire(const CDCWire &wire) const
Checks if the oriented hit is associated with the give wire.
ERightLeft getRLInfo() const
Getter for the right left passage information.
Class representing a hit wire in the central drift chamber.
Class representing a sense wire in the central drift chamber.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Abstract base class for different kinds of events.
static EStereoKind getStereoKind(ISuperLayer iSuperLayer)
Returns the stereo kind of the super layer.