Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:54:02

0001 #ifndef JetMETCorrections_Type1MET_Type0PFMETcorrInputProducer_h
0002 #define JetMETCorrections_Type1MET_Type0PFMETcorrInputProducer_h
0003 
0004 /** \class Type0PFMETcorrInputProducer
0005  *
0006  * Compute Type 0 (PF)MET corrections
0007  * ( https://indico.cern.ch/getFile.py/access?contribId=4&resId=1&materialId=slides&confId=161159 )
0008  *
0009  * \author Christian Veelken, LLR
0010  *
0011  *
0012  *
0013  */
0014 
0015 #include "FWCore/Framework/interface/stream/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "FWCore/Framework/interface/EventSetup.h"
0018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0019 #include "FWCore/Utilities/interface/InputTag.h"
0020 
0021 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0022 
0023 #include "CommonTools/RecoUtils/interface/PFCand_AssoMapAlgos.h"
0024 
0025 #include <TFormula.h>
0026 
0027 #include <string>
0028 
0029 class Type0PFMETcorrInputProducer : public edm::stream::EDProducer<> {
0030 public:
0031   explicit Type0PFMETcorrInputProducer(const edm::ParameterSet&);
0032   ~Type0PFMETcorrInputProducer() override;
0033 
0034 private:
0035   void produce(edm::Event&, const edm::EventSetup&) override;
0036 
0037   std::string moduleLabel_;
0038 
0039   edm::EDGetTokenT<reco::VertexCollection> hardScatterVertexToken_;
0040   edm::EDGetTokenT<PFCandToVertexAssMap> pfCandidateToVertexAssociationsToken_;
0041 
0042   TFormula* correction_;
0043 
0044   double minDz_;
0045 };
0046 
0047 #endif