 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/findlets/minimal/AxialTrackHitMigrator.h>
12 #include <tracking/trackFindingCDC/processing/AxialTrackUtil.h>
14 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
15 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
17 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
19 #include <framework/core/ModuleParamList.templateDetails.h>
22 using namespace TrackFindingCDC;
26 return "Exchanges hits between axial tracks based on their distance to the respective "
31 const std::string& prefix)
33 moduleParamList->
addParameter(prefixed(prefix,
"dropDistance"),
35 "Distance for a hit to be removed.",
38 moduleParamList->
addParameter(prefixed(prefix,
"addDistance"),
40 "Distance for a hit to be added.",
45 std::vector<CDCTrack>& axialTracks)
48 for (
CDCTrack& track : axialTracks) {
54 for (
CDCTrack& track : axialTracks) {
55 if (track.size() < 5)
continue;
double m_param_addDistance
Parameter : Distance for a hit to be added.
Class representing a sequence of three dimensional reconstructed hits.
static std::vector< CDCRecoHit3D > splitBack2BackTrack(CDCTrack &track)
Tries to split back-to-back tracks into two different tracks.
std::string getDescription() final
Short description of the findlet.
static void assignNewHitsToTrack(CDCTrack &track, const std::vector< const CDCWireHit * > &allAxialWireHits, double minimalDistance=0.2)
Assign new hits to the track basing on the distance from the hit to the track.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void apply(const std::vector< const CDCWireHit * > &axialWireHits, std::vector< CDCTrack > &axialTracks) final
Do the hit migration.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
double m_param_dropDistance
Parameter : Distance for a hit to be removed.
static void deleteHitsFarAwayFromTrajectory(CDCTrack &track, double maximumDistance=0.2)
Postprocessing: Delete axial hits that do not "match" to the given track.
The Module parameter list class.
static void normalizeTrack(CDCTrack &track)
Refit and resort the track. Unmask all hits.