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/trackingUtilities/eventdata/segments/CDCWireHitSegment.h>
9
10#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
11
12using namespace Belle2;
13using namespace CDC;
14using namespace TrackingUtilities;
15
16std::vector<const CDCWire*> CDCWireHitSegment::getWireSegment() const
17{
18 std::vector<const CDCWire*> wireSegment;
19 for (const CDCWireHit* ptrWireHit : *this) {
20 wireSegment.push_back(&(ptrWireHit->getWire()));
21 }
22 return wireSegment;
23}
std::vector< const CDC::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:58
Abstract base class for different kinds of events.