src
RecoBTag
FeatureTools
interface
JetConverter.h
Go to the documentation of this file.
1
#ifndef RecoBTag_FeatureTools_JetConverter_h
2
#define RecoBTag_FeatureTools_JetConverter_h
3
4
#include "
DataFormats/BTauReco/interface/JetFeatures.h
"
5
6
#include "
DataFormats/JetReco/interface/Jet.h
"
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
metsig::jet
Definition:
SignAlgoResolutions.h:47
JetFeatures.h
btagbtvdeep::JetFeatures::mass
float mass
Definition:
JetFeatures.h:11
reco::Jet
Base class for all types of Jets.
Definition:
Jet.h:20
btagbtvdeep::JetFeatures::pt
float pt
Definition:
JetFeatures.h:8
btagbtvdeep::JetConverter
Definition:
JetConverter.h:10
btagbtvdeep::JetFeatures::energy
float energy
Definition:
JetFeatures.h:12
Jet.h
btagbtvdeep::JetFeatures::phi
float phi
Definition:
JetFeatures.h:10
btagbtvdeep::JetConverter::jetToFeatures
static void jetToFeatures(const reco::Jet &jet, JetFeatures &jet_features)
Definition:
JetConverter.h:12
btagbtvdeep
Definition:
BoostedDoubleSVTagInfoFeatures.h:4
btagbtvdeep::JetFeatures::eta
float eta
Definition:
JetFeatures.h:9
btagbtvdeep::JetFeatures
Definition:
JetFeatures.h:6
Generated for CMSSW Reference Manual by
1.8.14