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_e, float pred_eta, float pred_phi) |
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 = 11 |
static constexpr unsigned int | IDX_ENERGY = 10 |
static constexpr unsigned int | IDX_ETA = 8 |
static constexpr unsigned int | IDX_PHI = 9 |
static constexpr int | LSH_BIN_SIZE = 100 |
static constexpr unsigned int | NUM_CLASS = 7 |
static constexpr unsigned int | NUM_ELEMENT_FEATURES = 15 |
static constexpr int | NUM_MAX_ELEMENTS_BATCH = 20000 |
static constexpr unsigned int | NUM_OUTPUTS = 12 |
static const std::vector< int > | pdgid_encoding = {0, 1, 2, 11, 13, 22, 130, 211} |
int reco::mlpf::argMax | ( | std::vector< float > const & | vec | ) |
Definition at line 158 of file MLPFModel.cc.
References HLT_FULL_cff::distance.
Referenced by MLPFProducer::produce().
std::array< float, NUM_ELEMENT_FEATURES > reco::mlpf::getElementProperties | ( | const reco::PFBlockElement & | orig | ) |
Definition at line 15 of file MLPFModel.cc.
References reco::PFBlockElement::BREM, ALCARECOTkAlJpsiMuMu_cff::charge, LEDCalibrationChannels::depth, reco::PFBlockElement::ECAL, reco::PFTrajectoryPoint::ECALShowerMax, elem_type_encoding, HCALHighEnergyHPDFilter_cfi::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 >::isNonnull(), phase1PixelTopology::layer, 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 185 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_e, | ||
float | pred_eta, | ||
float | pred_phi | ||
) |
Definition at line 162 of file MLPFModel.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, angle0to2pi::make0To2pi(), and p4.
Referenced by MLPFProducer::produce().
float reco::mlpf::normalize | ( | float | in | ) |
Definition at line 149 of file MLPFModel.cc.
References funct::abs(), recoMuon::in, and edm::isNotFinite().
Referenced by Rivet::CMS_2013_I1224539_DIJET::finalize(), Geom::Phi< float >::normalize(), and MLPFProducer::produce().
void reco::mlpf::setCandidateRefs | ( | reco::PFCandidate & | cand, |
const std::vector< const reco::PFBlockElement * > | elems, | ||
size_t | ielem_originator | ||
) |
Definition at line 204 of file MLPFModel.cc.
References edm::Ref< C, T, F >::isNonnull(), reco::PFBlockElement::muonRef(), reco::PFBlockElement::TRACK, reco::PFBlockElement::trackRef(), and reco::PFBlockElement::type().
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 17 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
static |
Definition at line 38 of file MLPFModel.h.
Referenced by getElementProperties().
|
staticconstexpr |
Definition at line 30 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 29 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 27 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 28 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 14 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 26 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 10 of file MLPFModel.h.
Referenced by MLPFProducer::produce().
|
staticconstexpr |
Definition at line 13 of file MLPFModel.h.
Referenced by getPFElements(), and MLPFProducer::produce().
|
staticconstexpr |
Definition at line 25 of file MLPFModel.h.
|
static |
Definition at line 34 of file MLPFModel.h.
Referenced by MLPFProducer::produce().