RecoTauTag
HLTProducers
interface
L2TauJetsMerger.h
Go to the documentation of this file.
1
2
#ifndef L2TAUJETSMERGER_H
3
#define L2TAUJETSMERGER_H
4
5
// user include files
6
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
7
#include "
FWCore/Framework/interface/global/EDProducer.h
"
8
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
10
#include "
FWCore/Framework/interface/Event.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
12
#include "
FWCore/Utilities/interface/InputTag.h
"
13
#include "
DataFormats/Common/interface/Handle.h
"
14
#include "
DataFormats/JetReco/interface/CaloJetCollection.h
"
15
16
#include <map>
17
#include <vector>
18
19
class
L2TauJetsMerger
:
public
edm::global::EDProducer
<> {
20
public
:
21
explicit
L2TauJetsMerger
(
const
edm::ParameterSet
&);
22
~L2TauJetsMerger
()
override
;
23
void
produce
(
edm::StreamID
,
edm::Event
&,
const
edm::EventSetup
&)
const override
;
24
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
25
26
private
:
27
typedef
std::vector<edm::InputTag>
vtag
;
28
typedef
std::vector<edm::EDGetTokenT<reco::CaloJetCollection> >
vtoken_cjets
;
29
const
vtag
jetSrc
;
30
vtoken_cjets
jetSrc_token
;
31
const
double
mEt_Min
;
32
33
class
SorterByPt
{
34
public
:
35
SorterByPt
() {}
36
~SorterByPt
() {}
37
bool
operator()
(
const
reco::CaloJet
& jet1,
const
reco::CaloJet
& jet2) {
return
jet1.
pt
() > jet2.
pt
(); }
38
};
39
};
40
#endif
L2TauJetsMerger::SorterByPt
Definition:
L2TauJetsMerger.h:33
ConfigurationDescriptions.h
edm::StreamID
Definition:
StreamID.h:30
CaloJetCollection.h
reco::CaloJet
Jets made from CaloTowers.
Definition:
CaloJet.h:27
Handle.h
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition:
LeafCandidate.h:146
L2TauJetsMerger::SorterByPt::operator()
bool operator()(const reco::CaloJet &jet1, const reco::CaloJet &jet2)
Definition:
L2TauJetsMerger.h:37
L2TauJetsMerger::SorterByPt::~SorterByPt
~SorterByPt()
Definition:
L2TauJetsMerger.h:36
L2TauJetsMerger::SorterByPt::SorterByPt
SorterByPt()
Definition:
L2TauJetsMerger.h:35
ParameterSetDescription.h
edm::global::EDProducer
Definition:
EDProducer.h:32
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
L2TauJetsMerger::mEt_Min
const double mEt_Min
Definition:
L2TauJetsMerger.h:31
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
L2TauJetsMerger
Definition:
L2TauJetsMerger.h:19
edm::EventSetup
Definition:
EventSetup.h:57
L2TauJetsMerger::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
L2TauJetsMerger.cc:71
L2TauJetsMerger::L2TauJetsMerger
L2TauJetsMerger(const edm::ParameterSet &)
Definition:
L2TauJetsMerger.cc:12
InputTag.h
L2TauJetsMerger::vtoken_cjets
std::vector< edm::EDGetTokenT< reco::CaloJetCollection > > vtoken_cjets
Definition:
L2TauJetsMerger.h:28
L2TauJetsMerger::jetSrc_token
vtoken_cjets jetSrc_token
Definition:
L2TauJetsMerger.h:30
Frameworkfwd.h
L2TauJetsMerger::vtag
std::vector< edm::InputTag > vtag
Definition:
L2TauJetsMerger.h:27
L2TauJetsMerger::produce
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Definition:
L2TauJetsMerger.cc:24
ParameterSet.h
EDProducer.h
edm::Event
Definition:
Event.h:73
L2TauJetsMerger::jetSrc
const vtag jetSrc
Definition:
L2TauJetsMerger.h:29
L2TauJetsMerger::~L2TauJetsMerger
~L2TauJetsMerger() override
Definition:
L2TauJetsMerger.cc:22
Generated for CMSSW Reference Manual by
1.8.16