PhysicsTools
PatAlgos
plugins
RecoMETExtractor.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_PatAlgos_RecoMETExtractor_h
2
#define PhysicsTools_PatAlgos_RecoMETExtractor_h
3
15
#include "
FWCore/Framework/interface/global/EDProducer.h
"
16
#include "
FWCore/Framework/interface/Event.h
"
17
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
18
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
19
#include "
FWCore/Utilities/interface/InputTag.h
"
20
21
#include "
DataFormats/PatCandidates/interface/MET.h
"
22
#include "
DataFormats/METReco/interface/MET.h
"
23
24
namespace
pat
{
25
26
class
RecoMETExtractor
:
public
edm::global::EDProducer
<> {
27
public
:
28
explicit
RecoMETExtractor
(
const
edm::ParameterSet
& iConfig);
29
~RecoMETExtractor
()
override
;
30
31
void
produce
(
edm::StreamID
streamID,
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
const override
;
32
33
private
:
34
edm::EDGetTokenT<std::vector<pat::MET>
>
metSrcToken_
;
35
36
pat::MET::METCorrectionLevel
corLevel_
;
37
};
38
39
}
// namespace pat
40
41
#endif
edm::StreamID
Definition:
StreamID.h:30
pat::RecoMETExtractor::corLevel_
pat::MET::METCorrectionLevel corLevel_
Definition:
RecoMETExtractor.h:36
edm::EDGetTokenT
Definition:
EDGetToken.h:33
pat::RecoMETExtractor::~RecoMETExtractor
~RecoMETExtractor() override
Definition:
RecoMETExtractor.cc:51
pat::RecoMETExtractor::produce
void produce(edm::StreamID streamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition:
RecoMETExtractor.cc:53
pat::RecoMETExtractor
Retrieves the recoMET from a pat::MET.
Definition:
RecoMETExtractor.h:26
edm::global::EDProducer
Definition:
EDProducer.h:32
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
pat
Definition:
HeavyIon.h:7
MET.h
pat::RecoMETExtractor::metSrcToken_
edm::EDGetTokenT< std::vector< pat::MET > > metSrcToken_
Definition:
RecoMETExtractor.h:34
InputTag.h
pat::RecoMETExtractor::RecoMETExtractor
RecoMETExtractor(const edm::ParameterSet &iConfig)
Definition:
RecoMETExtractor.cc:10
pat::MET::METCorrectionLevel
METCorrectionLevel
Definition:
MET.h:173
MET.h
ConsumesCollector.h
ParameterSet.h
EDProducer.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16