CMS 3D CMS Logo

JetConverter.h
Go to the documentation of this file.
1 #ifndef RecoBTag_FeatureTools_JetConverter_h
2 #define RecoBTag_FeatureTools_JetConverter_h
3 
5 
7 
8 namespace btagbtvdeep {
9 
10  class JetConverter {
11  public:
12  static void jetToFeatures(const reco::Jet& jet, JetFeatures& jet_features) {
13  jet_features.pt = jet.pt(); // uncorrected
14  jet_features.eta = jet.eta();
15  jet_features.phi = jet.phi();
16  jet_features.mass = jet.mass();
17  jet_features.energy = jet.energy();
18  }
19  };
20 
21 } // namespace btagbtvdeep
22 
23 #endif //RecoBTag_FeatureTools_JetConverter_h
Base class for all types of Jets.
Definition: Jet.h:20
static void jetToFeatures(const reco::Jet &jet, JetFeatures &jet_features)
Definition: JetConverter.h:12