Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-04-27 00:16:57

0001 #ifndef RecoLocalCalo_HGCalRecProducers_HGCalUncalibRecHitRecWorkerWeights_hh
0002 #define RecoLocalCalo_HGCalRecProducers_HGCalUncalibRecHitRecWorkerWeights_hh
0003 
0004 /** \class HGCalUncalibRecHitRecWeightsAlgo
0005  *
0006   *  Template used to produce fast-track HGCAL Reco, weight=1
0007   *
0008   *
0009   *  \author Valeri Andreev
0010   */
0011 
0012 #include "RecoLocalCalo/HGCalRecProducers/interface/HGCalUncalibRecHitWorkerBaseClass.h"
0013 #include "RecoLocalCalo/HGCalRecAlgos/interface/HGCalUncalibRecHitRecWeightsAlgo.h"
0014 #include "DataFormats/HGCDigi/interface/HGCDataFrame.h"
0015 #include "DataFormats/HGCDigi/interface/HGCSample.h"
0016 #include "FWCore/Framework/interface/ESHandle.h"
0017 #include "FWCore/Framework/interface/ConsumesCollector.h"
0018 
0019 namespace edm {
0020   class Event;
0021   class EventSetup;
0022   class ParameterSet;
0023 }  // namespace edm
0024 
0025 class HGCalUncalibRecHitWorkerWeights : public HGCalUncalibRecHitWorkerBaseClass {
0026 public:
0027   HGCalUncalibRecHitWorkerWeights(const edm::ParameterSet&, edm::ConsumesCollector iC);
0028   ~HGCalUncalibRecHitWorkerWeights() override{};
0029 
0030   void set(const edm::EventSetup& es) override;
0031   bool runHGCEE(const HGCalDigiCollection::const_iterator& digi, HGCeeUncalibratedRecHitCollection& result) override;
0032   bool runHGCHEsil(const HGCalDigiCollection::const_iterator& digi,
0033                    HGChefUncalibratedRecHitCollection& result) override;
0034   bool runHGCHEscint(const HGCalDigiCollection::const_iterator& digi,
0035                      HGChebUncalibratedRecHitCollection& result) override;
0036   bool runHGCHFNose(const HGCalDigiCollection::const_iterator& digi,
0037                     HGChfnoseUncalibratedRecHitCollection& result) override;
0038 
0039 protected:
0040   edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> ee_geometry_token_;
0041   edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> hef_geometry_token_;
0042   edm::ESGetToken<HGCalGeometry, IdealGeometryRecord> hfnose_geometry_token_;
0043   HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> uncalibMaker_ee_;
0044   HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> uncalibMaker_hef_;
0045   HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> uncalibMaker_heb_;
0046   HGCalUncalibRecHitRecWeightsAlgo<HGCalDataFrame> uncalibMaker_hfnose_;
0047 };
0048 
0049 #endif