Go to the documentation of this file. 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,
106 #endif //RecoBTag_FeatureTools_deep_helpers_h
VarInfo(float median, float norm_factor, float replace_inf_value, float lower_bound, float upper_bound, float pad)
int dump_vector(reco::TaggingVariableList &from, T *to, reco::btau::TaggingVariableName name, const size_t max)
VarInfo info(const std::string &name) const
std::unordered_map< std::string, VarInfo > var_info_map
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
bool sv_vertex_comparator(const SVType &sva, const SVType &svb, const PVType &pv)
std::vector< TaggingValue > getList(TaggingVariableName tag, bool throwOnEmptyList=true) const
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 vtx_ass_from_pfcand(const reco::PFCandidate &pfcand, int pv_ass_quality, const reco::VertexRef &pv)
const float catch_infs(const float in, const float replace_value=0.)
float mindrsvpfcand(const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
float quality_from_pfcand(const reco::PFCandidate &pfcand)
Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
std::vector< std::string > var_names
Particle reconstructed by the particle flow algorithm.
float lost_inner_hits_from_pfcand(const reco::PFCandidate &pfcand)
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)