Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
virtual
~EgammaRecHitExtractor
() ;
47
virtual
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
tracks
) { }
48
virtual
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Track
& track)
const
{
49
throw
cms::Exception
(
"Configuration Error"
) <<
"This extractor "
<< (
typeid
(
this
).
name
()) <<
" is not made for tracks"
;
50
}
51
virtual
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::Candidate
&
c
)
const
;
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
EcalChannelStatusRcd.h
reco::IsoDeposit
Definition:
IsoDeposit.h:46
edm::SortedCollection< EcalRecHit >
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:26
edm::Ref< SuperClusterCollection >
egammaisolation::EgammaRecHitExtractor::tryBoth_
bool tryBoth_
Definition:
EgammaRecHitExtractor.h:72
Event.h
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:13
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:90
TrackFwd.h
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
edm::EDGetTokenT
Definition:
EDGetToken.h:32
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
egammaisolation::EgammaRecHitExtractor::fillVetos
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
Definition:
EgammaRecHitExtractor.h:47
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::vetoClustered_
bool vetoClustered_
Definition:
EgammaRecHitExtractor.h:74
ESHandle.h
CaloGeometry
Definition:
CaloGeometry.h:22
egammaisolation::EgammaRecHitExtractor::flagsexclEB_
std::vector< int > flagsexclEB_
Definition:
EgammaRecHitExtractor.h:84
edm::EventSetup
Definition:
EventSetup.h:44
egammaisolation::EgammaRecHitExtractor::energyMin_
double energyMin_
Definition:
EgammaRecHitExtractor.h:63
edm::hlt::Exception
error
Definition:
HLTenums.h:21
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
testEve_cfg.tracks
tuple tracks
Definition:
testEve_cfg.py:39
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
edm::InputTag
Definition:
InputTag.h:18
egammaisolation::EgammaRecHitExtractor::~EgammaRecHitExtractor
virtual ~EgammaRecHitExtractor()
Definition:
EgammaRecHitExtractor.cc:107
InputTag.h
egammaisolation::EgammaRecHitExtractor::barrelEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHitsToken_
Definition:
EgammaRecHitExtractor.h:69
edm::ParameterSet
Definition:
ParameterSet.h:36
egammaisolation::EgammaRecHitExtractor::deposit
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
EgammaRecHitExtractor.h:48
EcalChannelStatus.h
edm::Event
Definition:
Event.h:61
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:38
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.5