CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/RecoEgamma/ElectronIdentification/src/ElectronIDAlgo.cc

Go to the documentation of this file.
00001 #include "RecoEgamma/ElectronIdentification/interface/ElectronIDAlgo.h"
00002 #include "DataFormats/EgammaReco/interface/BasicCluster.h"
00003 #include "DataFormats/EgammaReco/interface/BasicClusterShapeAssociation.h"
00004 
00005 void ElectronIDAlgo::baseSetup(const edm::ParameterSet& conf) {
00006   reducedBarrelRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedBarrelRecHitCollection");
00007   reducedEndcapRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedEndcapRecHitCollection");
00008 }
00009 
00010 EcalClusterLazyTools ElectronIDAlgo::getClusterShape(const edm::Event& ev, 
00011                                                      const edm::EventSetup& es) 
00012 {
00013 
00014   edm::Handle< EcalRecHitCollection > pEBRecHits;
00015   ev.getByLabel( reducedBarrelRecHitCollection_, pEBRecHits );
00016 
00017   edm::Handle< EcalRecHitCollection > pEERecHits;
00018   ev.getByLabel( reducedEndcapRecHitCollection_, pEERecHits );
00019 
00020   EcalClusterLazyTools lazyTools( ev, es, reducedBarrelRecHitCollection_, reducedEndcapRecHitCollection_ ) ;
00021   return lazyTools ;
00022 
00023 }