8#include <tracking/trackFindingCDC/filters/trackRelation/UnionRecordingTrackRelationFilter.h>
10#include <tracking/trackFindingCDC/filters/trackRelation/MVAFeasibleTrackRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/trackRelation/MVARealisticTrackRelationFilter.h>
13#include <tracking/trackFindingCDC/filters/trackRelation/BasicTrackRelationVarSet.h>
14#include <tracking/trackFindingCDC/filters/trackRelation/HitGapTrackRelationVarSet.h>
15#include <tracking/trackFindingCDC/filters/trackRelation/FitTrackRelationVarSet.h>
17#include <tracking/trackFindingCDC/filters/base/UnionRecordingFilter.icc.h>
21using namespace TrackFindingCDC;
25std::vector<std::string>
29 varSetNames.insert(varSetNames.end(), {
"basic",
"hit_gap",
"feasible",
"fit",
"realistic"});
33std::unique_ptr<BaseVarSet<Relation<const CDCTrack> > >
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();
Filter for the construction of track pairs based on simple criteria without the common fit.
Final filter for the construction of segment pairs.
Convenience template to create a recording filter for a filter factory.
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 concrete 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
Abstract base class for different kinds of events.