CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoHI/HiEgammaAlgos/interface/RxCalculator.h

Go to the documentation of this file.
00001 #ifndef RxCalculator_h
00002 #define RxCalculator_h
00003 
00004 #include "FWCore/Framework/interface/Event.h"
00005 #include "FWCore/Framework/interface/EventSetup.h"
00006 #include "FWCore/Framework/interface/ESHandle.h"
00007 
00008 #include "FWCore/Utilities/interface/InputTag.h"
00009 
00010 #include "DataFormats/EgammaReco/interface/BasicClusterFwd.h"
00011 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
00012 
00013 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00014 #include "Geometry/Records/interface/IdealGeometryRecord.h"
00015 
00016 #include "RecoCaloTools/MetaCollections/interface/CaloRecHitMetaCollections.h"
00017 
00018 
00019 class RxCalculator
00020 {
00021   public:
00022   
00023    RxCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::InputTag hbheLabel, edm::InputTag hfLabel, edm::InputTag hoLabel) ;
00024   
00025    double getRx (const reco::SuperClusterRef clus, double i, double threshold);
00026    double getRFx(const reco::SuperClusterRef clus, double i, double threshold);
00027    double getROx(const reco::SuperClusterRef clus, double i, double threshold);
00028    double getCRx(const reco::SuperClusterRef clus, double i, double threshold); // background subtracted Rx
00029 
00030   private:
00031    
00032    const HBHERecHitCollection         *fHBHERecHits_;
00033    const HORecHitCollection           *fHORecHits_;
00034    const HFRecHitCollection           *fHFRecHits_;
00035    const CaloGeometry                 *geometry_;
00036 };
00037 
00038 #endif