Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:40:55

0001 #ifndef _HCALRECHITRECALIB_H
0002 #define _HCALRECHITRECALIB_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    HcalRecHitRecalib
0007 // Class:      HcalRecHitRecalib
0008 //
0009 /**\class HcalRecHitRecalib HcalRecHitRecalib.cc CalibCalorimetry/CaloRecalibTools.src/HcalRecHitRecalib.cc
0010 
0011  Description: Producer to miscalibrate (calibrated) Hcal RecHit 
0012 
0013  Implementation:
0014      <Notes on implementation>
0015 */
0016 //
0017 // Original Author:  Luca Malgeri
0018 //
0019 //
0020 
0021 // system include files
0022 #include <memory>
0023 
0024 // user include files
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026 #include "FWCore/Framework/interface/stream/EDProducer.h"
0027 
0028 #include "FWCore/Framework/interface/Event.h"
0029 #include "FWCore/Framework/interface/EventSetup.h"
0030 #include "FWCore/Framework/interface/MakerMacros.h"
0031 
0032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0033 #include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h"
0034 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
0035 #include "Geometry/Records/interface/HcalRecNumberingRecord.h"
0036 
0037 class HcalRecHitRecalib : public edm::stream::EDProducer<> {
0038 public:
0039   explicit HcalRecHitRecalib(const edm::ParameterSet &);
0040   ~HcalRecHitRecalib() override;
0041 
0042   void beginRun(const edm::Run &, const edm::EventSetup &) override;
0043   void produce(edm::Event &, const edm::EventSetup &) override;
0044 
0045 private:
0046   const edm::EDGetTokenT<HBHERecHitCollection> tok_hbhe_;
0047   const edm::EDGetTokenT<HORecHitCollection> tok_ho_;
0048   const edm::EDGetTokenT<HFRecHitCollection> tok_hf_;
0049   const edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> topologyToken_;
0050   const std::string recalibHBHEHits_;
0051   const std::string recalibHFHits_;
0052   const std::string recalibHOHits_;
0053 
0054   std::string hcalfile_;
0055   const std::string hcalfileinpath_;
0056 
0057   CaloMiscalibMapHcal mapHcal_;
0058   const double refactor_;
0059   const double refactor_mean_;
0060 };
0061 #endif