Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:10:49

0001 #ifndef JetMETCorrections_Type1MET_PFchsMETcorrInputProducer_h
0002 #define JetMETCorrections_Type1MET_PFchsMETcorrInputProducer_h
0003 
0004 /** \class PFchsMETcorrInputProducer
0005  *
0006  * Sum PF Charged Particles Originating from the primary vertices which are
0007  * not primary vertex of the high-pT events 
0008  * needed as input for Type 0 MET corrections
0009  *
0010  * \authors Anne-Maria Visuri, Mikko Voutilainen
0011  *          Tai Sakuma
0012  *
0013  *
0014  *
0015  */
0016 
0017 #include "FWCore/Framework/interface/stream/EDProducer.h"
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "FWCore/Utilities/interface/InputTag.h"
0022 
0023 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0024 
0025 #include "DataFormats/METReco/interface/CorrMETData.h"
0026 
0027 #include "CommonTools/Utils/interface/StringCutObjectSelector.h"
0028 #include "DataFormats/Candidate/interface/Candidate.h"
0029 
0030 #include <string>
0031 
0032 class PFchsMETcorrInputProducer : public edm::stream::EDProducer<> {
0033 public:
0034   explicit PFchsMETcorrInputProducer(const edm::ParameterSet&);
0035   ~PFchsMETcorrInputProducer() override;
0036 
0037 private:
0038   void produce(edm::Event&, const edm::EventSetup&) override;
0039 
0040   std::string moduleLabel_;
0041 
0042   edm::EDGetTokenT<reco::VertexCollection> token_;
0043 
0044   unsigned goodVtxNdof_;
0045   double goodVtxZ_;
0046 };
0047 
0048 #endif