Main Page
Namespaces
Classes
Package Documentation
CommonTools
ParticleFlow
interface
GenericPFJetSelectorDefinition.h
Go to the documentation of this file.
1
#ifndef CommonTools_ParticleFlow_GenericPFJetSelectorDefinition
2
#define CommonTools_ParticleFlow_GenericPFJetSelectorDefinition
3
4
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
DataFormats/JetReco/interface/PFJet.h
"
9
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
10
#include "
CommonTools/ParticleFlow/interface/PFJetSelectorDefinition.h
"
11
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
12
13
namespace
pf2pat
{
14
15
struct
GenericPFJetSelectorDefinition
:
public
PFJetSelectorDefinition
{
16
17
GenericPFJetSelectorDefinition
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
&& iC ) :
18
selector_
( cfg.getParameter<
std
::
string
>(
"cut"
) ) { }
19
20
void
select
(
const
HandleToCollection
&
hc
,
21
const
edm::Event
&
e
,
22
const
edm::EventSetup
&
s
) {
23
selected_
.clear();
24
25
unsigned
key
=0;
26
for
( collection::const_iterator pfc = hc->begin();
27
pfc != hc->end(); ++pfc, ++
key
) {
28
29
if
(
selector_
(*pfc) ) {
30
selected_
.push_back(
reco::PFJet
(*pfc) );
31
reco::CandidatePtr
ptrToMother( hc, key );
32
selected_
.back().setSourceCandidatePtr( ptrToMother );
33
34
}
35
}
36
}
37
38
private
:
39
StringCutObjectSelector<reco::PFJet>
selector_
;
40
};
41
}
42
43
#endif
pf2pat::GenericPFJetSelectorDefinition::GenericPFJetSelectorDefinition
GenericPFJetSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition:
GenericPFJetSelectorDefinition.h:17
PFJetSelectorDefinition.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
StringCutObjectSelector< reco::PFJet >
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
edm::Handle
Definition:
AssociativeIterator.h:47
std
Definition:
JetResolutionObject.h:80
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
crabWrapper.key
key
Definition:
crabWrapper.py:19
reco::PFJet
Jets made from PFObjects.
Definition:
PFJet.h:21
ParameterSet.h
pf2pat::GenericPFJetSelectorDefinition::select
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
Definition:
GenericPFJetSelectorDefinition.h:20
StringCutObjectSelector.h
pf2pat::GenericPFJetSelectorDefinition
Definition:
GenericPFJetSelectorDefinition.h:15
edm::EventSetup
Definition:
EventSetup.h:57
edm::Ptr< Candidate >
looper.cfg
cfg
Definition:
looper.py:297
pf2pat::PFJetSelectorDefinition
Definition:
PFJetSelectorDefinition.h:10
pf2pat::GenericPFJetSelectorDefinition::selector_
StringCutObjectSelector< reco::PFJet > selector_
Definition:
GenericPFJetSelectorDefinition.h:39
pf2pat
Definition:
ElectronIDPFCandidateSelectorDefinition.h:22
pf2pat::PFJetSelectorDefinition::selected_
container selected_
Definition:
PFJetSelectorDefinition.h:34
AnalysisDataFormats_SUSYBSMObjects::hc
susybsm::HSCParticleCollection hc
Definition:
classes.h:25
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
PFCandidateFwd.h
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
PFJet.h
Generated for CMSSW Reference Manual by
1.8.11