 |
Belle II Software
release-05-02-19
|
10 #include <tracking/trackFindingCDC/processing/LowHitsAxialTrackUtil.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
15 #include <tracking/trackFindingCDC/fitting/CDCRiemannFitter.h>
16 #include <tracking/trackFindingCDC/eventdata/trajectories/CDCTrajectorySZ.h>
17 #include <tracking/trackFindingCDC/eventdata/trajectories/CDCTrajectory2D.h>
20 using namespace TrackFindingCDC;
23 const std::vector<const CDCWireHit*>& allAxialWireHits,
24 std::vector<CDCTrack>& axialTracks,
27 bool withPostprocessing)
29 if (foundAxialWireHits.empty())
return;
40 for (
const CDCWireHit* wireHit : foundAxialWireHits) {
44 track.push_back(std::move(recoHit3D));
48 track.sortByArcLength2D();
51 bool success = withPostprocessing ?
postprocessTrack(track, allAxialWireHits) :
true;
55 recoHit3D.getWireHit().getAutomatonCell().setTakenFlag(
true);
57 axialTracks.emplace_back(std::move(track));
61 recoHit3D.getWireHit().getAutomatonCell().setMaskedFlag(
true);
62 recoHit3D.getWireHit().getAutomatonCell().setTakenFlag(
false);
68 std::vector<const CDCWireHit*>& allAxialWireHits)
Class representing a three dimensional reconstructed hit.
Class implementing the Riemann fit for two dimensional trajectory circle.
static void addCandidateFromHits(const std::vector< const CDCWireHit * > &foundAxialWireHits, const std::vector< const CDCWireHit * > &allAxialWireHits, std::vector< CDCTrack > &axialTracks, bool fromOrigin=true, bool straight=true, bool withPostprocessing=true)
Create CDCTrack using CDCWireHit hits and store it in the list.
Class representing a sequence of three dimensional reconstructed hits.
void setTakenFlag(bool setTo=true)
Sets the taken flag to the given value. Default value true.
static CDCTrajectorySZ basicAssumption()
Constucts a basic assumption, what the z0 start position and the sz slope are, including some broad v...
static bool postprocessTrack(CDCTrack &track, const std::vector< const CDCWireHit * > &allAxialWireHits)
Perform all track postprocessing - return whether the track is considered good after the postprocessi...
Particle trajectory as it is seen in xy projection represented as a circle.
static CDCRecoHit3D reconstructNearest(const CDCWireHit *axialWireHit, const CDCTrajectory2D &trajectory2D)
Reconstruct a three dimensional hit from a wire hit (as in reconstruct(rlWireHit, trajectory2D)),...
Abstract base class for different kinds of events.
Cell used by the cellular automata.
bool hasTakenFlag() const
Gets the current state of the taken marker flag.
static const CDCRiemannFitter & getFitter()
Static getter for a general Riemann fitter.
Class representing a hit wire in the central drift chamber.
Particle full three dimensional trajectory.