CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgammaEcalExtractor.h
Go to the documentation of this file.
1 #ifndef EgammaIsolationAlgos_EgammaEcalIsolation_h
2 #define EgammaIsolationAlgos_EgammaEcalIsolation_h
3 
4 //*****************************************************************************
5 // File: EgammaEcalExtractor.h
6 // ----------------------------------------------------------------------------
7 // Type: Class implementation header
8 // Package: EgammaIsolationAlgos/EgammaIsolationAlgos
9 // Class: EgammaEcalExtractor
10 // Language: Standard C++
11 // Project: CMS
12 // OrigAuth: Gilles De Lentdecker
13 // Institute: IIHE-ULB
14 //=============================================================================
15 //*****************************************************************************
16 
17 
23 
25 
30 
33 
36 
37 namespace egammaisolation {
38 
40  public:
42  etMin_(par.getParameter<double>("etMin")),
43  conesize_(par.getParameter<double>("extRadius")),
44  scmatch_(par.getParameter<bool>("superClusterMatch")),
45  basicClusterTag_(par.getParameter<edm::InputTag>("basicClusters")),
46  superClusterTag_(par.getParameter<edm::InputTag>("superClusters")) { }
47 
48 
49  virtual ~EgammaEcalExtractor();
50 
51  virtual void fillVetos(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::TrackCollection & tracks) { }
52  virtual reco::IsoDeposit deposit(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::Track & track) const {
53  throw cms::Exception("Configuration Error") << "This extractor " << (typeid(this).name()) << " is not made for tracks";
54  }
55  virtual reco::IsoDeposit deposit(const edm::Event & ev, const edm::EventSetup & evSetup, const reco::Candidate & c) const ;
56 
57  private:
58 
59  // ---------- member data --------------------------------
60 
61  // Parameters of isolation cone geometry.
62  // Photon case
63  double etMin_;
64  double conesize_;
65  bool scmatch_; // true-> reject basic clusters matched to the superclsuter
66  // false-> fill all basic clusters
69  };
70 
71 }
72 #endif
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
EgammaEcalExtractor(const edm::ParameterSet &par)
virtual reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
virtual void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks)
tuple tracks
Definition: testEve_cfg.py:39