#include <L1TkMuMantra.h>
Public Member Functions | |
std::vector< int > | find_match (const std::vector< L1TkMuMantraDF::track_df > &tracks, const std::vector< L1TkMuMantraDF::muon_df > &muons) |
L1TkMuMantra (const std::vector< double > &bounds, TFile *fIn_theta, TFile *fIn_phi, std::string name) | |
void | relax_windows (double &low, double cent, double &high) |
void | set_safety_factor (float sf_l, float sf_h) |
void | setArbitrationType (std::string type) |
int | sign (double x) |
void | test (double eta, double pt) |
~L1TkMuMantra () | |
Static Public Member Functions | |
static double | deg_to_rad (double x) |
static double | eta_to_theta (double x) |
static std::vector< double > | prepare_corr_bounds (std::string fname, std::string hname) |
static double | to_mpi_pi (double x) |
static double | to_mpio2_pio2 (double x) |
Private Types | |
enum | sortParType { kMaxPt, kMinDeltaPt } |
Private Member Functions | |
int | findBin (double val) |
Private Attributes | |
std::vector< double > | bounds_ |
double | max_chi2 = 100 |
int | min_nstubs = 4 |
std::string | name_ |
int | nbins_ |
float | safety_factor_h_ |
float | safety_factor_l_ |
sortParType | sort_type_ |
int | verbosity_ = 0 |
std::vector< MuMatchWindow > | wdws_phi_ |
std::vector< MuMatchWindow > | wdws_theta_ |
Definition at line 51 of file L1TkMuMantra.h.
|
private |
L1TkMuMantra::L1TkMuMantra | ( | const std::vector< double > & | bounds, |
TFile * | fIn_theta, | ||
TFile * | fIn_phi, | ||
std::string | name = "mantra" |
||
) |
Definition at line 8 of file L1TkMuMantra.cc.
References bounds_, Exception, benchmark_cfg::fc, cuy::ib, kMaxPt, LogTrace, Skims_PA_cff::name, name_, nbins_, safety_factor_h_, safety_factor_l_, sort_type_, AlCaHLTBitMon_QueryRunRegistry::string, tools::TF1, verbosity_, wdws_phi_, and wdws_theta_.
|
inline |
Definition at line 54 of file L1TkMuMantra.h.
|
inlinestatic |
Definition at line 85 of file L1TkMuMantra.h.
References angle_units::degPerRad, and x.
Referenced by L1TkMuonProducer::product_to_muvec().
|
inlinestatic |
Definition at line 87 of file L1TkMuMantra.h.
References JetChargeProducer_cfi::exp, and x.
Referenced by L1TkMuonProducer::product_to_muvec(), and L1TkMuonProducer::product_to_trkvec().
std::vector< int > L1TkMuMantra::find_match | ( | const std::vector< L1TkMuMantraDF::track_df > & | tracks, |
const std::vector< L1TkMuMantraDF::muon_df > & | muons | ||
) |
Definition at line 115 of file L1TkMuMantra.cc.
References funct::abs(), L1TkMuMantraDF::track_df::charge, L1TkMuMantraDF::track_df::chi2, L1TkMuMantraDF::track_df::eta, findBin(), kMaxPt, kMinDeltaPt, max_chi2, min_nstubs, amptDefaultParameters_cff::mu, PDWG_BPHSkim_cff::muons, L1TkMuMantraDF::track_df::nstubs, L1TkMuMantraDF::track_df::phi, Pi, L1TkMuMantraDF::track_df::pt, relax_windows(), mps_fire::result, sign(), sort_type_, L1TkMuMantraDF::track_df::theta, to_mpi_pi(), PDWG_EXOHSCP_cff::tracks, parallelization::uint, wdws_phi_, and wdws_theta_.
|
private |
Definition at line 80 of file L1TkMuMantra.cc.
References bounds_, cuy::ib, LogTrace, nbins_, parallelization::uint, heppy_batch::val, and verbosity_.
Referenced by find_match(), and test().
|
static |
Definition at line 199 of file L1TkMuMantra.cc.
References Exception, alignmentValidation::fname, and cuy::ib.
Referenced by L1TkMuonProducer::L1TkMuonProducer().
void L1TkMuMantra::relax_windows | ( | double & | low, |
double | cent, | ||
double & | high | ||
) |
Definition at line 178 of file L1TkMuMantra.cc.
References LaserClient_cfi::high, LaserClient_cfi::low, safety_factor_h_, and safety_factor_l_.
Referenced by find_match().
|
inline |
Definition at line 64 of file L1TkMuMantra.h.
References LogTrace, name_, safety_factor_h_, safety_factor_l_, and verbosity_.
void L1TkMuMantra::setArbitrationType | ( | std::string | type | ) |
Definition at line 188 of file L1TkMuMantra.cc.
References Exception, kMaxPt, kMinDeltaPt, LogTrace, sort_type_, and verbosity_.
|
inline |
void L1TkMuMantra::test | ( | double | eta, |
double | pt | ||
) |
Definition at line 97 of file L1TkMuMantra.cc.
References PVValHelper::eta, findBin(), LogTrace, DiDispStaMuonMonitor_cfi::pt, wdws_phi_, and wdws_theta_.
Referenced by edmIntegrityCheck.IntegrityCheck::report(), and edmIntegrityCheck.IntegrityCheck::structured().
|
inlinestatic |
|
inlinestatic |
Definition at line 92 of file L1TkMuMantra.h.
Referenced by L1TkMuonProducer::product_to_muvec(), and L1TkMuonProducer::product_to_trkvec().
|
private |
Definition at line 115 of file L1TkMuMantra.h.
Referenced by findBin(), and L1TkMuMantra().
|
private |
Definition at line 120 of file L1TkMuMantra.h.
Referenced by find_match().
|
private |
Definition at line 119 of file L1TkMuMantra.h.
Referenced by find_match().
|
private |
Definition at line 112 of file L1TkMuMantra.h.
Referenced by L1TkMuMantra(), and set_safety_factor().
|
private |
Definition at line 114 of file L1TkMuMantra.h.
Referenced by findBin(), and L1TkMuMantra().
|
private |
Definition at line 123 of file L1TkMuMantra.h.
Referenced by L1TkMuMantra(), relax_windows(), and set_safety_factor().
|
private |
Definition at line 122 of file L1TkMuMantra.h.
Referenced by L1TkMuMantra(), relax_windows(), and set_safety_factor().
|
private |
Definition at line 130 of file L1TkMuMantra.h.
Referenced by find_match(), L1TkMuMantra(), and setArbitrationType().
|
private |
Definition at line 132 of file L1TkMuMantra.h.
Referenced by findBin(), L1TkMuMantra(), set_safety_factor(), and setArbitrationType().
|
private |
Definition at line 117 of file L1TkMuMantra.h.
Referenced by find_match(), L1TkMuMantra(), and test().
|
private |
Definition at line 116 of file L1TkMuMantra.h.
Referenced by find_match(), L1TkMuMantra(), and test().