Belle II Software  release-05-01-25
CDCRLWireHitSegment.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/eventdata/segments/CDCRLWireHitSegment.h>
11 
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
13 
14 using namespace Belle2;
15 using namespace TrackFindingCDC;
16 
17 std::vector<const CDCWire*> CDCRLWireHitSegment::getWireSegment() const
18 {
19  std::vector<const CDCWire*> wireSegment;
20  for (const CDCRLWireHit& rlWireHit : *this) {
21  // cppcheck-suppress useStlAlgorithm
22  wireSegment.push_back(&(rlWireHit.getWire()));
23  }
24  return wireSegment;
25 }
Belle2::TrackFindingCDC::CDCRLWireHit::getWire
const CDCWire & getWire() const
Getter for the wire the oriented hit associated to.
Definition: CDCRLWireHit.cc:133
Belle2::TrackFindingCDC::CDCRLWireHitSegment::getWireSegment
std::vector< const CDCWire * > getWireSegment() const
Getter for the vector of wires the hits of this segment are based on in the same order.
Definition: CDCRLWireHitSegment.cc:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCRLWireHit
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Definition: CDCRLWireHit.h:51