CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/RecoLocalCalo/EcalRecProducers/plugins/ESRecHitWorker.h

Go to the documentation of this file.
00001 #ifndef RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitWorkerMaxSample_hh
00002 #define RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitWorkerMaxSample_hh
00003 
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include "RecoLocalCalo/EcalRecProducers/interface/ESRecHitWorkerBaseClass.h"
00006 #include "RecoLocalCalo/EcalRecAlgos/interface/ESRecHitSimAlgo.h"
00007 #include "RecoLocalCalo/EcalRecAlgos/interface/ESRecHitFitAlgo.h"
00008 #include "RecoLocalCalo/EcalRecAlgos/interface/ESRecHitAnalyticAlgo.h"
00009 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00010 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00011 #include "CondFormats/ESObjects/interface/ESChannelStatus.h"
00012 #include "CondFormats/ESObjects/interface/ESGain.h"
00013 #include "CondFormats/ESObjects/interface/ESMIPToGeVConstant.h"
00014 #include "CondFormats/ESObjects/interface/ESTimeSampleWeights.h"
00015 #include "CondFormats/ESObjects/interface/ESPedestals.h"
00016 #include "CondFormats/ESObjects/interface/ESIntercalibConstants.h"
00017 #include "CondFormats/ESObjects/interface/ESRecHitRatioCuts.h"
00018 #include "CondFormats/ESObjects/interface/ESAngleCorrectionFactors.h"
00019 
00020 #include <vector>
00021 
00022 namespace edm {
00023   class ParameterSet;
00024   class EventSetup;
00025 }
00026 
00027 class ESRecHitWorker : public ESRecHitWorkerBaseClass {
00028 
00029  public:
00030 
00031   ESRecHitWorker(const edm::ParameterSet& ps);
00032   ~ESRecHitWorker();
00033   
00034   void set(const edm::EventSetup& es);
00035   bool run(const ESDigiCollection::const_iterator & digi, ESRecHitCollection & result);
00036 
00037  private:
00038 
00039   int recoAlgo_;  
00040   ESRecHitSimAlgo *algoW_;
00041   ESRecHitFitAlgo *algoF_;
00042   ESRecHitAnalyticAlgo *algoA_;
00043 
00044   edm::ESHandle<ESGain> esgain_;
00045   edm::ESHandle<ESMIPToGeVConstant> esMIPToGeV_;
00046   edm::ESHandle<ESTimeSampleWeights> esWeights_;
00047   edm::ESHandle<ESPedestals> esPedestals_;
00048   edm::ESHandle<ESIntercalibConstants> esMIPs_;
00049   edm::ESHandle<ESChannelStatus> esChannelStatus_;
00050   edm::ESHandle<ESRecHitRatioCuts> esRatioCuts_;
00051   edm::ESHandle<ESAngleCorrectionFactors> esAngleCorrFactors_;
00052 
00053 };
00054 #endif