7 preselectionCut_(iConfig.existsAs<
std::
string>(
"preselection") ? iConfig.getParameter<
std::
string>(
"preselection")
9 deltaR2_(
std::
pow(iConfig.getParameter<double>(
"maxDeltaR"), 2)),
10 deltaPhi_(iConfig.existsAs<double>(
"maxDeltaPhi") ? iConfig.getParameter<double>(
"maxDeltaPhi") : 10),
11 sortByDeltaPhi_(iConfig.existsAs<
bool>(
"sortByDeltaPhi") ? iConfig.getParameter<
bool>(
"sortByDeltaPhi") :
false) {
28 deltaPhi = thisDeltaPhi;
36 const std::vector<l1extra::L1MuonParticle> &
l1s,
L1Selector preselectionCut_
Preselection cut to apply to L1 candidates before matching.
void init(const edm::EventSetup &iSetup)
double eta() const final
momentum pseudorapidity
Geom::Phi< T > phi() const
GlobalPoint globalPosition() const
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
bool match(const reco::Track &tk, const l1extra::L1MuonParticle &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const
void init(const edm::EventSetup &iSetup)
int matchGeneric(const reco::Track &tk, const Collection &l1, const Selector &sel, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const
L1MuonMatcherAlgo(const edm::ParameterSet &iConfig)
double phi() const final
momentum azimuthal angle
double deltaR2_
Matching cuts.
Power< A, B >::type pow(const A &a, const B &b)