Main Page
Namespaces
Classes
Package Documentation
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
17
#include "
FWCore/Framework/interface/global/EDProducer.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
#include "
FWCore/Utilities/interface/InputTag.h
"
22
23
#include "
DataFormats/PatCandidates/interface/MET.h
"
24
#include "
DataFormats/METReco/interface/GenMET.h
"
25
26
namespace
pat
{
27
28
class
GenMETExtractor
:
public
edm::global::EDProducer
<> {
29
30
public
:
31
32
explicit
GenMETExtractor
(
const
edm::ParameterSet
& iConfig);
33
~GenMETExtractor
()
override
;
34
35
void
produce
(
edm::StreamID
streamID,
edm::Event
&
iEvent
,
36
const
edm::EventSetup
& iSetup)
const override
;
37
38
private
:
39
40
edm::EDGetTokenT<std::vector<pat::MET>
>
metSrcToken_
;
41
42
};
43
44
}
45
46
#endif
EDProducer.h
edm::StreamID
Definition:
StreamID.h:30
Event.h
GenMET.h
pat::GenMETExtractor
Retrieves the genMET from a pat::MET.
Definition:
GenMETExtractor.h:28
edm::EDGetTokenT
Definition:
EDGetToken.h:33
pat
Definition:
HeavyIon.h:7
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
pat::GenMETExtractor::GenMETExtractor
GenMETExtractor(const edm::ParameterSet &iConfig)
Definition:
GenMETExtractor.cc:10
MET.h
edm::EventSetup
Definition:
EventSetup.h:57
edm::global::EDProducer
Definition:
EDProducer.h:32
pat::GenMETExtractor::~GenMETExtractor
~GenMETExtractor() override
Definition:
GenMETExtractor.cc:20
pat::GenMETExtractor::produce
void produce(edm::StreamID streamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition:
GenMETExtractor.cc:25
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
ConsumesCollector.h
pat::GenMETExtractor::metSrcToken_
edm::EDGetTokenT< std::vector< pat::MET > > metSrcToken_
Definition:
GenMETExtractor.h:40
Generated for CMSSW Reference Manual by
1.8.11