CMS 3D CMS Logo

Namespaces | Enumerations | Functions | Variables
deep_helpers.cc File Reference
#include "RecoBTag/FeatureTools/interface/deep_helpers.h"
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
#include "FWCore/Utilities/interface/isFinite.h"

Go to the source code of this file.

Namespaces

 btagbtvdeep
 

Enumerations

enum  btagbtvdeep::qualityFlagsShiftsAndMasks {
  btagbtvdeep::assignmentQualityMask = 0x7, btagbtvdeep::assignmentQualityShift = 0, btagbtvdeep::trackHighPurityMask = 0x8, btagbtvdeep::trackHighPurityShift = 3,
  btagbtvdeep::lostInnerHitsMask = 0x30, btagbtvdeep::lostInnerHitsShift = 4, btagbtvdeep::muonFlagsMask = 0x0600, btagbtvdeep::muonFlagsShift = 9
}
 

Functions

const float btagbtvdeep::catch_infs (const float in, const float replace_value=0.)
 
const float btagbtvdeep::catch_infs_and_bound (const float in, const float replace_value, const float lowerbound, const float upperbound, const float offset=0., const bool use_offsets=true)
 
int btagbtvdeep::center_norm_pad (const std::vector< float > &input, float center, float scale, unsigned min_length, unsigned max_length, std::vector< float > &datavec, int startval, float pad_value=0, float replace_inf_value=0, float min=0, float max=-1)
 
int btagbtvdeep::center_norm_pad_halfRagged (const std::vector< float > &input, float center, float scale, unsigned target_length, std::vector< float > &datavec, int startval, float pad_value=0, float replace_inf_value=0, float min=0, float max=-1)
 
std::pair< float, float > btagbtvdeep::getDRSubjetFeatures (const reco::Jet &jet, const reco::Candidate *cand)
 
float btagbtvdeep::lost_inner_hits_from_pfcand (const reco::PFCandidate &pfcand)
 
float btagbtvdeep::mindrsvpfcand (const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
 
void btagbtvdeep::ParticleNetConstructor (const edm::ParameterSet &Config_, bool doExtra, std::vector< std::string > &input_names_, std::unordered_map< std::string, PreprocessParams > &prep_info_map_, std::vector< std::vector< int64_t >> &input_shapes_, std::vector< unsigned > &input_sizes_, cms::Ort::FloatArrays *data_)
 
float btagbtvdeep::quality_from_pfcand (const reco::PFCandidate &pfcand)
 
template bool btagbtvdeep::sv_vertex_comparator< reco::VertexCompositePtrCandidate, reco::Vertex > (const reco::VertexCompositePtrCandidate &, const reco::VertexCompositePtrCandidate &, const reco::Vertex &)
 
Measurement1D btagbtvdeep::vertexD3d (const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
 
float btagbtvdeep::vertexDdotP (const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)
 
Measurement1D btagbtvdeep::vertexDxy (const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
 
float btagbtvdeep::vtx_ass_from_pfcand (const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
 

Variables

static constexpr int btagbtvdeep::qualityMap [8] = {1, 0, 1, 1, 4, 4, 5, 6}