CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
20 
25 
32 
35 
38 
39 namespace egammaisolation {
40 
42  public:
44  virtual ~EgammaRecHitExtractor() ;
45  virtual void fillVetos(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::TrackCollection & tracks) { }
46  virtual reco::IsoDeposit deposit(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::Track & track) const {
47  throw cms::Exception("Configuration Error") << "This extractor " << (typeid(this).name()) << " is not made for tracks";
48  }
49  virtual reco::IsoDeposit deposit(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::Candidate & c) const ;
50 
51  private:
53  const reco::SuperClusterRef& sc, const CaloSubdetectorGeometry* subdet,
54  const CaloGeometry* caloGeom,
55  const EcalRecHitCollection &hits,
56  const EcalChannelStatus* chStatus,
57  const EcalSeverityLevelAlgo* sevLevel,
58  bool barrel) const;
59 
60  double etMin_ ;
61  double energyMin_ ;
62  double extRadius_ ;
63  double intRadius_ ;
64  double intStrip_ ;
68  bool tryBoth_;
69  bool useEt_;
71  bool sameTag_;
73  //float severityRecHitThreshold_;
74  //std::string spIdString_;
75  //float spIdThreshold_;
76  //EcalSeverityLevelAlgo::SpikeId spId_;
77  std::vector<int> v_chstatus_;
78 
79 
80  };
81 }
82 #endif
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
EgammaRecHitExtractor(const edm::ParameterSet &par)
tuple tracks
Definition: testEve_cfg.py:39
void collect(reco::IsoDeposit &deposit, const reco::SuperClusterRef &sc, const CaloSubdetectorGeometry *subdet, const CaloGeometry *caloGeom, const EcalRecHitCollection &hits, const EcalChannelStatus *chStatus, const EcalSeverityLevelAlgo *sevLevel, bool barrel) const
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const