RecoEgamma
EgammaIsolationAlgos
plugins
EgammaRecHitExtractor.h
Go to the documentation of this file.
1
#ifndef EgammaIsolationProducers_EgammaRecHitExtractor_h
2
#define EgammaIsolationProducers_EgammaRecHitExtractor_h
3
//*****************************************************************************
4
// File: EgammaRecHitExtractor.h
5
// ----------------------------------------------------------------------------
6
// OrigAuth: Matthias Mozer, adapted from EgammaHcalExtractor by S. Harper
7
// Institute: IIHE-VUB, RAL
8
//=============================================================================
9
//*****************************************************************************
10
11
//C++ includes
12
#include <vector>
13
#include <functional>
14
15
//CMSSW includes
16
#include "
FWCore/Framework/interface/ESHandle.h
"
17
#include "
DataFormats/Candidate/interface/Candidate.h
"
18
#include "
Geometry/CaloGeometry/interface/CaloGeometry.h
"
19
20
#include "
FWCore/Framework/interface/Event.h
"
21
#include "
FWCore/Framework/interface/EventSetup.h
"
22
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
23
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
24
#include "
FWCore/Utilities/interface/InputTag.h
"
25
26
#include "
DataFormats/TrackReco/interface/Track.h
"
27
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
28
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
29
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
30
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
31
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
32
33
#include "
CondFormats/EcalObjects/interface/EcalChannelStatus.h
"
34
#include "
CondFormats/DataRecord/interface/EcalChannelStatusRcd.h
"
35
36
#include "
RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgo.h
"
37
#include "
RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgoRcd.h
"
38
39
namespace
egammaisolation
{
40
41
class
EgammaRecHitExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
42
public
:
43
EgammaRecHitExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC) :
EgammaRecHitExtractor
(par, iC) {}
44
EgammaRecHitExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
& iC);
45
~EgammaRecHitExtractor
()
override
;
46
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
)
override
{
47
}
48
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
49
const
edm::EventSetup
& evSetup,
50
const
reco::Track
&
track
)
const override
{
51
throw
cms::Exception
(
"Configuration Error"
)
52
<<
"This extractor "
<< (
typeid
(
this
).
name
()) <<
" is not made for tracks"
;
53
}
54
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
55
const
edm::EventSetup
& evSetup,
56
const
reco::Candidate
&
c
)
const override
;
57
58
private
:
59
void
collect
(
reco::IsoDeposit
&
deposit
,
60
const
reco::SuperClusterRef
& sc,
61
const
CaloSubdetectorGeometry
* subdet,
62
const
CaloGeometry
* caloGeom,
63
const
EcalRecHitCollection
&
hits
,
64
//const EcalChannelStatus* chStatus,
65
const
EcalSeverityLevelAlgo
* sevLevel,
66
bool
barrel
)
const
;
67
68
double
etMin_
;
69
double
energyMin_
;
70
double
extRadius_
;
71
double
intRadius_
;
72
double
intStrip_
;
73
edm::InputTag
barrelEcalHitsTag_
;
74
edm::InputTag
endcapEcalHitsTag_
;
75
edm::EDGetTokenT<EcalRecHitCollection>
barrelEcalHitsToken_
;
76
edm::EDGetTokenT<EcalRecHitCollection>
endcapEcalHitsToken_
;
77
bool
fakeNegativeDeposit_
;
78
bool
tryBoth_
;
79
bool
useEt_
;
80
bool
vetoClustered_
;
81
bool
sameTag_
;
82
//int severityLevelCut_;
83
//float severityRecHitThreshold_;
84
//std::string spIdString_;
85
//float spIdThreshold_;
86
//EcalSeverityLevelAlgo::SpikeId spId_;
87
//std::vector<int> v_chstatus_;
88
std::vector<int>
severitiesexclEB_
;
89
std::vector<int>
severitiesexclEE_
;
90
std::vector<int>
flagsexclEB_
;
91
std::vector<int>
flagsexclEE_
;
92
};
93
}
// namespace egammaisolation
94
#endif
egammaisolation::EgammaRecHitExtractor::tryBoth_
bool tryBoth_
Definition:
EgammaRecHitExtractor.h:78
EcalSeverityLevelAlgo
Definition:
EcalSeverityLevelAlgo.h:33
egammaisolation::EgammaRecHitExtractor::extRadius_
double extRadius_
Definition:
EgammaRecHitExtractor.h:70
PDWG_EXOHSCP_cff.tracks
tracks
Definition:
PDWG_EXOHSCP_cff.py:28
HLT_FULL_cff.track
track
Definition:
HLT_FULL_cff.py:11776
Reference_intrackfit_cff.barrel
list barrel
Definition:
Reference_intrackfit_cff.py:37
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
ESHandle.h
egammaisolation
Definition:
EgammaTrackSelector.h:11
EcalSeverityLevelAlgoRcd.h
edm::EDGetTokenT
Definition:
EDGetToken.h:33
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsTag_
edm::InputTag endcapEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:74
egammaisolation::EgammaRecHitExtractor::severitiesexclEB_
std::vector< int > severitiesexclEB_
Definition:
EgammaRecHitExtractor.h:88
edm::SortedCollection< EcalRecHit >
egammaisolation::EgammaRecHitExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
Definition:
EgammaRecHitExtractor.h:48
egammaisolation::EgammaRecHitExtractor::~EgammaRecHitExtractor
~EgammaRecHitExtractor() override
Definition:
EgammaRecHitExtractor.cc:103
egammaisolation::EgammaRecHitExtractor::intRadius_
double intRadius_
Definition:
EgammaRecHitExtractor.h:71
edm::Ref< SuperClusterCollection >
egammaisolation::EgammaRecHitExtractor
Definition:
EgammaRecHitExtractor.h:41
egammaisolation::EgammaRecHitExtractor::fakeNegativeDeposit_
bool fakeNegativeDeposit_
Definition:
EgammaRecHitExtractor.h:77
CaloGeometry
Definition:
CaloGeometry.h:21
Track.h
TrackFwd.h
egammaisolation::EgammaRecHitExtractor::vetoClustered_
bool vetoClustered_
Definition:
EgammaRecHitExtractor.h:80
reco::Track
Definition:
Track.h:27
egammaisolation::EgammaRecHitExtractor::flagsexclEB_
std::vector< int > flagsexclEB_
Definition:
EgammaRecHitExtractor.h:90
EcalSeverityLevelAlgo.h
IsoDeposit.h
IsoDepositExtractor.h
egammaisolation::EgammaRecHitExtractor::useEt_
bool useEt_
Definition:
EgammaRecHitExtractor.h:79
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
egammaisolation::EgammaRecHitExtractor::EgammaRecHitExtractor
EgammaRecHitExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
Definition:
EgammaRecHitExtractor.h:43
egammaisolation::EgammaRecHitExtractor::intStrip_
double intStrip_
Definition:
EgammaRecHitExtractor.h:72
edm::EventSetup
Definition:
EventSetup.h:57
egammaisolation::EgammaRecHitExtractor::energyMin_
double energyMin_
Definition:
EgammaRecHitExtractor.h:69
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
egammaisolation::EgammaRecHitExtractor::collect
void collect(reco::IsoDeposit &deposit, const reco::SuperClusterRef &sc, const CaloSubdetectorGeometry *subdet, const CaloGeometry *caloGeom, const EcalRecHitCollection &hits, const EcalSeverityLevelAlgo *sevLevel, bool barrel) const
Definition:
EgammaRecHitExtractor.cc:162
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:76
InputTag.h
reco::Candidate
Definition:
Candidate.h:27
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:75
SuperClusterFwd.h
SuperCluster.h
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
Exception
Definition:
hltDiff.cc:246
CaloGeometry.h
egammaisolation::EgammaRecHitExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition:
EgammaRecHitExtractor.h:46
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
EventSetup.h
reco::IsoDeposit
Definition:
IsoDeposit.h:49
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:22
egammaisolation::EgammaRecHitExtractor::severitiesexclEE_
std::vector< int > severitiesexclEE_
Definition:
EgammaRecHitExtractor.h:89
ConsumesCollector.h
Candidate.h
ParameterSet.h
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:24
egammaisolation::EgammaRecHitExtractor::sameTag_
bool sameTag_
Definition:
EgammaRecHitExtractor.h:81
egammaisolation::EgammaRecHitExtractor::etMin_
double etMin_
Definition:
EgammaRecHitExtractor.h:68
edm::Event
Definition:
Event.h:73
EcalChannelStatus.h
edm::InputTag
Definition:
InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsTag_
edm::InputTag barrelEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:73
EcalChannelStatusRcd.h
egammaisolation::EgammaRecHitExtractor::flagsexclEE_
std::vector< int > flagsexclEE_
Definition:
EgammaRecHitExtractor.h:91
Generated for CMSSW Reference Manual by
1.8.16