Main Page
Namespaces
Classes
Package Documentation
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::etMin_
double etMin_
Definition:
EgammaRecHitExtractor.h:68
EcalSeverityLevelAlgoRcd.h
egammaisolation::EgammaRecHitExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
Definition:
EgammaRecHitExtractor.h:48
EcalChannelStatusRcd.h
reco::IsoDeposit
Definition:
IsoDeposit.h:49
edm::SortedCollection< EcalRecHit >
Exception
Definition:
hltDiff.cc:246
egammaisolation::EgammaRecHitExtractor::intRadius_
double intRadius_
Definition:
EgammaRecHitExtractor.h:71
Reference_intrackfit_cff.barrel
barrel
Definition:
Reference_intrackfit_cff.py:37
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsTag_
edm::InputTag barrelEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:73
egammaisolation::EgammaRecHitExtractor::flagsexclEE_
std::vector< int > flagsexclEE_
Definition:
EgammaRecHitExtractor.h:91
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:24
edm::Ref< SuperClusterCollection >
egammaisolation::EgammaRecHitExtractor::tryBoth_
bool tryBoth_
Definition:
EgammaRecHitExtractor.h:78
Event.h
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
EventSetup.h
reco::Candidate
Definition:
Candidate.h:28
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
edm::EDGetTokenT
Definition:
EDGetToken.h:33
SimDataFormats::CaloAnalysis::sc
SimCluster sc
Definition:
classes.h:8
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
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
ParameterSet.h
EcalSeverityLevelAlgo.h
PDWG_EXOHSCP_cff.tracks
tracks
Definition:
PDWG_EXOHSCP_cff.py:28
Candidate.h
egammaisolation::EgammaRecHitExtractor::useEt_
bool useEt_
Definition:
EgammaRecHitExtractor.h:79
SuperClusterFwd.h
egammaisolation::EgammaRecHitExtractor::fakeNegativeDeposit_
bool fakeNegativeDeposit_
Definition:
EgammaRecHitExtractor.h:77
egammaisolation::EgammaRecHitExtractor::~EgammaRecHitExtractor
~EgammaRecHitExtractor() override
Definition:
EgammaRecHitExtractor.cc:103
egammaisolation::EgammaRecHitExtractor::vetoClustered_
bool vetoClustered_
Definition:
EgammaRecHitExtractor.h:80
ESHandle.h
CaloGeometry
Definition:
CaloGeometry.h:23
egammaisolation::EgammaRecHitExtractor::flagsexclEB_
std::vector< int > flagsexclEB_
Definition:
EgammaRecHitExtractor.h:90
edm::EventSetup
Definition:
EventSetup.h:57
egammaisolation::EgammaRecHitExtractor::energyMin_
double energyMin_
Definition:
EgammaRecHitExtractor.h:69
egammaisolation::EgammaRecHitExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition:
EgammaRecHitExtractor.h:46
egammaisolation::EgammaRecHitExtractor::EgammaRecHitExtractor
EgammaRecHitExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
Definition:
EgammaRecHitExtractor.h:43
CaloGeometry.h
egammaisolation::EgammaRecHitExtractor::severitiesexclEE_
std::vector< int > severitiesexclEE_
Definition:
EgammaRecHitExtractor.h:89
egammaisolation::EgammaRecHitExtractor::intStrip_
double intStrip_
Definition:
EgammaRecHitExtractor.h:72
reco::Track
Definition:
Track.h:27
IsoDeposit.h
IsoDepositExtractor.h
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:76
egammaisolation
Definition:
EgammaRange.h:12
edm::InputTag
Definition:
InputTag.h:15
InputTag.h
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:75
edm::ParameterSet
Definition:
ParameterSet.h:36
EcalChannelStatus.h
edm::Event
Definition:
Event.h:72
Track.h
ConsumesCollector.h
egammaisolation::EgammaRecHitExtractor
Definition:
EgammaRecHitExtractor.h:41
EcalSeverityLevelAlgo
Definition:
EcalSeverityLevelAlgo.h:33
egammaisolation::EgammaRecHitExtractor::sameTag_
bool sameTag_
Definition:
EgammaRecHitExtractor.h:81
egammaisolation::EgammaRecHitExtractor::extRadius_
double extRadius_
Definition:
EgammaRecHitExtractor.h:70
HLT_2018_cff.track
track
Definition:
HLT_2018_cff.py:10339
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsTag_
edm::InputTag endcapEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:74
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
egammaisolation::EgammaRecHitExtractor::severitiesexclEB_
std::vector< int > severitiesexclEB_
Definition:
EgammaRecHitExtractor.h:88
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.11