Belle II Software development
AllAxialSegmentPairFilter.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/filters/axialSegmentPair/AllAxialSegmentPairFilter.h>
9
10#include <tracking/trackingUtilities/eventdata/tracks/CDCAxialSegmentPair.h>
11
12#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
13
14using namespace Belle2;
15using namespace TrackFindingCDC;
16using namespace TrackingUtilities;
17
19{
20 const CDCAxialSegment2D* ptrStartSegment = axialSegmentPair.getStartSegment();
21 const CDCAxialSegment2D* ptrEndSegment = axialSegmentPair.getEndSegment();
22
23 assert(ptrStartSegment);
24 assert(ptrEndSegment);
25
26 const CDCAxialSegment2D& startSegment = *ptrStartSegment;
27 const CDCAxialSegment2D& endSegment = *ptrEndSegment;
28
29 return startSegment.size() + endSegment.size();
30}
TrackingUtilities::Weight operator()(const TrackingUtilities::CDCAxialSegmentPair &axialSegmentPair) final
Checks if a pair of axial segments is a good combination.
Class representing a pair of reconstructed axial segments in adjacent superlayer.
const CDCAxialSegment2D * getEndSegment() const
Getter for the end segment.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start segment.
Abstract base class for different kinds of events.