8#include <tracking/trackFindingCDC/filters/segmentPairRelation/UnionRecordingSegmentPairRelationFilter.h>
10#include <tracking/trackFindingCDC/filters/segmentPairRelation/BasicSegmentPairRelationVarSet.h>
11#include <tracking/trackFindingCDC/filters/segmentPairRelation/FitSegmentPairRelationVarSet.h>
12#include <tracking/trackFindingCDC/filters/segmentPairRelation/TruthSegmentPairRelationVarSet.h>
14#include <tracking/trackFindingCDC/filters/segmentPairRelation/MVARealisticSegmentPairRelationFilter.h>
16#include <tracking/trackFindingCDC/filters/base/UnionRecordingFilter.icc.h>
20using namespace TrackFindingCDC;
24std::vector<std::string>
28 varSetNames.insert(varSetNames.end(), {
"basic",
"fit",
"realistic",
"truth"});
32std::unique_ptr<BaseVarSet<Relation<const CDCSegmentPair> > >
35 if (name ==
"basic") {
36 return std::make_unique<BasicSegmentPairRelationVarSet>();
37 }
else if (name ==
"fit") {
38 return std::make_unique<FitSegmentPairRelationVarSet>();
39 }
else if (name ==
"realistic") {
41 return std::move(
filter).releaseVarSet();
42 }
else if (name ==
"truth") {
43 return std::make_unique<TruthSegmentPairRelationVarSet>();
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 segment pair relations.
std::unique_ptr< BaseVarSet< Relation< const CDCSegmentPair > > > createVarSet(const std::string &name) const final
Create a concrete variables set for segment pair 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.