8#include <tracking/trackFindingCDC/filters/axialSegmentPair/UnionRecordingAxialSegmentPairFilter.h>
10#include <tracking/trackFindingCDC/filters/axialSegmentPair/BasicAxialSegmentPairVarSet.h>
11#include <tracking/trackFindingCDC/filters/axialSegmentPair/HitGapAxialSegmentPairVarSet.h>
12#include <tracking/trackFindingCDC/filters/axialSegmentPair/FitlessAxialSegmentPairVarSet.h>
13#include <tracking/trackFindingCDC/filters/axialSegmentPair/FitAxialSegmentPairVarSet.h>
15#include <tracking/trackFindingCDC/filters/axialSegmentPair/MVAFeasibleAxialSegmentPairFilter.h>
16#include <tracking/trackFindingCDC/filters/axialSegmentPair/MVARealisticAxialSegmentPairFilter.h>
18#include <tracking/trackFindingCDC/filters/base/UnionRecordingFilter.icc.h>
20#include <tracking/trackFindingCDC/varsets/BaseVarSet.h>
23using namespace TrackFindingCDC;
27std::vector<std::string>
31 varSetNames.insert(varSetNames.end(), {
"basic",
"hit_gap",
"feasible",
"fitless",
"fit",
"realistic"});
35std::unique_ptr<BaseVarSet<CDCAxialSegmentPair> >
38 if (name ==
"basic") {
39 return std::make_unique<BasicAxialSegmentPairVarSet>();
40 }
else if (name ==
"hit_gap") {
41 return std::make_unique<HitGapAxialSegmentPairVarSet>();
42 }
else if (name ==
"feasible") {
44 return std::move(
filter).releaseVarSet();
45 }
else if (name ==
"fitless") {
46 return std::make_unique<FitlessAxialSegmentPairVarSet>();
47 }
else if (name ==
"fit") {
48 return std::make_unique<FitAxialSegmentPairVarSet>();
49 }
else if (name ==
"realistic") {
51 return std::move(
filter).releaseVarSet();
Filter for the construction of segment pairs based on simple criteria without the common fit.
Final filter for the construction of segment pairs.
std::unique_ptr< BaseVarSet< CDCAxialSegmentPair > > createVarSet(const std::string &name) const final
Create a concrete variables set for axial segment pairs from a name.
std::vector< std::string > getValidVarSetNames() const final
Get the valid names of variable sets for axial segment pairs.
Convenience template to create a recording filter for a filter factory.
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.