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:
59  void collect(reco::IsoDeposit& deposit,
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
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
bool ev
void collect(reco::IsoDeposit &deposit, const reco::SuperClusterRef &sc, const CaloSubdetectorGeometry *subdet, const CaloGeometry *caloGeom, const EcalRecHitCollection &hits, const EcalSeverityLevelAlgo *sevLevel, bool barrel) const
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
EgammaRecHitExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHitsToken_