Belle II Software development
CDCWireHitSegment.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/eventdata/segments/CDCWireHitSegment.h>
9
10#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14
15std::vector<const CDCWire*> CDCWireHitSegment::getWireSegment() const
16{
17 std::vector<const CDCWire*> wireSegment;
18 for (const CDCWireHit* ptrWireHit : *this) {
19 wireSegment.push_back(&(ptrWireHit->getWire()));
20 }
21 return wireSegment;
22}
std::vector< const CDCWire * > getWireSegment() const
Getter for the vector of wires the hits of this segment are based on in the same order.
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
Abstract base class for different kinds of events.