src
PhysicsTools
PatUtils
interface
RawJetExtractorT.h
Go to the documentation of this file.
1
#ifndef PAT_RAWJETEXTRACTORT_H
2
#define PAT_RAWJETEXTRACTORT_H
3
4
#include "
DataFormats/PatCandidates/interface/Jet.h
"
5
6
namespace
pat
{
7
8
template
<
typename
T>
9
class
RawJetExtractorT
{
10
public
:
11
RawJetExtractorT
() {}
12
reco::Candidate::LorentzVector
operator()
(
const
T
&
jet
)
const
{
return
jet
.p4(); }
13
};
14
15
template
<>
16
class
RawJetExtractorT
<
pat
::
Jet
> {
17
public
:
18
reco::Candidate::LorentzVector
operator()
(
const
pat::Jet
&
jet
)
const
{
19
if
(
jet
.jecSetsAvailable())
20
return
jet
.correctedP4(
"Uncorrected"
);
21
else
22
return
jet
.p4();
23
}
24
};
25
26
}
// namespace pat
27
#endif
metsig::jet
Definition:
SignAlgoResolutions.h:47
pat::RawJetExtractorT::operator()
reco::Candidate::LorentzVector operator()(const T &jet) const
Definition:
RawJetExtractorT.h:12
pat::RawJetExtractorT< pat::Jet >::operator()
reco::Candidate::LorentzVector operator()(const pat::Jet &jet) const
Definition:
RawJetExtractorT.h:18
pat::RawJetExtractorT::RawJetExtractorT
RawJetExtractorT()
Definition:
RawJetExtractorT.h:11
pat
Definition:
HeavyIon.h:7
Jet
Definition:
Jet.py:1
pat::Jet
Analysis-level calorimeter jet class.
Definition:
Jet.h:77
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
Jet.h
pat::RawJetExtractorT
Definition:
RawJetExtractorT.h:9
T
long double T
Definition:
Basic3DVectorLD.h:48
Generated for CMSSW Reference Manual by
1.8.14