Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
PhysicsTools
PatUtils
plugins
SmearedJetProducer.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/PatUtils/interface/SmearedJetProducerT.h
"
2
3
#include "
DataFormats/JetReco/interface/CaloJet.h
"
4
#include "
DataFormats/JetReco/interface/PFJet.h
"
5
6
#include "
JetMETCorrections/Type1MET/interface/JetCorrExtractorT.h
"
7
8
#include "
RecoMET/METAlgorithms/interface/SignAlgoResolutions.h
"
9
#include "
DataFormats/METReco/interface/SigInputObj.h
"
10
#include "
RecoMET/METAlgorithms/interface/significanceAlgo.h
"
11
12
namespace
SmearedJetProducer_namespace
13
{
14
template
<>
15
class
JetResolutionExtractorT
<
reco
::PFJet>
16
{
17
public
:
18
19
JetResolutionExtractorT
(
const
edm::ParameterSet
& cfg)
20
: jetResolutions_(cfg)
21
{}
22
~JetResolutionExtractorT
() {}
23
24
double
operator()
(
const
reco::PFJet
&
jet
)
const
25
{
26
metsig::SigInputObj
pfJetResolution = jetResolutions_.evalPFJet(&jet);
27
if
( pfJetResolution.
get_energy
() > 0. ) {
28
return
jet.
energy
()*(pfJetResolution.
get_sigma_e
()/pfJetResolution.
get_energy
());
29
}
else
{
30
return
0.;
31
}
32
}
33
34
metsig::SignAlgoResolutions
jetResolutions_
;
35
};
36
}
37
38
typedef
SmearedJetProducerT<reco::CaloJet, JetCorrExtractorT<reco::CaloJet>
>
SmearedCaloJetProducer
;
39
typedef
SmearedJetProducerT<reco::PFJet, JetCorrExtractorT<reco::PFJet>
>
SmearedPFJetProducer
;
40
41
#include "
FWCore/Framework/interface/MakerMacros.h
"
42
43
DEFINE_FWK_MODULE
(
SmearedCaloJetProducer
);
44
DEFINE_FWK_MODULE
(
SmearedPFJetProducer
);
metsig::jet
Definition:
SignAlgoResolutions.h:40
reco::LeafCandidate::energy
virtual double energy() const GCC11_FINAL
energy
Definition:
LeafCandidate.h:159
SmearedJetProducerT.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
SmearedCaloJetProducer
SmearedJetProducerT< reco::CaloJet, JetCorrExtractorT< reco::CaloJet > > SmearedCaloJetProducer
Definition:
SmearedJetProducer.cc:38
MakerMacros.h
SmearedJetProducer_namespace::JetResolutionExtractorT< reco::PFJet >::operator()
double operator()(const reco::PFJet &jet) const
Definition:
SmearedJetProducer.cc:24
SigInputObj.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
SmearedJetProducer_namespace::JetResolutionExtractorT
Definition:
SmearedJetProducerT.h:103
reco::PFJet
Jets made from PFObjects.
Definition:
PFJet.h:21
SmearedPFJetProducer
SmearedJetProducerT< reco::PFJet, JetCorrExtractorT< reco::PFJet > > SmearedPFJetProducer
Definition:
SmearedJetProducer.cc:39
SmearedJetProducer_namespace::JetResolutionExtractorT< reco::PFJet >::jetResolutions_
metsig::SignAlgoResolutions jetResolutions_
Definition:
SmearedJetProducer.cc:34
metsig::SignAlgoResolutions
Definition:
SignAlgoResolutions.h:43
JetCorrExtractorT.h
metsig::SigInputObj
Definition:
SigInputObj.h:31
SignAlgoResolutions.h
metsig::SigInputObj::get_energy
double get_energy() const
Definition:
SigInputObj.h:43
SmearedJetProducer_namespace::JetResolutionExtractorT< reco::PFJet >::~JetResolutionExtractorT
~JetResolutionExtractorT()
Definition:
SmearedJetProducer.cc:22
SmearedJetProducerT
Definition:
SmearedJetProducerT.h:145
edm::ParameterSet
Definition:
ParameterSet.h:35
CaloJet.h
metsig::SigInputObj::get_sigma_e
double get_sigma_e() const
Definition:
SigInputObj.h:45
significanceAlgo.h
PFJet.h
SmearedJetProducer_namespace::JetResolutionExtractorT< reco::PFJet >::JetResolutionExtractorT
JetResolutionExtractorT(const edm::ParameterSet &cfg)
Definition:
SmearedJetProducer.cc:19
Generated for CMSSW Reference Manual by
1.8.5