#include <L1MuonMatcherAlgo.h>
Public Member Functions | |
TrajectoryStateOnSurface | extrapolate (const reco::Track &tk) const |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails. More... | |
TrajectoryStateOnSurface | extrapolate (const reco::Candidate &tk) const |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails. More... | |
TrajectoryStateOnSurface | extrapolate (const SimTrack &tk, const edm::SimVertexContainer &vtx) const |
Extrapolate a SimTrack to the muon station 2, return an invalid TSOS if it fails. Requires SimVertices to know where to start from. More... | |
TrajectoryStateOnSurface | extrapolate (const FreeTrajectoryState &state) const |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails. More... | |
void | init (const edm::EventSetup &iSetup) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators. More... | |
L1MuonMatcherAlgoT (const edm::ParameterSet &iConfig, edm::ConsumesCollector) | |
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 (const SimTrack &tk, const edm::SimVertexContainer &vtxs, 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 (const SimTrack &tk, const edm::SimVertexContainer &vtxs, 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 |
int | match (const reco::Track &tk, const std::vector< l1t::Muon > &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
int | match (const reco::Candidate &c, const std::vector< l1t::Muon > &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
int | match (const SimTrack &tk, const edm::SimVertexContainer &vtxs, const std::vector< l1t::Muon > &l1, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const |
int | match (TrajectoryStateOnSurface &propagated, const std::vector< l1t::Muon > &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... | |
void | setL1PhiOffset (double l1PhiOffset) |
Add this offset to the L1 phi before doing the match, to correct for different scales in L1 vs offline. More... | |
~L1MuonMatcherAlgoT ()=default | |
Private Types | |
typedef StringCutObjectSelector< reco::Candidate, true > | L1Selector |
enum | SortBy { SortByDeltaR = 0, SortByDeltaPhi, SortByDeltaEta, SortByPt, SortByQual } |
Sort by deltaPhi or deltaEta instead of deltaR. More... | |
Private Member Functions | |
template<class T > | |
int | genericQuality (T const &cand) const |
int | genericQuality (l1extra::L1MuonParticle const &cand) const |
int | genericQuality (l1t::Muon const &cand) const |
Private Attributes | |
double | deltaEta_ |
double | deltaPhi_ |
double | deltaR2_ |
Matching cuts. More... | |
double | l1PhiOffset_ |
offset to be added to the L1 phi before the match More... | |
L1Selector | preselectionCut_ |
Preselection cut to apply to L1 candidates before matching. More... | |
PropagateToMuon | prop_ |
PropagateToMuonSetupT< Tr > | propSetup_ |
SortBy | sortBy_ |
bool | useStage2L1_ |
Definition at line 27 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 249 of file L1MuonMatcherAlgo.h.
|
private |
Sort by deltaPhi or deltaEta instead of deltaR.
Enumerator | |
---|---|
SortByDeltaR | |
SortByDeltaPhi | |
SortByDeltaEta | |
SortByPt | |
SortByQual |
Definition at line 257 of file L1MuonMatcherAlgo.h.
|
explicit |
Definition at line 326 of file L1MuonMatcherAlgo.h.
|
default |
|
inline |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails.
Definition at line 36 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::match(), and L1MuonMatcherAlgoT< edm::Transition::BeginRun >::matchGeneric().
|
inline |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails.
Definition at line 39 of file L1MuonMatcherAlgo.h.
|
inline |
Extrapolate a SimTrack to the muon station 2, return an invalid TSOS if it fails. Requires SimVertices to know where to start from.
Definition at line 42 of file L1MuonMatcherAlgo.h.
|
inline |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails.
Definition at line 47 of file L1MuonMatcherAlgo.h.
|
inlineprivate |
Definition at line 237 of file L1MuonMatcherAlgo.h.
|
inlineprivate |
Definition at line 241 of file L1MuonMatcherAlgo.h.
|
inlineprivate |
Definition at line 242 of file L1MuonMatcherAlgo.h.
void L1MuonMatcherAlgoT< Tr >::init | ( | const edm::EventSetup & | iSetup | ) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators.
Definition at line 390 of file L1MuonMatcherAlgo.h.
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 56 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::match().
|
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 67 of file L1MuonMatcherAlgo.h.
|
inline |
Try to match one simtrack 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 78 of file L1MuonMatcherAlgo.h.
bool L1MuonMatcherAlgoT< Tr >::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 395 of file L1MuonMatcherAlgo.h.
|
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 100 of file L1MuonMatcherAlgo.h.
|
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 112 of file L1MuonMatcherAlgo.h.
|
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 124 of file L1MuonMatcherAlgo.h.
int L1MuonMatcherAlgoT< Tr >::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 414 of file L1MuonMatcherAlgo.h.
|
inline |
Find the best match to stage2 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 stage2 L1, if specified in the config, is applied before the match
Definition at line 147 of file L1MuonMatcherAlgo.h.
|
inline |
Find the best match to stage2 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 stage2 L1, if specified in the config, is applied before the match
Definition at line 159 of file L1MuonMatcherAlgo.h.
|
inline |
Find the best match to stage2 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 stage 2 L1, if specified in the config, is applied before the match
Definition at line 171 of file L1MuonMatcherAlgo.h.
int L1MuonMatcherAlgoT< Tr >::match | ( | TrajectoryStateOnSurface & | propagated, |
const std::vector< l1t::Muon > & | l1, | ||
float & | deltaR, | ||
float & | deltaPhi | ||
) | const |
Find the best match to stage 2 L1, and return its index in the vector (and update deltaR, deltaPhi accordingly) Returns -1 if the match fails The preselection cut on stage 2 L1, if specified in the config, is applied before the match
Definition at line 422 of file L1MuonMatcherAlgo.h.
|
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 196 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::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 211 of file L1MuonMatcherAlgo.h.
int L1MuonMatcherAlgoT< Tr >::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 266 of file L1MuonMatcherAlgo.h.
|
inline |
Return the propagator to second muon station (in case it's needed)
Definition at line 50 of file L1MuonMatcherAlgo.h.
|
inline |
Return the propagator to second muon station (in case it's needed)
Definition at line 52 of file L1MuonMatcherAlgo.h.
|
inline |
Add this offset to the L1 phi before doing the match, to correct for different scales in L1 vs offline.
Definition at line 233 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 254 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 254 of file L1MuonMatcherAlgo.h.
|
private |
Matching cuts.
Definition at line 254 of file L1MuonMatcherAlgo.h.
|
private |
offset to be added to the L1 phi before the match
Definition at line 261 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::setL1PhiOffset().
|
private |
Preselection cut to apply to L1 candidates before matching.
Definition at line 251 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 245 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::extrapolate(), and L1MuonMatcherAlgoT< edm::Transition::BeginRun >::propagatorToMuon().
|
private |
Definition at line 244 of file L1MuonMatcherAlgo.h.
|
private |
Definition at line 258 of file L1MuonMatcherAlgo.h.
Referenced by L1MuonMatcherAlgoT< edm::Transition::BeginRun >::L1MuonMatcherAlgoT().
|
private |
Definition at line 247 of file L1MuonMatcherAlgo.h.