Belle II Software
release-05-01-25
SimpleSegmentTripleRelationFilter.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2012 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Oliver Frost *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#include <tracking/trackFindingCDC/filters/segmentTripleRelation/SimpleSegmentTripleRelationFilter.h>
11
12
#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentTriple.h>
13
#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
14
15
using namespace
Belle2
;
16
using namespace
TrackFindingCDC;
17
18
Weight
SimpleSegmentTripleRelationFilter::operator()
(
const
CDCSegmentTriple
& fromSegmentTriple
19
__attribute__((unused)),
20
const
CDCSegmentTriple
& toSegmentTriple)
21
{
22
// Just let all found neighors pass since we have the same start -> end segment
23
// and let the cellular automaton figure auto which is longest
24
25
// can of course be adjusted by comparing the z components between
26
// triple and neighbor triples
27
28
// neighbor weight is a penalty for the overlap of the segments since we would
29
// count it to times
30
// could also be a better measure of fit quality
31
return
-toSegmentTriple.
getStartSegment
()->size();
32
}
Belle2::TrackFindingCDC::CDCSegmentTriple::getStartSegment
const CDCAxialSegment2D * getStartSegment() const
Getter for the start axial segment.
Definition:
CDCSegmentTriple.h:111
Belle2::TrackFindingCDC::SimpleSegmentTripleRelationFilter::operator()
Weight operator()(const CDCSegmentTriple &fromSegmentTriple, const CDCSegmentTriple &toSegmentTriple) final
Implementation currently accepts all combinations.
Definition:
SimpleSegmentTripleRelationFilter.cc:18
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::CDCSegmentTriple
Class representing a triple of reconstructed segements in adjacent superlayer.
Definition:
CDCSegmentTriple.h:42
tracking
trackFindingCDC
filters
segmentTripleRelation
src
SimpleSegmentTripleRelationFilter.cc
Generated on Fri Nov 5 2021 04:02:38 for Belle II Software by
1.8.17