8#include <tracking/trackingUtilities/eventdata/hits/CDCRLWireHitTriple.h>
10#include <tracking/trackingUtilities/eventdata/hits/CDCRLWireHit.h>
11#include <cdc/topology/CDCWire.h>
12#include <cdc/topology/WireNeighborKind.h>
13#include <tracking/trackingUtilities/numerics/Modulo.h>
20using namespace TrackingUtilities;
30 const short middleToEndCellDistance,
31 const short oClockDelta)
105 if (not startToMiddleNeighborKind.
isValid() or
106 not middleToEndNeighborKind.
isValid()) {
112 const short startToMiddleCellDistance = startToMiddleNeighborKind.
getCellDistance();
113 const short middleToEndCellDistance = middleToEndNeighborKind.
getCellDistance();
114 return Shape(startToMiddleCellDistance,
115 middleToEndCellDistance,
116 symmetricModuloFast(oClockDelta, 12));
119std::ostream& TrackingUtilities::
Class representing a sense wire in the central drift chamber.
WireNeighborKind getNeighborKind(const CDCWire &wire) const
Returns gives the kind of neighborhood relation from this wire to the given wire.
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.
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 reverse()
Reverses the triple inplace.
CDCRLWireHitTriple()=default
Default constructor for ROOT.
const CDC::CDCWire & getStartWire() const
Getter for the wire the first oriented wire hit is based on.
void setEndRLWireHit(const CDCRLWireHit &endRLWireHit)
Setter for the third oriented wire hit.
const CDC::CDCWire & getMiddleWire() const
Getter for the wire the second oriented wire hit is based on.
CDCRLWireHit & getStartRLWireHit()
Getter for the first oriented wire hit.
const CDC::CDCWire & getEndWire() const
Getter for the wire the third oriented wire hit is based on.
void setMiddleRLWireHit(const CDCRLWireHit &middleRLWireHit)
Setter for the second oriented wire hit.
CDCRLWireHitTriple reversed() const
Constructs the reverse triple from this one.
CDCRLWireHitPair m_rearRLWireHitPair
Memory for the second and third wire hits.
int getICluster() const
Getter for the cluster id.
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.
CDCRLWireHit & getMiddleRLWireHit()
Getter for the second 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 ...
CDCRLWireHit reversed() const
Returns the oriented wire hit with the opposite right left information.
Abstract base class for different kinds of events.