Belle II Software  release-05-01-25
CDCWireHitSegment.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/CDCWireHitSegment.h>
11 
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
13 
14 using namespace Belle2;
15 using namespace TrackFindingCDC;
16 
17 std::vector<const CDCWire*> CDCWireHitSegment::getWireSegment() const
18 {
19  std::vector<const CDCWire*> wireSegment;
20  for (const CDCWireHit* ptrWireHit : *this) {
21  // cppcheck-suppress useStlAlgorithm
22  wireSegment.push_back(&(ptrWireHit->getWire()));
23  }
24  return wireSegment;
25 }
Belle2::TrackFindingCDC::CDCWireHitSegment::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: CDCWireHitSegment.cc:17
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCWireHit
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:65