Main Page
Namespaces
Classes
Package Documentation
src
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) :
44
EgammaRecHitExtractor
(par, iC) {}
45
EgammaRecHitExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
& iC);
46
~EgammaRecHitExtractor
()
override
;
47
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
)
override
{ }
48
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Track
&
track
)
const override
{
49
throw
cms::Exception
(
"Configuration Error"
) <<
"This extractor "
<< (
typeid
(
this
).
name
()) <<
" is not made for tracks"
;
50
}
51
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Candidate
&
c
)
const override
;
52
53
private
:
54
void
collect
(
reco::IsoDeposit
&deposit,
55
const
reco::SuperClusterRef
&
sc
,
const
CaloSubdetectorGeometry
* subdet,
56
const
CaloGeometry
* caloGeom,
57
const
EcalRecHitCollection
&
hits
,
58
//const EcalChannelStatus* chStatus,
59
const
EcalSeverityLevelAlgo
* sevLevel,
60
bool
barrel
)
const
;
61
62
double
etMin_
;
63
double
energyMin_
;
64
double
extRadius_
;
65
double
intRadius_
;
66
double
intStrip_
;
67
edm::InputTag
barrelEcalHitsTag_
;
68
edm::InputTag
endcapEcalHitsTag_
;
69
edm::EDGetTokenT<EcalRecHitCollection>
barrelEcalHitsToken_
;
70
edm::EDGetTokenT<EcalRecHitCollection>
endcapEcalHitsToken_
;
71
bool
fakeNegativeDeposit_
;
72
bool
tryBoth_
;
73
bool
useEt_
;
74
bool
vetoClustered_
;
75
bool
sameTag_
;
76
//int severityLevelCut_;
77
//float severityRecHitThreshold_;
78
//std::string spIdString_;
79
//float spIdThreshold_;
80
//EcalSeverityLevelAlgo::SpikeId spId_;
81
//std::vector<int> v_chstatus_;
82
std::vector<int>
severitiesexclEB_
;
83
std::vector<int>
severitiesexclEE_
;
84
std::vector<int>
flagsexclEB_
;
85
std::vector<int>
flagsexclEE_
;
86
};
87
}
88
#endif
egammaisolation::EgammaRecHitExtractor::etMin_
double etMin_
Definition:
EgammaRecHitExtractor.h:62
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:46
edm::SortedCollection< EcalRecHit >
Exception
Definition:
hltDiff.cc:292
egammaisolation::EgammaRecHitExtractor::intRadius_
double intRadius_
Definition:
EgammaRecHitExtractor.h:65
Reference_intrackfit_cff.barrel
barrel
Definition:
Reference_intrackfit_cff.py:37
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsTag_
edm::InputTag barrelEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:67
egammaisolation::EgammaRecHitExtractor::flagsexclEE_
std::vector< int > flagsexclEE_
Definition:
EgammaRecHitExtractor.h:85
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:25
edm::Ref< SuperClusterCollection >
egammaisolation::EgammaRecHitExtractor::tryBoth_
bool tryBoth_
Definition:
EgammaRecHitExtractor.h:72
Event.h
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
EventSetup.h
reco::Candidate
Definition:
Candidate.h:28
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:25
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:15
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:166
ParameterSet.h
EcalSeverityLevelAlgo.h
Candidate.h
egammaisolation::EgammaRecHitExtractor::useEt_
bool useEt_
Definition:
EgammaRecHitExtractor.h:73
SuperClusterFwd.h
egammaisolation::EgammaRecHitExtractor::fakeNegativeDeposit_
bool fakeNegativeDeposit_
Definition:
EgammaRecHitExtractor.h:71
egammaisolation::EgammaRecHitExtractor::~EgammaRecHitExtractor
~EgammaRecHitExtractor() override
Definition:
EgammaRecHitExtractor.cc:107
egammaisolation::EgammaRecHitExtractor::vetoClustered_
bool vetoClustered_
Definition:
EgammaRecHitExtractor.h:74
l1t::tracks
Definition:
MicroGMTCancelOutUnit.h:12
ESHandle.h
CaloGeometry
Definition:
CaloGeometry.h:23
egammaisolation::EgammaRecHitExtractor::flagsexclEB_
std::vector< int > flagsexclEB_
Definition:
EgammaRecHitExtractor.h:84
edm::EventSetup
Definition:
EventSetup.h:57
egammaisolation::EgammaRecHitExtractor::energyMin_
double energyMin_
Definition:
EgammaRecHitExtractor.h:63
egammaisolation::EgammaRecHitExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
Definition:
EgammaRecHitExtractor.h:47
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:83
HiIsolationCommonParameters_cff.track
track
Definition:
HiIsolationCommonParameters_cff.py:9
egammaisolation::EgammaRecHitExtractor::intStrip_
double intStrip_
Definition:
EgammaRecHitExtractor.h:66
reco::Track
Definition:
Track.h:28
IsoDeposit.h
IsoDepositExtractor.h
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:70
egammaisolation
Definition:
EgammaRange.h:12
edm::InputTag
Definition:
InputTag.h:15
InputTag.h
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:69
edm::ParameterSet
Definition:
ParameterSet.h:36
EcalChannelStatus.h
dataset.name
name
Definition:
dataset.py:45
edm::Event
Definition:
Event.h:71
Track.h
ConsumesCollector.h
egammaisolation::EgammaRecHitExtractor
Definition:
EgammaRecHitExtractor.h:41
EcalSeverityLevelAlgo
Definition:
EcalSeverityLevelAlgo.h:35
egammaisolation::EgammaRecHitExtractor::sameTag_
bool sameTag_
Definition:
EgammaRecHitExtractor.h:75
egammaisolation::EgammaRecHitExtractor::extRadius_
double extRadius_
Definition:
EgammaRecHitExtractor.h:64
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
egammaisolation::EgammaRecHitExtractor::endcapEcalHitsTag_
edm::InputTag endcapEcalHitsTag_
Definition:
EgammaRecHitExtractor.h:68
egammaisolation::EgammaRecHitExtractor::severitiesexclEB_
std::vector< int > severitiesexclEB_
Definition:
EgammaRecHitExtractor.h:82
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.11