CMS 3D CMS Logo

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
19 
25 
32 
35 
38 
39 namespace egammaisolation {
40 
42  public:
45  ~EgammaRecHitExtractor() override;
46  void fillVetos(const edm::Event& ev, const edm::EventSetup& evSetup, const reco::TrackCollection& tracks) override {
47  }
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  }
55  const edm::EventSetup& evSetup,
56  const reco::Candidate& c) const override;
57 
58  private:
60  const reco::SuperClusterRef& sc,
61  const CaloSubdetectorGeometry* subdet,
62  const CaloGeometry* caloGeom,
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_;
78  bool tryBoth_;
79  bool useEt_;
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:11779
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