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