#include <pfalgo_common_ref.h>
|
void | loadPtErrBins (unsigned int nbins, const float absetas[], const float scales[], const float offs[], bool verbose=false) |
|
void | loadPtErrBins (const edm::ParameterSet &iConfig) |
|
virtual void | mergeNeutrals (OutputRegion &out) const =0 |
| moves all objects from out.pfphoton to the beginning of out.pfneutral More...
|
|
| PFAlgoEmulatorBase (unsigned int nTrack, unsigned int nCalo, unsigned int nMu, unsigned int nSelCalo, unsigned int dR2Max_Tk_Mu, unsigned int dR2Max_Tk_Calo, pt_t tk_MaxInvPt_Loose, pt_t tk_MaxInvPt_Tight) |
|
virtual void | run (const PFInputRegion &in, OutputRegion &out) const =0 |
|
void | setDebug (bool debug=true) |
|
virtual | ~PFAlgoEmulatorBase () |
|
|
template<typename COV > |
int | best_match_with_pt_ref (int dR2MAX, const COV &calo, const TkObjEmu &track, const pt_t &trackCaloPtErr) const |
|
void | fillPFCand (const TkObjEmu &track, PFChargedObjEmu &pf, bool isMu, bool isEle) const |
|
void | fillPFCand (const HadCaloObjEmu &calo, PFNeutralObjEmu &pf, bool isPhoton=false) const |
|
void | fillPFCand (const EmCaloObjEmu &calo, PFNeutralObjEmu &pf, bool isPhoton=true) const |
|
void | pfalgo_mu_ref (const PFInputRegion &in, OutputRegion &out, std::vector< int > &iMu) const |
|
pt_t | ptErr_ref (const PFRegionEmu ®ion, const TkObjEmu &track) const |
|
template<typename TV > |
void | ptsort_ref (int nIn, int nOut, const TV &in, TV &out) const |
|
Definition at line 17 of file pfalgo_common_ref.h.
◆ PFAlgoEmulatorBase()
l1ct::PFAlgoEmulatorBase::PFAlgoEmulatorBase |
( |
unsigned int |
nTrack, |
|
|
unsigned int |
nCalo, |
|
|
unsigned int |
nMu, |
|
|
unsigned int |
nSelCalo, |
|
|
unsigned int |
dR2Max_Tk_Mu, |
|
|
unsigned int |
dR2Max_Tk_Calo, |
|
|
pt_t |
tk_MaxInvPt_Loose, |
|
|
pt_t |
tk_MaxInvPt_Tight |
|
) |
| |
|
inline |
Definition at line 19 of file pfalgo_common_ref.h.
unsigned int dR2MAX_TK_MU_
unsigned int dR2MAX_TK_CALO_
◆ ~PFAlgoEmulatorBase()
virtual l1ct::PFAlgoEmulatorBase::~PFAlgoEmulatorBase |
( |
| ) |
|
|
virtual |
◆ addCaloResolutionParameterSetDescription()
◆ best_match_with_pt_ref()
template<typename COV >
int l1ct::PFAlgoEmulatorBase::best_match_with_pt_ref |
( |
int |
dR2MAX, |
|
|
const COV & |
calo, |
|
|
const TkObjEmu & |
track, |
|
|
const pt_t & |
trackCaloPtErr |
|
) |
| const |
|
protected |
Definition at line 88 of file pfalgo_common_ref.h.
References l1ct::dr2_int(), nano_mu_digi_cff::float, l1ct::Scales::floatPt(), l1trig_cff::hwPt, createfilelist::int, l1ct::Scales::INTPT_LSB, muons_cff::ptErr, and HLT_2024v12_cff::track.
92 pt_t caloPtMin =
track.hwPt - 2 * trackCaloPtErr;
97 int dr2min = 0, ibest = -1;
98 for (
int ic = 0, nCAL =
calo.size(); ic < nCAL; ++ic) {
105 dr2 +=
int((dpt * dpt) * dptscale);
106 if (ibest == -1 || dr2 < dr2min) {
int dr2_int(eta_t eta1, phi_t phi1, eta_t eta2, phi_t phi2)
constexpr float INTPT_LSB
ap_ufixed< 17, 17 - 4, AP_TRN, AP_SAT > ptscale_t
◆ fillPFCand() [1/3]
void l1ct::PFAlgoEmulatorBase::fillPFCand |
( |
const TkObjEmu & |
track, |
|
|
PFChargedObjEmu & |
pf, |
|
|
bool |
isMu, |
|
|
bool |
isEle |
|
) |
| const |
|
protected |
◆ fillPFCand() [2/3]
◆ fillPFCand() [3/3]
◆ loadPtErrBins() [1/2]
void l1ct::PFAlgoEmulatorBase::loadPtErrBins |
( |
unsigned int |
nbins, |
|
|
const float |
absetas[], |
|
|
const float |
scales[], |
|
|
const float |
offs[], |
|
|
bool |
verbose = false |
|
) |
| |
◆ loadPtErrBins() [2/2]
◆ mergeNeutrals()
virtual void l1ct::PFAlgoEmulatorBase::mergeNeutrals |
( |
OutputRegion & |
out | ) |
const |
|
pure virtual |
◆ pfalgo_mu_ref()
void l1ct::PFAlgoEmulatorBase::pfalgo_mu_ref |
( |
const PFInputRegion & |
in, |
|
|
OutputRegion & |
out, |
|
|
std::vector< int > & |
iMu |
|
) |
| const |
|
protected |
◆ ptErr_ref()
◆ ptsort_ref()
template<typename TV >
void l1ct::PFAlgoEmulatorBase::ptsort_ref |
( |
int |
nIn, |
|
|
int |
nOut, |
|
|
const TV & |
in, |
|
|
TV & |
out |
|
) |
| const |
|
protected |
◆ run()
◆ setDebug()
void l1ct::PFAlgoEmulatorBase::setDebug |
( |
bool |
debug = true | ) |
|
|
inline |
◆ debug_
bool l1ct::PFAlgoEmulatorBase::debug_ |
|
protected |
◆ dR2MAX_TK_CALO_
unsigned int l1ct::PFAlgoEmulatorBase::dR2MAX_TK_CALO_ |
|
protected |
◆ dR2MAX_TK_MU_
unsigned int l1ct::PFAlgoEmulatorBase::dR2MAX_TK_MU_ |
|
protected |
◆ nCALO_
unsigned int l1ct::PFAlgoEmulatorBase::nCALO_ |
|
protected |
◆ nMU_
unsigned int l1ct::PFAlgoEmulatorBase::nMU_ |
|
protected |
◆ nSELCALO_
unsigned int l1ct::PFAlgoEmulatorBase::nSELCALO_ |
|
protected |
◆ nTRACK_
unsigned int l1ct::PFAlgoEmulatorBase::nTRACK_ |
|
protected |
◆ ptErrBins_
std::vector<ptErrBin> l1ct::PFAlgoEmulatorBase::ptErrBins_ |
|
protected |
◆ tk_MAXINVPT_LOOSE_
pt_t l1ct::PFAlgoEmulatorBase::tk_MAXINVPT_LOOSE_ |
|
protected |
◆ tk_MAXINVPT_TIGHT_
pt_t l1ct::PFAlgoEmulatorBase::tk_MAXINVPT_TIGHT_ |
|
protected |