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/trackFindingCDC/eventdata/hits/CDCWireHit.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
16
18{
20}
21
23{
24 return "A small findlet that removes flags from hits not accepted by conventional tracking.";
25}
26
27void HitReclaimer::apply(const std::vector<CDCWireHit>& wireHits)
28{
29 for (const CDCWireHit& wireHit : wireHits) {
30 if (wireHit->hasBackgroundFlag() or wireHit->hasMaskedFlag()) {
31 wireHit->unsetTakenFlag();
32 }
33 }
34}
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
void initialize() override
Receive and dispatch signal before the start of the event processing.
void initialize() final
Initialisation before the event processing starts.
Definition: HitReclaimer.cc:17
void apply(const std::vector< CDCWireHit > &wireHits)
Execute over wireHits.
Definition: HitReclaimer.cc:27
std::string getDescription() final
Short description of the findlet.
Definition: HitReclaimer.cc:22
Abstract base class for different kinds of events.