#include <pftkegalgo_ref.h>
Classes | |
struct | CompositeCandidate |
Public Types | |
typedef ap_fixed< 21, 12, AP_RND_CONV, AP_SAT > | bdt_feature_t |
typedef ap_fixed< 12, 3, AP_RND_CONV, AP_SAT > | bdt_score_t |
Public Member Functions | |
PFTkEGAlgoEmulator (const PFTkEGAlgoEmuConfig &config) | |
void | run (const PFInputRegion &in, OutputRegion &out) const |
void | runIso (const PFInputRegion &in, const std::vector< l1ct::PVObjEmu > &pvs, OutputRegion &out) const |
void | setDebug (int verbose) |
void | toFirmware (const PFInputRegion &in, PFRegion ®ion, EmCaloObj calo[], TkObj track[]) const |
void | toFirmware (const OutputRegion &out, EGIsoObj out_egphs[], EGIsoEleObj out_egeles[]) const |
void | toFirmware (const PFInputRegion &in, const l1ct::PVObjEmu &pvin, PFRegion ®ion, TkObj track[], PVObj &pv) const |
bool | writeEgSta () const |
virtual | ~PFTkEGAlgoEmulator () |
Private Member Functions | |
EGIsoEleObjEmu & | addEGIsoEleToPF (std::vector< EGIsoEleObjEmu > &egobjs, const EmCaloObjEmu &calo, const TkObjEmu &track, const unsigned int hwQual, const pt_t ptCorr, const float bdtScore) const |
EGIsoObjEmu & | addEGIsoToPF (std::vector< EGIsoObjEmu > &egobjs, const EmCaloObjEmu &calo, const unsigned int hwQual, const pt_t ptCorr) const |
void | addEgObjsToPF (std::vector< EGObjEmu > &egstas, std::vector< EGIsoObjEmu > &egobjs, std::vector< EGIsoEleObjEmu > &egeleobjs, const std::vector< EmCaloObjEmu > &emcalo, const std::vector< TkObjEmu > &track, const int calo_idx, const unsigned int hwQual, const pt_t ptCorr, const int tk_idx, const float bdtScore, const std::vector< unsigned int > &components={}) const |
EGObjEmu & | addEGStaToPF (std::vector< EGObjEmu > &egobjs, const EmCaloObjEmu &calo, const unsigned int hwQual, const pt_t ptCorr, const std::vector< unsigned int > &components) const |
float | compute_composite_score (CompositeCandidate &cand, const std::vector< EmCaloObjEmu > &emcalo, const std::vector< TkObjEmu > &track, const PFTkEGAlgoEmuConfig::CompIDParameters ¶ms) const |
void | compute_isolation (std::vector< EGIsoObjEmu > &egobjs, const std::vector< TkObjEmu > &objects, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
void | compute_isolation (std::vector< EGIsoEleObjEmu > &egobjs, const std::vector< TkObjEmu > &objects, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
void | compute_isolation (std::vector< EGIsoObjEmu > &egobjs, const std::vector< PFChargedObjEmu > &charged, const std::vector< PFNeutralObjEmu > &neutrals, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
void | compute_isolation (std::vector< EGIsoEleObjEmu > &egobjs, const std::vector< PFChargedObjEmu > &charged, const std::vector< PFNeutralObjEmu > &neutrals, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
template<typename TCH , typename TEG > | |
void | compute_sumPt (iso_t &sumPt, iso_t &sumPtPV, const std::vector< TCH > &objects, unsigned int nMaxObj, const TEG &egobj, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
template<typename TEG > | |
void | compute_sumPt (iso_t &sumPt, iso_t &sumPtPV, const std::vector< PFNeutralObjEmu > &objects, unsigned int nMaxObj, const TEG &egobj, const PFTkEGAlgoEmuConfig::IsoParameters ¶ms, z0_t z0) const |
float | deltaPhi (float phi1, float phi2) const |
template<typename T > | |
int | deltaR2 (const T &charged, const EGIsoObjEmu &egphoton) const |
template<typename T > | |
int | deltaR2 (const T &charged, const EGIsoEleObjEmu &egele) const |
int | deltaR2 (const PFNeutralObjEmu &neutral, const EGIsoObjEmu &egphoton) const |
int | deltaR2 (const PFNeutralObjEmu &neutral, const EGIsoEleObjEmu &egele) const |
template<typename T > | |
ap_int< z0_t::width+1 > | deltaZ0 (const T &charged, const EGIsoObjEmu &egphoton, z0_t z0) const |
template<typename T > | |
ap_int< z0_t::width+1 > | deltaZ0 (const T &charged, const EGIsoEleObjEmu &egele, z0_t z0) const |
void | eg_algo (const PFRegionEmu ®ion, const std::vector< EmCaloObjEmu > &emcalo, const std::vector< TkObjEmu > &track, const std::vector< int > &emCalo2emCalo, const std::vector< int > &emCalo2tk, const std::vector< float > &emCaloTkBdtScore, std::vector< EGObjEmu > &egstas, std::vector< EGIsoObjEmu > &egobjs, std::vector< EGIsoEleObjEmu > &egeleobjs) const |
void | link_emCalo2emCalo (const std::vector< EmCaloObjEmu > &emcalo, std::vector< int > &emCalo2emCalo) const |
void | link_emCalo2tk_composite (const PFRegionEmu &r, const std::vector< EmCaloObjEmu > &emcalo, const std::vector< TkObjEmu > &track, std::vector< int > &emCalo2tk, std::vector< float > &emCaloTkBdtScore) const |
void | link_emCalo2tk_elliptic (const PFRegionEmu &r, const std::vector< EmCaloObjEmu > &emcalo, const std::vector< TkObjEmu > &track, std::vector< int > &emCalo2tk) const |
template<typename T > | |
void | ptsort_ref (int nIn, int nOut, const std::vector< T > &in, std::vector< T > &out) const |
void | sel_emCalo (unsigned int nmax_sel, const std::vector< EmCaloObjEmu > &emcalo, std::vector< EmCaloObjEmu > &emcalo_sel) const |
Private Attributes | |
PFTkEGAlgoEmuConfig | cfg |
conifer::BDT< bdt_feature_t, ap_fixed< 12, 3, AP_RND_CONV, AP_SAT >, false > * | composite_bdt_ |
int | debug_ |
Definition at line 136 of file pftkegalgo_ref.h.
typedef ap_fixed<21, 12, AP_RND_CONV, AP_SAT> l1ct::PFTkEGAlgoEmulator::bdt_feature_t |
Definition at line 157 of file pftkegalgo_ref.h.
typedef ap_fixed<12, 3, AP_RND_CONV, AP_SAT> l1ct::PFTkEGAlgoEmulator::bdt_score_t |
Definition at line 158 of file pftkegalgo_ref.h.
l1ct::PFTkEGAlgoEmulator::PFTkEGAlgoEmulator | ( | const PFTkEGAlgoEmuConfig & | config | ) |
|
inlinevirtual |
Definition at line 140 of file pftkegalgo_ref.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
Definition at line 289 of file pftkegalgo_ref.h.
References deltaR2(), deltaZ0(), getGTfromDQMFile::obj, submitPVValidationJobs::params, and TtFullHadEvtBuilder_cfi::sumPt.
|
inlineprivate |
Definition at line 314 of file pftkegalgo_ref.h.
References deltaR2(), getGTfromDQMFile::obj, submitPVValidationJobs::params, and TtFullHadEvtBuilder_cfi::sumPt.
|
private |
|
inlineprivate |
Definition at line 253 of file pftkegalgo_ref.h.
References l1ct::dr2_int(), l1ct::EGIsoObj::hwEta, and l1ct::EGIsoObj::hwPhi.
Referenced by compute_sumPt().
|
inlineprivate |
Definition at line 259 of file pftkegalgo_ref.h.
References l1ct::dr2_int(), l1ct::EGIsoEleObj::hwVtxEta(), and l1ct::EGIsoEleObj::hwVtxPhi().
|
inlineprivate |
Definition at line 263 of file pftkegalgo_ref.h.
References l1ct::dr2_int(), l1ct::PFCommonObj::hwEta, l1ct::EGIsoObj::hwEta, l1ct::PFCommonObj::hwPhi, and l1ct::EGIsoObj::hwPhi.
|
inlineprivate |
Definition at line 267 of file pftkegalgo_ref.h.
References l1ct::dr2_int(), l1ct::PFCommonObj::hwEta, l1ct::PFCommonObj::hwPhi, l1ct::EGIsoEleObj::hwVtxEta(), and l1ct::EGIsoEleObj::hwVtxPhi().
|
inlineprivate |
Definition at line 273 of file pftkegalgo_ref.h.
References dumpMFGeometry_cfg::delta.
Referenced by compute_sumPt().
|
inlineprivate |
Definition at line 281 of file pftkegalgo_ref.h.
References dumpMFGeometry_cfg::delta, and l1ct::EGIsoEleObj::hwZ0.
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
Definition at line 234 of file pftkegalgo_ref.h.
References l1trig_cff::hwPt, testProducerWithPsetDescEmpty_cfi::i2, recoMuon::in, l1ctLayer1_cff::nIn, l1ctLayer1_cff::nOut, and MillePedeFileConverter_cfg::out.
void l1ct::PFTkEGAlgoEmulator::run | ( | const PFInputRegion & | in, |
OutputRegion & | out | ||
) | const |
void l1ct::PFTkEGAlgoEmulator::runIso | ( | const PFInputRegion & | in, |
const std::vector< l1ct::PVObjEmu > & | pvs, | ||
OutputRegion & | out | ||
) | const |
|
private |
|
inline |
void l1ct::PFTkEGAlgoEmulator::toFirmware | ( | const PFInputRegion & | in, |
PFRegion & | region, | ||
EmCaloObj | calo[], | ||
TkObj | track[] | ||
) | const |
void l1ct::PFTkEGAlgoEmulator::toFirmware | ( | const OutputRegion & | out, |
EGIsoObj | out_egphs[], | ||
EGIsoEleObj | out_egeles[] | ||
) | const |
void l1ct::PFTkEGAlgoEmulator::toFirmware | ( | const PFInputRegion & | in, |
const l1ct::PVObjEmu & | pvin, | ||
PFRegion & | region, | ||
TkObj | track[], | ||
PVObj & | pv | ||
) | const |
|
inline |
Definition at line 155 of file pftkegalgo_ref.h.
References cfg, and l1ct::PFTkEGAlgoEmuConfig::writeEgSta.
|
private |
Definition at line 356 of file pftkegalgo_ref.h.
Referenced by writeEgSta().
|
private |
Definition at line 357 of file pftkegalgo_ref.h.
|
private |
Definition at line 358 of file pftkegalgo_ref.h.
Referenced by setDebug().