Main Page
Namespaces
Classes
Package Documentation
RecoEgamma
EgammaIsolationAlgos
plugins
EgammaEcalExtractor.h
Go to the documentation of this file.
1
#ifndef EgammaIsolationAlgos_EgammaEcalIsolation_h
2
#define EgammaIsolationAlgos_EgammaEcalIsolation_h
3
4
//*****************************************************************************
5
// File: EgammaEcalExtractor.h
6
// ----------------------------------------------------------------------------
7
// Type: Class implementation header
8
// Package: EgammaIsolationAlgos/EgammaIsolationAlgos
9
// Class: EgammaEcalExtractor
10
// Language: Standard C++
11
// Project: CMS
12
// OrigAuth: Gilles De Lentdecker
13
// Institute: IIHE-ULB
14
//=============================================================================
15
//*****************************************************************************
16
17
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
18
#include "
DataFormats/EgammaReco/interface/BasicCluster.h
"
19
#include "
DataFormats/EgammaReco/interface/BasicClusterFwd.h
"
20
#include "
DataFormats/RecoCandidate/interface/RecoCandidate.h
"
21
#include "
DataFormats/Candidate/interface/Candidate.h
"
22
23
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
24
25
#include "
FWCore/Framework/interface/Event.h
"
26
#include "
FWCore/Framework/interface/EventSetup.h
"
27
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
28
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
29
#include "
FWCore/Utilities/interface/InputTag.h
"
30
31
#include "
DataFormats/TrackReco/interface/Track.h
"
32
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
33
34
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
35
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
36
37
namespace
egammaisolation
{
38
39
class
EgammaEcalExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
40
public
:
41
EgammaEcalExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC) :
EgammaEcalExtractor
(par, iC) {}
42
EgammaEcalExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
& iC)
43
:
etMin_
(par.getParameter<double>(
"etMin"
)),
44
conesize_
(par.getParameter<double>(
"extRadius"
)),
45
scmatch_
(par.getParameter<
bool
>(
"superClusterMatch"
)),
46
basicClusterToken_
(
47
iC.consumes<
reco
::
BasicClusterCollection
>(par.getParameter<
edm
::
InputTag
>(
"basicClusters"
))),
48
superClusterToken_
(
49
iC.consumes<
reco
::
SuperClusterCollection
>(par.getParameter<
edm
::
InputTag
>(
"superClusters"
))) {}
50
51
~EgammaEcalExtractor
()
override
;
52
53
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
)
override
{
54
}
55
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
56
const
edm::EventSetup
& evSetup,
57
const
reco::Track
&
track
)
const override
{
58
throw
cms::Exception
(
"Configuration Error"
)
59
<<
"This extractor "
<< (
typeid
(
this
).
name
()) <<
" is not made for tracks"
;
60
}
61
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
62
const
edm::EventSetup
& evSetup,
63
const
reco::Candidate
&
c
)
const override
;
64
65
private
:
66
// ---------- member data --------------------------------
67
68
// Parameters of isolation cone geometry.
69
// Photon case
70
double
etMin_
;
71
double
conesize_
;
72
bool
scmatch_
;
// true-> reject basic clusters matched to the superclsuter
73
// false-> fill all basic clusters
74
edm::EDGetTokenT<reco::BasicClusterCollection>
basicClusterToken_
;
75
edm::EDGetTokenT<reco::SuperClusterCollection>
superClusterToken_
;
76
};
77
78
}
// namespace egammaisolation
79
#endif
HLT_2018_cff.InputTag
InputTag
Definition:
HLT_2018_cff.py:78913
MessageLogger.h
egammaisolation::EgammaEcalExtractor::EgammaEcalExtractor
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
Definition:
EgammaEcalExtractor.h:41
reco::IsoDeposit
Definition:
IsoDeposit.h:49
Exception
Definition:
hltDiff.cc:246
Event.h
EventSetup.h
reco::Candidate
Definition:
Candidate.h:28
egammaisolation::EgammaEcalExtractor::etMin_
double etMin_
Definition:
EgammaEcalExtractor.h:70
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:24
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrackFwd.h
egammaisolation::EgammaEcalExtractor
Definition:
EgammaEcalExtractor.h:39
edm::EDGetTokenT< reco::BasicClusterCollection >
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
ParameterSet.h
PDWG_EXOHSCP_cff.tracks
tracks
Definition:
PDWG_EXOHSCP_cff.py:28
Candidate.h
egammaisolation::EgammaEcalExtractor::basicClusterToken_
edm::EDGetTokenT< reco::BasicClusterCollection > basicClusterToken_
Definition:
EgammaEcalExtractor.h:74
reco::SuperClusterCollection
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
Definition:
SuperClusterFwd.h:9
egammaisolation::EgammaEcalExtractor::~EgammaEcalExtractor
~EgammaEcalExtractor() override
Definition:
EgammaEcalExtractor.cc:23
edm::EventSetup
Definition:
EventSetup.h:57
BasicClusterFwd.h
egammaisolation::EgammaEcalExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition:
EgammaEcalExtractor.h:53
egammaisolation::EgammaEcalExtractor::superClusterToken_
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterToken_
Definition:
EgammaEcalExtractor.h:75
egammaisolation::EgammaEcalExtractor::scmatch_
bool scmatch_
Definition:
EgammaEcalExtractor.h:72
electrons_cff.bool
bool
Definition:
electrons_cff.py:371
egammaisolation::EgammaEcalExtractor::EgammaEcalExtractor
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &iC)
Definition:
EgammaEcalExtractor.h:42
reco::BasicClusterCollection
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
Definition:
BasicClusterFwd.h:27
reco::Track
Definition:
Track.h:27
IsoDeposit.h
IsoDepositExtractor.h
egammaisolation
Definition:
EgammaRange.h:12
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
edm
HLT enums.
Definition:
AlignableModifier.h:19
InputTag.h
egammaisolation::EgammaEcalExtractor::conesize_
double conesize_
Definition:
EgammaEcalExtractor.h:71
edm::ParameterSet
Definition:
ParameterSet.h:36
egammaisolation::EgammaEcalExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
Definition:
EgammaEcalExtractor.h:55
edm::Event
Definition:
Event.h:72
Track.h
BasicCluster.h
ConsumesCollector.h
RecoCandidate.h
HLT_2018_cff.track
track
Definition:
HLT_2018_cff.py:10339
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.11