1 #ifndef RecoBTag_FeatureTools_deep_helpers_h 2 #define RecoBTag_FeatureTools_deep_helpers_h 21 const float catch_infs(
const float in,
const float replace_value = 0.);
25 const float replace_value,
26 const float lowerbound,
27 const float upperbound,
29 const bool use_offsets =
true);
41 template <
typename SVType,
typename PVType>
45 float aval = adxy.value();
46 float bval = bdxy.value();
47 float aerr = adxy.error();
48 float berr = bdxy.error();
61 for (
size_t i = 0;
i < vals.size();
i++) {
69 float mindrsvpfcand(
const std::vector<reco::VertexCompositePtrCandidate> &svs,
108 #endif //RecoBTag_FeatureTools_deep_helpers_h
float quality_from_pfcand(const reco::PFCandidate &pfcand)
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)
std::vector< std::string > var_names
Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
VarInfo info(const std::string &name) const
std::unordered_map< std::string, VarInfo > var_info_map
const float catch_infs(const float in, const float replace_value=0.)
Base class for all types of Jets.
int dump_vector(reco::TaggingVariableList &from, T *to, reco::btau::TaggingVariableName name, const size_t max)
std::pair< float, float > getDRSubjetFeatures(const reco::Jet &jet, const reco::Candidate *cand)
const float 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)
float mindrsvpfcand(const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
std::vector< TaggingValue > getList(TaggingVariableName tag, bool throwOnEmptyList=true) const
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
float vtx_ass_from_pfcand(const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
bool sv_vertex_comparator(const SVType &sva, const SVType &svb, const PVType &pv)
float lost_inner_hits_from_pfcand(const reco::PFCandidate &pfcand)
Particle reconstructed by the particle flow algorithm.
VarInfo(float median, float norm_factor, float replace_inf_value, float lower_bound, float upper_bound, float pad)