Belle II Software development
HitReclaimer.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
9#include <tracking/trackFindingCDC/findlets/minimal/HitReclaimer.h>
10#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14using namespace TrackingUtilities;
15
17
22
24{
25 return "A small findlet that removes flags from hits not accepted by conventional tracking.";
26}
27
28void HitReclaimer::apply(const std::vector<CDCWireHit>& wireHits)
29{
30 for (const CDCWireHit& wireHit : wireHits) {
31 if (wireHit->hasBackgroundFlag() or wireHit->hasMaskedFlag()) {
32 wireHit->unsetTakenFlag();
33 }
34 }
35}
void initialize() final
Initialisation before the event processing starts.
std::string getDescription() final
Short description of the findlet.
void apply(const std::vector< TrackingUtilities::CDCWireHit > &wireHits)
Execute over wireHits.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Abstract base class for different kinds of events.