Belle II Software development
MonopoleAxialTrackFinderLegendre.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/trackFindingCDC/findlets/combined/MonopoleAxialTrackFinderLegendre.h>
9
10#include <tracking/trackingUtilities/eventdata/tracks/CDCTrack.h>
11#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
12
13using namespace Belle2;
14using namespace TrackFindingCDC;
15using namespace TrackingUtilities;
16
21
23{
24 return "Performs the pattern recognition in the CDC with the legendre looking for straight tracks";
25}
26
28 const std::string& prefix)
29{
30 m_straightMonopoleAxialTrackCreatorHitLegendre.exposeParameters(moduleParamList, prefix);
31}
32
33void MonopoleAxialTrackFinderLegendre::apply(const std::vector<TrackingUtilities::CDCWireHit>& wireHits,
34 std::vector<CDCTrack>& tracks)
35{
36 B2DEBUG(25, "********** CDCTrackingModule ************");
37
38 // Acquire the axial hits
39 std::vector<const TrackingUtilities::CDCWireHit*> axialWireHits;
40 axialWireHits.reserve(wireHits.size());
41 for (const TrackingUtilities::CDCWireHit& wireHit : wireHits) {
42 wireHit->unsetTemporaryFlags();
43 wireHit->unsetMaskedFlag();
44 if (not wireHit.isAxial()) continue;
45 if (wireHit->hasBackgroundFlag()) continue;
46 axialWireHits.emplace_back(&wireHit);
47 }
48
49 // Legendre pass
50 m_straightMonopoleAxialTrackCreatorHitLegendre.apply(axialWireHits, tracks);
51
52// AxialTrackUtil::deleteShortTracks(tracks);
53}
The Module parameter list class.
void apply(const std::vector< TrackingUtilities::CDCWireHit > &wireHits, std::vector< TrackingUtilities::CDCTrack > &tracks)
Main method to apply the track finding.
AxialTrackCreatorHitLegendre m_straightMonopoleAxialTrackCreatorHitLegendre
Findlet for straight legendre pass.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Abstract base class for different kinds of events.