1 #ifndef RecoBTag_DeepFlavour_deep_helpers_h 2 #define RecoBTag_DeepFlavour_deep_helpers_h 14 const float replace_value) {
18 else if(in < -1e32 || in > 1e32)
27 const float replace_value,
28 const float lowerbound,
29 const float upperbound,
31 const bool use_offsets =
true){
32 float withoutinfs=
catch_infs(in,replace_value);
33 if(withoutinfs+
offset<lowerbound)
return lowerbound;
34 if(withoutinfs+
offset>upperbound)
return upperbound;
61 return p.Unit().Dot(
d.Unit());
65 template <
typename SVType,
typename PVType>
69 float aval= adxy.value();
70 float bval= bdxy.value();
71 float aerr= adxy.error();
72 float berr= bdxy.error();
86 for(
size_t i=0;
i<vals.size();
i++){
94 float mindrsvpfcand(
const std::vector<reco::VertexCompositePtrCandidate> & svs,
97 for (
unsigned int i0=0; i0<svs.size(); ++i0) {
110 #endif //RecoBTag_DeepFlavour_deep_helpers_h
float vertexDdotP(const reco::VertexCompositePtrCandidate &sv, const reco::Vertex &pv)
Measurement1D vertexD3d(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
math::XYZVector Vector
point in the space
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
double vy() const override
y coordinate of vertex position
double y() const
y coordinate
int dump_vector(reco::TaggingVariableList &from, T *to, reco::btau::TaggingVariableName name, const size_t max)
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
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)
Vector momentum() const final
spatial momentum vector
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
float mindrsvpfcand(const std::vector< reco::VertexCompositePtrCandidate > &svs, const reco::Candidate *cand, float mindr=0.4)
Measurement1D vertexDxy(const reco::VertexCompositePtrCandidate &svcand, const reco::Vertex &pv)
const Point & vertex() const override
vertex position (overwritten by PF...)
double z() const
z coordinate
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
std::vector< TaggingValue > getList(TaggingVariableName tag, bool throwOnEmptyList=true) const
double vz() const override
z coordinate of vertex position
double x() const
x coordinate
bool sv_vertex_comparator(const SVType &sva, const SVType &svb, const PVType &pv)
const float catch_infs(const float in, const float replace_value)
double vx() const override
x coordinate of vertex position