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 
13  static void jetToFeatures(const reco::Jet & jet,
14  JetFeatures & jet_features) {
15  jet_features.pt = jet.pt(); // uncorrected
16  jet_features.eta = jet.eta();
17  jet_features.phi = jet.phi();
18  jet_features.mass = jet.mass();
19  jet_features.energy = jet.energy();
20  }
21  };
22 
23 }
24 
25 #endif //RecoBTag_FeatureTools_JetConverter_h
26 
double eta() const final
momentum pseudorapidity
Base class for all types of Jets.
Definition: Jet.h:20
double pt() const final
transverse momentum
double energy() const final
energy
static void jetToFeatures(const reco::Jet &jet, JetFeatures &jet_features)
Definition: JetConverter.h:13
double phi() const final
momentum azimuthal angle
double mass() const final
mass