#include <L1MuonMatcherAlgo.h>
Public Types | |
using | ESTokens = PropagateToMuon::ESTokens |
Public Member Functions | |
TrajectoryStateOnSurface | extrapolate (const reco::Track &tk) const |
TrajectoryStateOnSurface | extrapolate (const reco::Candidate &tk) const |
TrajectoryStateOnSurface | extrapolate (const FreeTrajectoryState &state) const |
void | init (const edm::EventSetup &iSetup) |
L1MuonMatcherAlgo (const edm::ParameterSet &iConfig, const ESTokens &iTokens) | |
bool | match (const reco::Track &tk, const l1extra::L1MuonParticle &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
bool | match (const reco::Candidate &c, const l1extra::L1MuonParticle &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
bool | match (TrajectoryStateOnSurface &propagated, const l1extra::L1MuonParticle &l1, float &deltaR, float &deltaPhi) const |
int | match (const reco::Track &tk, const std::vector< l1extra::L1MuonParticle > &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
int | match (const reco::Candidate &c, const std::vector< l1extra::L1MuonParticle > &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
int | match (TrajectoryStateOnSurface &propagated, const std::vector< l1extra::L1MuonParticle > &l1, float &deltaR, float &deltaPhi) const |
template<typename Collection , typename Selector > | |
int | matchGeneric (const reco::Track &tk, const Collection &l1, const Selector &sel, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
template<typename Collection , typename Selector > | |
int | matchGeneric (const reco::Candidate &c, const Collection &l1, const Selector &sel, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
template<typename Collection , typename Selector > | |
int | matchGeneric (TrajectoryStateOnSurface &propagated, const Collection &l1, const Selector &sel, float &deltaR, float &deltaPhi) const |
PropagateToMuon & | propagatorToMuon () |
Return the propagator to second muon station (in case it's needed) More... | |
const PropagateToMuon & | propagatorToMuon () const |
Return the propagator to second muon station (in case it's needed) More... | |
~L1MuonMatcherAlgo () | |
Private Types | |
typedef StringCutObjectSelector < l1extra::L1MuonParticle > | L1Selector |
Private Attributes | |
double | deltaPhi_ |
double | deltaR2_ |
Matching cuts. More... | |
L1Selector | preselectionCut_ |
Preselection cut to apply to L1 candidates before matching. More... | |
PropagateToMuon | prop_ |
bool | sortByDeltaPhi_ |
Sort by deltaPhi instead of deltaR. More... | |
Definition at line 29 of file L1MuonMatcherAlgo.h.
Definition at line 31 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 171 of file L1MuonMatcherAlgo.h.
|
explicit |
Definition at line 7 of file L1MuonMatcherAlgo.cc.
L1MuonMatcherAlgo::~L1MuonMatcherAlgo | ( | ) |
Definition at line 16 of file L1MuonMatcherAlgo.cc.
|
inline |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails
Definition at line 42 of file L1MuonMatcherAlgo.h.
References hltriggeroffline::PropagateToMuon::extrapolate(), and prop_.
Referenced by match(), and matchGeneric().
|
inline |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails
Definition at line 46 of file L1MuonMatcherAlgo.h.
References hltriggeroffline::PropagateToMuon::extrapolate(), and prop_.
|
inline |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails
Definition at line 50 of file L1MuonMatcherAlgo.h.
References hltriggeroffline::PropagateToMuon::extrapolate(), and prop_.
void L1MuonMatcherAlgo::init | ( | const edm::EventSetup & | iSetup | ) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators
Definition at line 18 of file L1MuonMatcherAlgo.cc.
References hltriggeroffline::PropagateToMuon::init(), and prop_.
Referenced by HLTMuonPlotter::beginRun().
|
inline |
Try to match one track to one L1. Return true if succeeded (and update deltaR, deltaPhi and propagated TSOS accordingly) The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 60 of file L1MuonMatcherAlgo.h.
References extrapolate(), and TrajectoryStateOnSurface::isValid().
Referenced by match(), and matchGeneric().
|
inline |
Try to match one track to one L1. Return true if succeeded (and update deltaR, deltaPhi and propagated TSOS accordingly) The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 72 of file L1MuonMatcherAlgo.h.
References extrapolate(), TrajectoryStateOnSurface::isValid(), and match().
bool L1MuonMatcherAlgo::match | ( | TrajectoryStateOnSurface & | propagated, |
const l1extra::L1MuonParticle & | l1, | ||
float & | deltaR, | ||
float & | deltaPhi | ||
) | const |
Try to match one track to one L1. Return true if succeeded (and update deltaR, deltaPhi accordingly) The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 20 of file L1MuonMatcherAlgo.cc.
References srCondWrite_cfg::deltaPhi, deltaPhi_, reco::deltaR2(), deltaR2_, PV3DBase< T, PVType, FrameType >::eta(), reco::LeafCandidate::eta(), TrajectoryStateOnSurface::globalPosition(), PV3DBase< T, PVType, FrameType >::phi(), reco::LeafCandidate::phi(), preselectionCut_, and mathSSE::sqrt().
|
inline |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi and propagated TSOS accordingly) Returns -1 if the match fails The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 93 of file L1MuonMatcherAlgo.h.
References extrapolate(), TrajectoryStateOnSurface::isValid(), and match().
|
inline |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi and propagated TSOS accordingly) Returns -1 if the match fails The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 106 of file L1MuonMatcherAlgo.h.
References extrapolate(), TrajectoryStateOnSurface::isValid(), and match().
int L1MuonMatcherAlgo::match | ( | TrajectoryStateOnSurface & | propagated, |
const std::vector< l1extra::L1MuonParticle > & | l1, | ||
float & | deltaR, | ||
float & | deltaPhi | ||
) | const |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi accordingly) Returns -1 if the match fails The preselection cut on L1, if specified in the config, is applied before the match
Definition at line 37 of file L1MuonMatcherAlgo.cc.
References matchGeneric(), and preselectionCut_.
|
inline |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi and propagated TSOS accordingly) Returns -1 if the match fails Only the objects passing the selector will be allowed for the match. If you don't need a selector, just use an AnySelector (CommonTools/Utils) which accepts everything
Definition at line 130 of file L1MuonMatcherAlgo.h.
References extrapolate(), and TrajectoryStateOnSurface::isValid().
Referenced by match(), and matchGeneric().
|
inline |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi and propagated TSOS accordingly) Returns -1 if the match fails Only the objects passing the selector will be allowed for the match. If you don't need a selector, just use an AnySelector (CommonTools/Utils) which accepts everything
Definition at line 146 of file L1MuonMatcherAlgo.h.
References extrapolate(), TrajectoryStateOnSurface::isValid(), and matchGeneric().
int L1MuonMatcherAlgo::matchGeneric | ( | TrajectoryStateOnSurface & | propagated, |
const Collection & | l1, | ||
const Selector & | sel, | ||
float & | deltaR, | ||
float & | deltaPhi | ||
) | const |
Find the best match to L1, and return its index in the vector (and update deltaR, deltaPhi accordingly) Returns -1 if the match fails Only the objects passing the selector will be allowed for the match. The selector defaults to an AnySelector (CommonTools/Utils) which just accepts everything
Definition at line 183 of file L1MuonMatcherAlgo.h.
References srCondWrite_cfg::deltaPhi, deltaPhi_, reco::deltaR2(), deltaR2_, PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), mps_fire::i, match(), dqmiodumpmetadata::n, getGTfromDQMFile::obj, PV3DBase< T, PVType, FrameType >::phi(), EgammaValidation_Wenu_cff::sel, sortByDeltaPhi_, and mathSSE::sqrt().
|
inline |
Return the propagator to second muon station (in case it's needed)
Definition at line 53 of file L1MuonMatcherAlgo.h.
References prop_.
|
inline |
Return the propagator to second muon station (in case it's needed)
Definition at line 55 of file L1MuonMatcherAlgo.h.
References prop_.
|
private |
Definition at line 176 of file L1MuonMatcherAlgo.h.
Referenced by match(), and matchGeneric().
|
private |
Matching cuts.
Definition at line 176 of file L1MuonMatcherAlgo.h.
Referenced by match(), and matchGeneric().
|
private |
Preselection cut to apply to L1 candidates before matching.
Definition at line 173 of file L1MuonMatcherAlgo.h.
Referenced by match().
|
private |
Definition at line 169 of file L1MuonMatcherAlgo.h.
Referenced by extrapolate(), init(), and propagatorToMuon().
|
private |
Sort by deltaPhi instead of deltaR.
Definition at line 179 of file L1MuonMatcherAlgo.h.
Referenced by matchGeneric().