 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/eventdata/segments/CDCFacetSegment.h>
12 #include <tracking/trackFindingCDC/eventdata/segments/CDCRLWireHitSegment.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCFacet.h>
15 #include <tracking/trackFindingCDC/utilities/Algorithms.h>
17 #include <framework/logging/Logger.h>
28 namespace TrackFindingCDC {
35 using namespace TrackFindingCDC;
40 size_t nRLWireHits = rlWireHitSegment.size();
41 if (nRLWireHits < 3)
return facetSegment;
43 facetSegment.reserve(nRLWireHits - 2);
46 transform_adjacent_triples(rlWireHitSegment.begin(),
47 rlWireHitSegment.end(),
48 back_inserter(facetSegment),
52 return CDCFacet(firstRLWireHit, secondRLWireHit, thirdRLWireHit);
55 if (facetSegment.size() + 2 != rlWireHitSegment.size()) {
56 B2ERROR(
"Wrong number of facets created.");
static CDCFacetSegment create(const CDCRLWireHitSegment &rlWireHitSegment)
Construct a train of facets from the given oriented wire hits.
void setTrajectory2D(const CDCTrajectory2D &trajectory2D) const
Setter for the two dimensional trajectory fitted to the segment.
A segment consisting of two dimensional reconsturcted hits.
A segment consisting of adjacent facets.
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.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representing a triple of neighboring oriented wire with additional trajectory information.
void setAliasScore(double aliasScore)
Setter for the flag that this segment may have an aliased version.