Belle II Software development
BaseFacetRelationFilter.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/facetRelation/BaseFacetRelationFilter.h>
9
10#include <tracking/trackFindingCDC/eventdata/hits/CDCFacet.h>
11
12#include <tracking/trackFindingCDC/filters/base/RelationFilter.icc.h>
13
14#include <tracking/trackFindingCDC/utilities/Functional.h>
15#include <tracking/trackFindingCDC/utilities/VectorRange.h>
16
17#include <vector>
18#include <algorithm>
19#include <cassert>
20
21using namespace Belle2;
22using namespace TrackFindingCDC;
23
25
27
29
30std::vector<const CDCFacet*> BaseFacetRelationFilter::getPossibleTos(
31 const CDCFacet* from,
32 const std::vector<const CDCFacet*>& facets) const
33{
34 const CDCRLWireHitPair& rearRLWireHitPair = from->getRearRLWireHitPair();
35
37 std::equal_range(facets.begin(), facets.end(), &rearRLWireHitPair, LessOf<Deref>())};
38 return {neighbors.begin(), neighbors.end()};
39}
std::vector< const CDCFacet * > getPossibleTos(const CDCFacet *from, const std::vector< const CDCFacet * > &facets) const final
Returns the selection of facets covering the range of possible neighboring facets of the given facet ...
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
CDCRLWireHitPair & getRearRLWireHitPair()
Getter for the pair of second and third oriented wire hit.
A pair of iterators usable with the range base for loop.
Definition: Range.h:25
Iterator begin() const
Begin of the range for range based for.
Definition: Range.h:64
Base class for filtering the neighborhood of objects.
Abstract base class for different kinds of events.
Functor factory turning a binary functor and two functors into a new functor which executes the binar...
Definition: Functional.h:127