RecoParticleFlow
PFClusterProducer
plugins
PFClusterTimeSelector.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_PFClusterProducer_PFClusterTimeSelector_h_
2
#define RecoParticleFlow_PFClusterProducer_PFClusterTimeSelector_h_
3
4
// system include files
5
#include <memory>
6
#include <vector>
7
8
// user include files
9
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
10
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
11
#include "
FWCore/Framework/interface/Event.h
"
12
#include "
FWCore/Framework/interface/MakerMacros.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
#include "
DataFormats/ParticleFlowReco/interface/PFCluster.h
"
16
#include "
DataFormats/ParticleFlowReco/interface/PFClusterFwd.h
"
17
18
class
PFClusterTimeSelector
:
public
edm::stream::EDProducer
<> {
19
public
:
20
explicit
PFClusterTimeSelector
(
const
edm::ParameterSet
&);
21
~PFClusterTimeSelector
()
override
;
22
23
void
beginRun
(
const
edm::Run
&
run
,
const
edm::EventSetup
& es)
override
;
24
25
void
produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
override
;
26
27
protected
:
28
struct
CutInfo
{
29
double
depth
;
30
double
minE
;
31
double
maxE
;
32
double
minTime
;
33
double
maxTime
;
34
bool
endcap
;
35
};
36
37
// ----------access to event data
38
edm::EDGetTokenT<reco::PFClusterCollection>
clusters_
;
39
std::vector<CutInfo>
cutInfo_
;
40
};
41
42
#include "
FWCore/Framework/interface/MakerMacros.h
"
43
DEFINE_FWK_MODULE
(
PFClusterTimeSelector
);
44
45
#endif
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< reco::PFClusterCollection >
PFClusterTimeSelector::PFClusterTimeSelector
PFClusterTimeSelector(const edm::ParameterSet &)
Definition:
PFClusterTimeSelector.cc:11
EDProducer.h
MakerMacros.h
PFClusterTimeSelector::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
PFClusterTimeSelector.cc:29
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
PFClusterTimeSelector
Definition:
PFClusterTimeSelector.h:18
PFCluster.h
PFClusterTimeSelector::cutInfo_
std::vector< CutInfo > cutInfo_
Definition:
PFClusterTimeSelector.h:39
PFClusterTimeSelector::CutInfo::minE
double minE
Definition:
PFClusterTimeSelector.h:30
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
PFClusterTimeSelector::CutInfo::endcap
bool endcap
Definition:
PFClusterTimeSelector.h:34
PFClusterTimeSelector::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
Definition:
PFClusterTimeSelector.cc:66
PFClusterTimeSelector::clusters_
edm::EDGetTokenT< reco::PFClusterCollection > clusters_
Definition:
PFClusterTimeSelector.h:38
iEvent
int iEvent
Definition:
GenABIO.cc:224
PFClusterFwd.h
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:58
PFClusterTimeSelector::CutInfo::minTime
double minTime
Definition:
PFClusterTimeSelector.h:32
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
Frameworkfwd.h
PFClusterTimeSelector::~PFClusterTimeSelector
~PFClusterTimeSelector() override
PFClusterTimeSelector::CutInfo
Definition:
PFClusterTimeSelector.h:28
PFClusterTimeSelector::CutInfo::maxE
double maxE
Definition:
PFClusterTimeSelector.h:31
PFClusterTimeSelector::CutInfo::depth
double depth
Definition:
PFClusterTimeSelector.h:29
ParameterSet.h
edm::Event
Definition:
Event.h:73
PFClusterTimeSelector::CutInfo::maxTime
double maxTime
Definition:
PFClusterTimeSelector.h:33
Generated for CMSSW Reference Manual by
1.8.16