CMS 3D CMS Logo

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 
22 
24 
30 
33 
36 
37 namespace egammaisolation {
38 
40  public:
43  : etMin_(par.getParameter<double>("etMin")),
44  conesize_(par.getParameter<double>("extRadius")),
45  scmatch_(par.getParameter<bool>("superClusterMatch")),
47  iC.consumes<reco::BasicClusterCollection>(par.getParameter<edm::InputTag>("basicClusters"))),
49  iC.consumes<reco::SuperClusterCollection>(par.getParameter<edm::InputTag>("superClusters"))) {}
50 
51  ~EgammaEcalExtractor() override;
52 
53  void fillVetos(const edm::Event& ev, const edm::EventSetup& evSetup, const reco::TrackCollection& tracks) override {
54  }
56  const edm::EventSetup& evSetup,
57  const reco::Track& track) const override {
58  throw cms::Exception("Configuration Error")
59  << "This extractor " << (typeid(this).name()) << " is not made for tracks";
60  }
62  const edm::EventSetup& evSetup,
63  const reco::Candidate& c) const override;
64 
65  private:
66  // ---------- member data --------------------------------
67 
68  // Parameters of isolation cone geometry.
69  // Photon case
70  double etMin_;
71  double conesize_;
72  bool scmatch_; // true-> reject basic clusters matched to the superclsuter
73  // false-> fill all basic clusters
76  };
77 
78 } // namespace egammaisolation
79 #endif
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
bool ev
edm::EDGetTokenT< reco::BasicClusterCollection > basicClusterToken_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &tracks) override
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterToken_
EgammaEcalExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &iC)
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
fixed size matrix
HLT enums.
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const override