#include <L1SeedConePFJetEmulator.h>
Classes | |
class | Jet |
class | OpPuppiObjMax |
Public Types | |
typedef ap_fixed< 18, 23 > | detaphi2_t |
typedef ap_int< 13 > | detaphi_t |
typedef l1ct::glbeta_t | etaphi_t |
typedef l1ct::PuppiObjEmu | Particle |
typedef ap_fixed< 22, 22 > | pt_etaphi_t |
typedef l1ct::pt_t | pt_t |
Public Member Functions | |
std::vector< Jet > | emulateEvent (std::vector< Particle > &parts) const |
L1SCJetEmu (bool debug, float coneSize, unsigned nJets) | |
Private Types | |
typedef ap_ufixed< 18, -2 > | inv_pt_t |
Private Member Functions | |
bool | inCone (Particle seed, Particle part) const |
Jet | makeJet_HW (const std::vector< Particle > &parts) const |
Static Private Member Functions | |
static constexpr int | ceillog2 (int x) |
static detaphi_t | deltaPhi (Particle a, Particle b) |
static constexpr int | floorlog2 (int x) |
template<class data_T , int N> | |
static unsigned | idx_from_real_val (data_T x) |
template<class data_T , class table_T , int N> | |
static void | init_invert_table (table_T table_out[N]) |
template<class in_t , class table_t , int N> | |
static table_t | invert_with_shift (const in_t in, const table_t inv_table[N], bool debug=false) |
template<int B> | |
static constexpr int | pow (int x) |
static constexpr int | pow2 (int x) |
template<class data_T , int N> | |
static float | real_val_from_idx (unsigned i) |
template<class T , class Op > | |
static T | reduce (std::vector< T > x, Op op) |
Private Attributes | |
float | coneSize_ |
bool | debug_ |
inv_pt_t | inv_pt_table_ [N_table_inv_pt] |
unsigned | nJets_ |
detaphi2_t | rCone2_ |
Static Private Attributes | |
static constexpr int | N_table_inv_pt = 1024 |
static constexpr OpPuppiObjMax | op_max {} |
Definition at line 14 of file L1SeedConePFJetEmulator.h.
typedef ap_fixed<18, 23> L1SCJetEmu::detaphi2_t |
Definition at line 22 of file L1SeedConePFJetEmulator.h.
typedef ap_int<13> L1SCJetEmu::detaphi_t |
Definition at line 21 of file L1SeedConePFJetEmulator.h.
typedef l1ct::glbeta_t L1SCJetEmu::etaphi_t |
Definition at line 20 of file L1SeedConePFJetEmulator.h.
|
private |
Definition at line 43 of file L1SeedConePFJetEmulator.h.
Definition at line 24 of file L1SeedConePFJetEmulator.h.
typedef ap_fixed<22, 22> L1SCJetEmu::pt_etaphi_t |
Definition at line 23 of file L1SeedConePFJetEmulator.h.
typedef l1ct::pt_t L1SCJetEmu::pt_t |
Definition at line 19 of file L1SeedConePFJetEmulator.h.
L1SCJetEmu::L1SCJetEmu | ( | bool | debug, |
float | coneSize, | ||
unsigned | nJets | ||
) |
Definition at line 3 of file L1SeedConePFJetEmulator.cc.
References inv_pt_table_.
|
inlinestaticprivate |
Definition at line 47 of file L1SeedConePFJetEmulator.h.
References ceillog2(), and x.
Referenced by ceillog2(), idx_from_real_val(), and real_val_from_idx().
|
staticprivate |
Definition at line 11 of file L1SeedConePFJetEmulator.cc.
References a, b, l1ct::Scales::INTPHI_PI, and l1ct::Scales::INTPHI_TWOPI.
Referenced by inCone(), and makeJet_HW().
std::vector< L1SCJetEmu::Jet > L1SCJetEmu::emulateEvent | ( | std::vector< Particle > & | parts | ) | const |
Definition at line 92 of file L1SeedConePFJetEmulator.cc.
References dbgCout(), debug_, inCone(), PDWG_EXODelayedJetMET_cff::jets, makeJet_HW(), nJets_, op_max, reduce(), fileCollector::seed, HcalDetIdTransform::transform(), and edmIntegrityCheck::work.
Referenced by L1SeedConePFJetProducer::processEvent_HW().
|
inlinestaticprivate |
Definition at line 49 of file L1SeedConePFJetEmulator.h.
References floorlog2(), and x.
Referenced by floorlog2(), and reduce().
|
inlinestaticprivate |
|
private |
Definition at line 22 of file L1SeedConePFJetEmulator.cc.
References dbgCout(), debug_, deltaPhi(), diffTwoXMLs::r2, rCone2_, runTheMatrix::ret, and fileCollector::seed.
Referenced by emulateEvent().
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 122 of file L1SeedConePFJetEmulator.h.
References b, dbgCout(), debug, nano_mu_digi_cff::float, heavyIonCSV_trainingSettings::idx, recoMuon::in, and MillePedeFileConverter_cfg::out.
|
private |
Definition at line 38 of file L1SeedConePFJetEmulator.cc.
References a, b, dbgCout(), debug_, deltaPhi(), PVValHelper::eta, inv_pt_table_, metsig::jet, op_max, phi, DiDispStaMuonMonitor_cfi::pt, reduce(), fileCollector::seed, HcalDetIdTransform::transform(), and x.
Referenced by emulateEvent().
|
inlinestaticprivate |
Definition at line 52 of file L1SeedConePFJetEmulator.h.
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 90 of file L1SeedConePFJetEmulator.h.
References ceillog2(), mps_fire::i, N, and x.
|
inlinestaticprivate |
Definition at line 67 of file L1SeedConePFJetEmulator.h.
References floorlog2(), N, pow2(), and x.
Referenced by emulateEvent(), and makeJet_HW().
|
private |
Definition at line 38 of file L1SeedConePFJetEmulator.h.
|
private |
Definition at line 37 of file L1SeedConePFJetEmulator.h.
Referenced by emulateEvent(), inCone(), and makeJet_HW().
|
private |
Definition at line 45 of file L1SeedConePFJetEmulator.h.
Referenced by L1SCJetEmu(), and makeJet_HW().
|
staticprivate |
Definition at line 44 of file L1SeedConePFJetEmulator.h.
|
private |
Definition at line 39 of file L1SeedConePFJetEmulator.h.
Referenced by emulateEvent().
|
staticprivate |
Definition at line 87 of file L1SeedConePFJetEmulator.h.
Referenced by emulateEvent(), and makeJet_HW().
|
private |
Definition at line 40 of file L1SeedConePFJetEmulator.h.
Referenced by inCone().