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