Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:00:11

0001 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalUncalibRecHitProducer_hh
0002 #define RecoLocalCalo_HGCalRecProducers_HGCalUncalibRecHitProducer_hh
0003 
0004 #include "FWCore/Framework/interface/stream/EDProducer.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/Framework/interface/EventSetup.h"
0008 
0009 #include "DataFormats/HGCDigi/interface/HGCDataFrame.h"
0010 
0011 #include "RecoLocalCalo/HGCalRecProducers/interface/HGCalUncalibRecHitWorkerBaseClass.h"
0012 
0013 class HGCalUncalibRecHitProducer : public edm::stream::EDProducer<> {
0014 public:
0015   explicit HGCalUncalibRecHitProducer(const edm::ParameterSet& ps);
0016   ~HGCalUncalibRecHitProducer() override;
0017   void produce(edm::Event& evt, const edm::EventSetup& es) override;
0018 
0019 private:
0020   const edm::EDGetTokenT<HGCalDigiCollection> eeDigiCollection_;      // collection of HGCEE digis
0021   const edm::EDGetTokenT<HGCalDigiCollection> hefDigiCollection_;     // collection of HGCHEF digis
0022   const edm::EDGetTokenT<HGCalDigiCollection> hebDigiCollection_;     // collection of HGCHEB digis
0023   const edm::EDGetTokenT<HGCalDigiCollection> hfnoseDigiCollection_;  // collection of HGCHFNose digis
0024 
0025   const edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> ee_geometry_token_;
0026   const edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> hef_geometry_token_;
0027   const edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> heb_geometry_token_;
0028   const edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> hfnose_geometry_token_;
0029 
0030   const std::string eeHitCollection_;      // instance name of HGCEE collection of hits
0031   const std::string hefHitCollection_;     // instance name of HGCHEF collection of hits
0032   const std::string hebHitCollection_;     // instance name of HGCHEB collection of hits
0033   const std::string hfnoseHitCollection_;  // instance name of HGCHFnose collection of hits
0034 
0035   std::unique_ptr<HGCalUncalibRecHitWorkerBaseClass> worker_;
0036 };
0037 #endif