Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:05

0001 #ifndef CommonTools_ParticleFlow_PFMETAlgo_
0002 #define CommonTools_ParticleFlow_PFMETAlgo_
0003 
0004 // system include files
0005 #include <memory>
0006 #include <string>
0007 
0008 // user include files
0009 #include "FWCore/Framework/interface/Frameworkfwd.h"
0010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0011 
0012 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
0013 
0014 //not a fwd declaration, to save the pain to the user to include the necessary DF header as well
0015 #include "DataFormats/METReco/interface/MET.h"
0016 
0017 /**\class PFMETAlgo 
0018 \brief Computes the MET from a collection of PFCandidates. 
0019 
0020 \author Colin Bernet
0021 \date   february 2008
0022 */
0023 
0024 namespace pf2pat {
0025 
0026   class PFMETAlgo {
0027   public:
0028     explicit PFMETAlgo(const edm::ParameterSet&);
0029 
0030     reco::MET produce(const reco::PFCandidateCollection& pfCandidates) const;
0031 
0032   private:
0033     /// HF calibration factor (in 31X applied by PFProducer)
0034     double hfCalibFactor_;
0035 
0036     /// verbose ?
0037     bool verbose_;
0038   };
0039 }  // namespace pf2pat
0040 
0041 #endif