Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
18
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
19
#include "
DataFormats/EgammaReco/interface/BasicCluster.h
"
20
#include "
DataFormats/EgammaReco/interface/BasicClusterFwd.h
"
21
#include "
DataFormats/RecoCandidate/interface/RecoCandidate.h
"
22
#include "
DataFormats/Candidate/interface/Candidate.h
"
23
24
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
25
26
#include "
FWCore/Framework/interface/Event.h
"
27
#include "
FWCore/Framework/interface/EventSetup.h
"
28
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
29
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
30
#include "
FWCore/Utilities/interface/InputTag.h
"
31
32
#include "
DataFormats/TrackReco/interface/Track.h
"
33
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
34
35
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
36
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
37
38
namespace
egammaisolation {
39
40
class
EgammaEcalExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
41
public
:
42
EgammaEcalExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC) :
43
EgammaEcalExtractor
(par, iC) {}
44
EgammaEcalExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
& iC) :
45
etMin_
(par.getParameter<double>(
"etMin"
)),
46
conesize_
(par.getParameter<double>(
"extRadius"
)),
47
scmatch_
(par.getParameter<bool>(
"superClusterMatch"
)),
48
basicClusterToken_
(iC.consumes<
reco
::
BasicClusterCollection
>(par.getParameter<edm::
InputTag
>(
"basicClusters"
))),
49
superClusterToken_
(iC.consumes<
reco
::
SuperClusterCollection
>(par.getParameter<edm::
InputTag
>(
"superClusters"
))) { }
50
51
52
virtual
~EgammaEcalExtractor
();
53
54
virtual
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
) { }
55
virtual
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Track
& track)
const
{
56
throw
cms::Exception
(
"Configuration Error"
) <<
"This extractor "
<< (
typeid
(
this
).
name
()) <<
" is not made for tracks"
;
57
}
58
virtual
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Candidate
&
c
)
const
;
59
60
private
:
61
62
// ---------- member data --------------------------------
63
64
// Parameters of isolation cone geometry.
65
// Photon case
66
double
etMin_
;
67
double
conesize_
;
68
bool
scmatch_
;
// true-> reject basic clusters matched to the superclsuter
69
// false-> fill all basic clusters
70
edm::EDGetTokenT<reco::BasicClusterCollection>
basicClusterToken_
;
71
edm::EDGetTokenT<reco::SuperClusterCollection>
superClusterToken_
;
72
};
73
74
}
75
#endif
MessageLogger.h
egammaisolation::EgammaEcalExtractor::EgammaEcalExtractor
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
Definition:
EgammaEcalExtractor.h:42
reco::IsoDeposit
Definition:
IsoDeposit.h:46
Event.h
EventSetup.h
reco::Candidate
Definition:
Candidate.h:28
egammaisolation::EgammaEcalExtractor::etMin_
double etMin_
Definition:
EgammaEcalExtractor.h:66
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:25
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:13
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:90
TrackFwd.h
egammaisolation::EgammaEcalExtractor
Definition:
EgammaEcalExtractor.h:40
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
HLT_25ns14e33_v1_cff.InputTag
tuple InputTag
Definition:
HLT_25ns14e33_v1_cff.py:45333
edm::EDGetTokenT< reco::BasicClusterCollection >
ParameterSet.h
Candidate.h
egammaisolation::EgammaEcalExtractor::basicClusterToken_
edm::EDGetTokenT< reco::BasicClusterCollection > basicClusterToken_
Definition:
EgammaEcalExtractor.h:70
reco::SuperClusterCollection
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
Definition:
SuperClusterFwd.h:9
egammaisolation::EgammaEcalExtractor::deposit
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
EgammaEcalExtractor.h:55
egammaisolation::EgammaEcalExtractor::fillVetos
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
Definition:
EgammaEcalExtractor.h:54
edm::EventSetup
Definition:
EventSetup.h:44
BasicClusterFwd.h
egammaisolation::EgammaEcalExtractor::superClusterToken_
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterToken_
Definition:
EgammaEcalExtractor.h:71
egammaisolation::EgammaEcalExtractor::scmatch_
bool scmatch_
Definition:
EgammaEcalExtractor.h:68
edm::hlt::Exception
error
Definition:
HLTenums.h:21
testEve_cfg.tracks
tuple tracks
Definition:
testEve_cfg.py:39
egammaisolation::EgammaEcalExtractor::EgammaEcalExtractor
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &iC)
Definition:
EgammaEcalExtractor.h:44
reco::BasicClusterCollection
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
Definition:
BasicClusterFwd.h:27
reco::Track
Definition:
Track.h:28
IsoDeposit.h
IsoDepositExtractor.h
InputTag.h
egammaisolation::EgammaEcalExtractor::conesize_
double conesize_
Definition:
EgammaEcalExtractor.h:67
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:59
Track.h
BasicCluster.h
ConsumesCollector.h
RecoCandidate.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:32
egammaisolation::EgammaEcalExtractor::~EgammaEcalExtractor
virtual ~EgammaEcalExtractor()
Definition:
EgammaEcalExtractor.cc:23
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.5