Belle II Software development
RLTaggedWireHitCreator.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/minimal/RLTaggedWireHitCreator.h>
9
10#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
11#include <tracking/trackingUtilities/eventdata/hits/CDCRLWireHit.h>
12
13#include <vector>
14
15using namespace Belle2;
16using namespace TrackFindingCDC;
17using namespace TrackingUtilities;
18
20{
21 return "Use all not-taken stereo hits and output them as right and left hypothesis.";
22}
23
24void RLTaggedWireHitCreator::apply(std::vector<CDCWireHit>& inputWireHits, std::vector<CDCRLWireHit>& outputRLWireHits)
25{
26 // Initialize the RL hits
27 for (const CDCWireHit& wireHit : inputWireHits) {
28 if (not wireHit->hasTakenFlag() and not wireHit.isAxial()) {
29 wireHit->unsetAssignedFlag();
30 for (ERightLeft rlInfo : {ERightLeft::c_Left, ERightLeft::c_Right}) {
31 outputRLWireHits.emplace_back(&wireHit, rlInfo);
32 }
33 }
34 }
35}
void apply(std::vector< TrackingUtilities::CDCWireHit > &inputWireHits, std::vector< TrackingUtilities::CDCRLWireHit > &outputRLWireHits) final
Generates the segment from wire hits.
std::string getDescription() final
Short description of the findlet.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Abstract base class for different kinds of events.