 |
Belle II Software
release-05-01-25
|
12 #include <tracking/trackFindingCDC/eventdata/trajectories/CDCTrajectory2D.h>
14 #include <tracking/trackFindingCDC/topology/ISuperLayer.h>
15 #include <tracking/trackFindingCDC/topology/EStereoKind.h>
24 namespace TrackFindingCDC {
28 class CDCSegment :
public std::vector<T> {
65 const std::vector<T>&
items()
const
85 std::stable_sort(this->begin(), this->end(), [](
const T & recoHit,
const T & otherRecoHit) {
86 return recoHit.getArcLength2D() < otherRecoHit.getArcLength2D();
void sortByArcLength2D()
Sort the recoHits according to their perpS information.
static ISuperLayer getFrom(const T &t)
Returns the superlayer of an object.
static EStereoKind getStereoKind(ISuperLayer iSuperLayer)
Returns the stereo kind of the super layer.
CDCTrajectory2D m_trajectory2D
Memory for the two dimensional trajectory fitted to this segment.
Particle trajectory as it is seen in xy projection represented as a circle.
void setTrajectory2D(const CDCTrajectory2D &trajectory2D) const
Setter for the two dimensional trajectory fitted to the segment.
double m_aliasScore
Boolean flag to indicate that this segment has a valid alias version.
bool isAxial() const
Indicator if the underlying wires are axial.
EStereoKind getStereoKind() const
Returns the common stereo type of all hits.
double getAliasScore() const
Getter for the flag that this segment may have an aliased version.
CDCTrajectory2D & getTrajectory2D() const
Getter for the two dimensional trajectory fitted to the segment.
Abstract base class for different kinds of events.
ISuperLayer getISuperLayer() const
Returns the common super layer id of all stored tracking hits.
const std::vector< T > & items() const
Legacy accessor for the items of the segments, still used in some corners.
CDCSegment()=default
Default constructor for ROOT.
void setAliasScore(double aliasScore)
Setter for the flag that this segment may have an aliased version.