ATLAS Offline Software
Loading...
Searching...
No Matches
TrackViewMatchingTool.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
14
15#ifndef IDTPM2_TRACKVIEWMATCHINGTOOL_H
16#define IDTPM2_TRACKVIEWMATCHINGTOOL_H
17
20#include "TrackView.h"
21
23
24#include <memory>
25#include <string>
26
27
28
29namespace IDTPM2 {
30
31template<typename T, typename R=T>
32class TMatchingTool : public AthAlgTool {
33
34public:
35
36 TMatchingTool( const std::string& type,
37 const std::string& name,
38 const IInterface* parent );
39
40 virtual ~TMatchingTool() = default;
41
42 virtual StatusCode initialize() override;
43
46 std::unique_ptr<TIDA::Associator<T,R> > clone() const;
47
48 std::unique_ptr<TIDA::Associator<T,R> > uclone() const;
49
50protected:
51
52 Gaudi::Property<std::string> m_matcherType { this, "MatcherType", "Default",
53 "Matcher algorithm: DeltaR, DeltaPhi, DeltaRZ, DeltaRZSinTheta, Sigma, SecondBestpT, Default" };
54
57 ConfiguredValueProperty<float> m_dr { this, "DeltaR", {}, "Primary distance parameter" };
58 ConfiguredValueProperty<float> m_deta { this, "DeltaEta", {}, "Delta eta parameter" };
59 ConfiguredValueProperty<float> m_dphi { this, "DeltaPhi", {}, "Delta phi parameter" };
60 ConfiguredValueProperty<float> m_dzed { this, "DeltaZed", {}, "Delta zed parameter" };
61 ConfiguredValueProperty<float> m_dpt { this, "DeltaPt", {}, "Delta pt parameter" };
62 ConfiguredValueProperty<float> m_dsigma { this, "DeltaSigma", {}, "Delta sigma parameter" };
63 ConfiguredValueProperty<float> m_prob { this, "Prob", {}, "Match probability" };
64
65 std::unique_ptr<TIDA::Associator<T,R> > m_matcher;
66
67};
68
69
70
72
73}
74
75#endif // IDTPM2_TRACKVIEWMATCHINGTOOL_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
ConfiguredValueProperty< float > m_dpt
ConfiguredValueProperty< float > m_dzed
Gaudi::Property< std::string > m_matcherType
ConfiguredValueProperty< float > m_prob
TMatchingTool(const std::string &type, const std::string &name, const IInterface *parent)
in a different merge request, so can uncomment later, once it is in the release to avoid a conflict
ConfiguredValueProperty< float > m_dr
ConfiguredValueProperty< float > m_deta
virtual ~TMatchingTool()=default
ConfiguredValueProperty< float > m_dsigma
virtual StatusCode initialize() override
ConfiguredValueProperty< float > m_dphi
std::unique_ptr< TIDA::Associator< T, R > > clone() const
Return a fresh clone of the template matcher.
std::unique_ptr< TIDA::Associator< const TrackView, const TrackView > > m_matcher
std::unique_ptr< TIDA::Associator< T, R > > uclone() const
emacs: this is -*- c++ -*-
TMatchingTool< const TrackView > TrackViewMatchingTool