CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoMET/METAlgorithms/src/PFClusterSpecificAlgo.cc

Go to the documentation of this file.
00001 /*
00002 class: PFClusterSpecificAlgo.cc
00003 description:  MET made from Particle Flow candidates
00004 authors: R. Remington (UF), R. Cavanaugh (UIC/Fermilab)
00005   date: 10/27/08
00006 */
00007 
00008 #include "DataFormats/Math/interface/LorentzVector.h"
00009 #include "RecoMET/METAlgorithms/interface/PFClusterSpecificAlgo.h"
00010 #include "RecoMET/METAlgorithms/interface/significanceAlgo.h"
00011 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
00012 #include "DataFormats/RecoCandidate/interface/RecoPFClusterRefCandidate.h"
00013 using namespace reco;
00014 using namespace std;
00015 
00016 //--------------------------------------------------------------------------------------
00017 // This algorithm adds Particle Flow specific global event information to the MET object
00018 //--------------------------------------------------------------------------------------
00019 
00020 reco::PFClusterMET PFClusterSpecificAlgo::addInfo(edm::Handle<edm::View<Candidate> > PFClusterCandidates, CommonMETData met)
00021 {  
00022   const LorentzVector p4(met.mex , met.mey, 0.0, met.met);
00023   const Point vtx(0.0,0.0,0.0);
00024   PFClusterMET specificPFClusterMET( met.sumet, p4, vtx );
00025   return specificPFClusterMET;
00026 }