CMS 3D CMS Logo

SeedingTracksConverter.h
Go to the documentation of this file.
1 #ifndef RecoBTag_FeatureTools_SeedingTracksConverter_h
2 #define RecoBTag_FeatureTools_SeedingTracksConverter_h
3 
6 
9 
12 
14 
19 
21 
22 namespace btagbtvdeep {
23 
24  void seedingTracksToFeatures(const std::vector<reco::TransientTrack>& selectedTracks,
25  const std::vector<float>& masses,
26  const reco::Jet& jet,
27  const reco::Vertex& pv,
28  HistogramProbabilityEstimator* probabilityEstimator,
30  std::vector<btagbtvdeep::SeedingTrackFeatures>& seedingT_features_vector);
31 
32  inline float logWithOffset(float v, float logOffset = 0) {
33  if (v == 0.)
34  return 0.;
35  return logOffset + log(std::fabs(v)) * std::copysign(1.f, v);
36  };
37 } // namespace btagbtvdeep
38 
39 #endif //RecoBTag_FeatureTools_SeedingTracksConverter_h
Base class for all types of Jets.
Definition: Jet.h:20
double f[11][100]
void seedingTracksToFeatures(const std::vector< reco::TransientTrack > &selectedTracks, const std::vector< float > &masses, const reco::Jet &jet, const reco::Vertex &pv, HistogramProbabilityEstimator *probabilityEstimator, bool computeProbabilities, std::vector< btagbtvdeep::SeedingTrackFeatures > &seedingT_features_vector)
float logWithOffset(float v, float logOffset=0)