Belle II Software  release-08-01-10
UnionRecordingTrackRelationFilter.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/trackRelation/UnionRecordingTrackRelationFilter.h>
9 
10 #include <tracking/trackFindingCDC/filters/trackRelation/MVAFeasibleTrackRelationFilter.h>
11 #include <tracking/trackFindingCDC/filters/trackRelation/MVARealisticTrackRelationFilter.h>
12 
13 #include <tracking/trackFindingCDC/filters/trackRelation/BasicTrackRelationVarSet.h>
14 #include <tracking/trackFindingCDC/filters/trackRelation/HitGapTrackRelationVarSet.h>
15 #include <tracking/trackFindingCDC/filters/trackRelation/FitTrackRelationVarSet.h>
16 
17 #include <tracking/trackFindingCDC/filters/base/UnionRecordingFilter.icc.h>
18 
19 
20 using namespace Belle2;
21 using namespace TrackFindingCDC;
22 
24 
25 std::vector<std::string>
27 {
28  std::vector<std::string> varSetNames = Super::getValidVarSetNames();
29  varSetNames.insert(varSetNames.end(), {"basic", "hit_gap", "feasible", "fit", "realistic"});
30  return varSetNames;
31 }
32 
33 std::unique_ptr<BaseVarSet<Relation<const CDCTrack> > >
35 {
36  if (name == "basic") {
37  return std::make_unique<BasicTrackRelationVarSet>();
38  } else if (name == "hit_gap") {
39  return std::make_unique<HitGapTrackRelationVarSet>();
40  } else if (name == "feasible") {
42  return std::move(filter).releaseVarSet();
43  } else if (name == "fit") {
44  return std::make_unique<FitTrackRelationVarSet>();
45  } else if (name == "realistic") {
47  return std::move(filter).releaseVarSet();
48  } else {
49  return Super::createVarSet(name);
50  }
51 }
Filter for the constuction of track pairs based on simple criteria without the common fit.
Final filter for the constuction of segment pairs.
std::vector< std::string > getValidVarSetNames() const final
Get the valid names of variable sets for track relations.
std::unique_ptr< BaseVarSet< Relation< const CDCTrack > > > createVarSet(const std::string &name) const final
Create a concrete variables set for track relations from a name.
virtual std::unique_ptr< AVarSet > createVarSet(const std::string &name) const
Create a variable set for the given name.
virtual std::vector< std::string > getValidVarSetNames() const
Getter for the list of valid names of concret variable sets.
std::map< ExpRun, std::pair< double, double > > filter(const std::map< ExpRun, std::pair< double, double >> &runs, double cut, std::map< ExpRun, std::pair< double, double >> &runsRemoved)
filter events to remove runs shorter than cut, it stores removed runs in runsRemoved
Definition: Splitter.cc:38
Abstract base class for different kinds of events.