#include <JetId.h>
Public Member Functions | |
float | compute (const l1t::PFJet &iJet, float vz, bool useRawPt) |
ap_fixed< 16, 6 > | computeFixed (const l1t::PFJet &iJet, float vz, bool useRawPt) |
float | EvaluateNN () |
ap_fixed< 16, 6 > | EvaluateNNFixed () |
JetId (const std::string &iInput, const std::string &iOutput, const std::shared_ptr< hls4mlEmulator::Model > model, int iNParticles) | |
JetId (const std::string &iInput, const std::string &iOutput, const BJetTFCache *cache, int iNParticles) | |
void | setNNVectorVar () |
~JetId ()=default | |
Private Attributes | |
unique_ptr< int[]> | fCharge_ |
unique_ptr< float[]> | fDX_ |
unique_ptr< float[]> | fDY_ |
unique_ptr< float[]> | fDZ_ |
unique_ptr< float[]> | fEta_ |
unique_ptr< int[]> | fId_ |
std::string | fInput_ |
int | fNParticles_ |
std::string | fOutput_ |
unique_ptr< float[]> | fPhi_ |
unique_ptr< float[]> | fPt_ |
std::shared_ptr< hls4mlEmulator::Model > | modelRef_ |
std::vector< float > | NNvectorVar_ |
tensorflow::Session * | sessionRef_ |
JetId::JetId | ( | const std::string & | iInput, |
const std::string & | iOutput, | ||
const std::shared_ptr< hls4mlEmulator::Model > | model, | ||
int | iNParticles | ||
) |
JetId::JetId | ( | const std::string & | iInput, |
const std::string & | iOutput, | ||
const BJetTFCache * | cache, | ||
int | iNParticles | ||
) |
|
default |
float JetId::compute | ( | const l1t::PFJet & | iJet, |
float | vz, | ||
bool | useRawPt | ||
) |
Definition at line 90 of file JetId.cc.
References l1t::PFJet::constituents(), SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), EvaluateNN(), fCharge_, fDX_, fDY_, fDZ_, fEta_, fId_, fNParticles_, fPhi_, fPt_, mps_fire::i, dqmiolumiharvest::j, pfTrack_cfi::pfTrack, phi, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), l1t::PFJet::rawPt(), setNNVectorVar(), jetUpdater_cfi::sort, and btvMC_cff::vz.
ap_fixed< 16, 6 > JetId::computeFixed | ( | const l1t::PFJet & | iJet, |
float | vz, | ||
bool | useRawPt | ||
) |
Definition at line 124 of file JetId.cc.
References l1t::PFJet::constituents(), SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), EvaluateNNFixed(), fCharge_, fDX_, fDY_, fDZ_, fEta_, fId_, fNParticles_, fPhi_, fPt_, mps_fire::i, dqmiolumiharvest::j, pfTrack_cfi::pfTrack, phi, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), l1t::PFJet::rawPt(), setNNVectorVar(), jetUpdater_cfi::sort, and btvMC_cff::vz.
float JetId::EvaluateNN | ( | ) |
Definition at line 66 of file JetId.cc.
References fInput_, nano_mu_digi_cff::float, fOutput_, mps_fire::i, input, createfilelist::int, NNvectorVar_, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, tensorflow::run(), and sessionRef_.
Referenced by compute().
ap_fixed< 16, 6 > JetId::EvaluateNNFixed | ( | ) |
Definition at line 76 of file JetId.cc.
References mps_fire::i, modelRef_, and NNvectorVar_.
Referenced by computeFixed().
void JetId::setNNVectorVar | ( | ) |
Definition at line 43 of file JetId.cc.
References l1t::PFCandidate::ChargedHadron, l1t::PFCandidate::Electron, fCharge_, fDX_, fDY_, fDZ_, fEta_, fId_, fNParticles_, fPhi_, fPt_, Matriplex::hypot(), testProducerWithPsetDescEmpty_cfi::i1, l1t::PFCandidate::Muon, l1t::PFCandidate::NeutralHadron, NNvectorVar_, and l1t::PFCandidate::Photon.
Referenced by compute(), and computeFixed().
|
private |
Definition at line 47 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 49 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 50 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 48 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 44 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 46 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 40 of file JetId.h.
Referenced by EvaluateNN(), and JetId().
|
private |
Definition at line 42 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 41 of file JetId.h.
Referenced by EvaluateNN(), and JetId().
|
private |
Definition at line 45 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 43 of file JetId.h.
Referenced by compute(), computeFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 52 of file JetId.h.
Referenced by EvaluateNNFixed().
|
private |
Definition at line 39 of file JetId.h.
Referenced by EvaluateNN(), EvaluateNNFixed(), JetId(), and setNNVectorVar().
|
private |
Definition at line 51 of file JetId.h.
Referenced by EvaluateNN().