Functions | |
int | argMax (std::vector< float > const &vec) |
std::array< float, NUM_ELEMENT_FEATURES > | getElementProperties (const reco::PFBlockElement &orig) |
const std::vector< const reco::PFBlockElement * > | getPFElements (const reco::PFBlockCollection &blocks) |
reco::PFCandidate | makeCandidate (int pred_pid, int pred_charge, float pred_pt, float pred_eta, float pred_sin_phi, float pred_cos_phi, float pred_e) |
float | normalize (float in) |
void | setCandidateRefs (reco::PFCandidate &cand, const std::vector< const reco::PFBlockElement *> elems, size_t ielem_originator) |
Variables | |
static constexpr int | BATCH_SIZE = 1 |
static const std::map< int, int > | elem_type_encoding |
static constexpr unsigned int | IDX_CHARGE = 8 |
static constexpr unsigned int | IDX_CLASS = 7 |
static constexpr unsigned int | IDX_COS_PHI = 12 |
static constexpr unsigned int | IDX_ENERGY = 13 |
static constexpr unsigned int | IDX_ETA = 10 |
static constexpr unsigned int | IDX_PT = 9 |
static constexpr unsigned int | IDX_SIN_PHI = 11 |
static constexpr int | LSH_BIN_SIZE = 64 |
static constexpr unsigned int | NUM_ELEMENT_FEATURES = 25 |
static constexpr int | NUM_MAX_ELEMENTS_BATCH = 200 * LSH_BIN_SIZE |
static constexpr unsigned int | NUM_OUTPUT_FEATURES = 14 |
static const std::vector< int > | pdgid_encoding = {0, 211, 130, 1, 2, 22, 11, 13} |
static constexpr float | PI_MASS = 0.13957 |
int reco::mlpf::argMax | ( | std::vector< float > const & | vec | ) |
Definition at line 216 of file MLPFModel.cc.
References HLT_2024v14_cff::distance.
Referenced by MLPFProducer::produce().
std::array< float, NUM_ELEMENT_FEATURES > reco::mlpf::getElementProperties | ( | const reco::PFBlockElement & | orig | ) |
Definition at line 17 of file MLPFModel.cc.
References reco::PFBlockElement::BREM, reco::charge(), hcalRecHitTable_cff::depth, reco::PFBlockElement::ECAL, reco::PFTrajectoryPoint::ECALShowerMax, elem_type_encoding, hcalRecHitTable_cff::energy, PVValHelper::eta, reco::PFBlockElement::GSF, reco::PFBlockElement::HCAL, reco::PFTrajectoryPoint::HCALEntrance, reco::PFBlockElement::HFEM, reco::PFBlockElement::HFHAD, reco::PFBlockElement::HO, edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), reco::PFBlockElement::muonRef(), reco::PFBlockElement::PS1, reco::PFBlockElement::PS2, DiDispStaMuonMonitor_cfi::pt, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, reco::PFBlockElement::SC, reco::PFBlockElement::TRACK, reco::PFBlockElement::trackRefPF(), and reco::PFBlockElement::type().
Referenced by MLPFProducer::produce().
const std::vector< const reco::PFBlockElement * > reco::mlpf::getPFElements | ( | const reco::PFBlockCollection & | blocks | ) |
Definition at line 263 of file MLPFModel.cc.
References groupFilesInBlocks::block, gather_cfg::blocks, and NUM_MAX_ELEMENTS_BATCH.
Referenced by MLPFProducer::produce().
reco::PFCandidate reco::mlpf::makeCandidate | ( | int | pred_pid, |
int | pred_charge, | ||
float | pred_pt, | ||
float | pred_eta, | ||
float | pred_sin_phi, | ||
float | pred_cos_phi, | ||
float | pred_e | ||
) |
Definition at line 220 of file MLPFModel.cc.
References reco::charge(), reco::PFCandidate::e, reco::PFCandidate::egamma_HF, reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, reco::PFCandidate::h_HF, reco::PFCandidate::mu, PbPb_ZMuSkimMuonDPG_cff::particleType, PI_MASS, and reco::PFCandidate::X.
Referenced by MLPFProducer::produce().
float reco::mlpf::normalize | ( | float | in | ) |
Definition at line 207 of file MLPFModel.cc.
References funct::abs(), recoMuon::in, and edm::isNotFinite().
Referenced by EcalShapeBase::buildMe(), drawSingleHistogram(), Rivet::CMS_2013_I1224539_DIJET::finalize(), Geom::Phi< float >::normalize(), MLPFProducer::produce(), and EcalShapeBase::setEventSetup().
void reco::mlpf::setCandidateRefs | ( | reco::PFCandidate & | cand, |
const std::vector< const reco::PFBlockElement *> | elems, | ||
size_t | ielem_originator | ||
) |
Definition at line 284 of file MLPFModel.cc.
References funct::abs(), reco::PFBlockElement::GSF, reco::PFBlockElementGsfTrack::GsftrackRef(), edm::Ref< C, T, F >::isNonnull(), reco::PFBlockElementTrack::muonRef(), reco::PFBlockElement::TRACK, reco::PFBlockElement::trackRef(), and reco::PFBlockElement::type().
Referenced by MLPFProducer::produce().
|
static |
Definition at line 18 of file MLPFModel.h.
|
static |
Definition at line 47 of file MLPFModel.h.
Referenced by getElementProperties().
|
static |
Definition at line 30 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 28 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 35 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 36 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 33 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 32 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 34 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 14 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 10 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 15 of file MLPFModel.h.
Referenced by getPFElements(), and MLPFProducer::produce().
|
static |
Definition at line 11 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 43 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 39 of file MLPFModel.h.
Referenced by makeCandidate().