#include <RecoMET/METAlgorithms/interface/GenSpecificAlgo.h>
Public Types | |
typedef math::XYZTLorentzVector | LorentzVector |
typedef std::vector< const reco::Candidate * > | ParticleCollection |
typedef math::XYZPoint | Point |
Public Member Functions | |
reco::GenMET | addInfo (edm::Handle< edm::View< reco::Candidate > > particles, CommonMETData met) |
Make GenMET. Assumes MET is made from MCCandidates. |
Cavanaugh (taken from F.Ratnikov, UMd) 6 June, 2006
Definition at line 13 of file GenSpecificAlgo.h.
Definition at line 16 of file GenSpecificAlgo.h.
typedef std::vector<const reco::Candidate*> GenSpecificAlgo::ParticleCollection |
Definition at line 18 of file GenSpecificAlgo.h.
typedef math::XYZPoint GenSpecificAlgo::Point |
Definition at line 17 of file GenSpecificAlgo.h.
reco::GenMET GenSpecificAlgo::addInfo | ( | edm::Handle< edm::View< reco::Candidate > > | particles, | |
CommonMETData | met | |||
) |
Make GenMET. Assumes MET is made from MCCandidates.
Definition at line 14 of file GenSpecificAlgo.cc.
References SpecificGenMETData::m_AuxiliaryEnergy, SpecificGenMETData::m_EmEnergy, SpecificGenMETData::m_HadEnergy, SpecificGenMETData::m_InvisibleEnergy, CommonMETData::met, CommonMETData::mex, CommonMETData::mey, p4, and CommonMETData::sumet.
Referenced by cms::METProducer::produce().
00015 { 00016 // Instantiate the container to hold the calorimeter specific information 00017 SpecificGenMETData specific; 00018 // Initialise the container 00019 specific.m_EmEnergy = 0.0; // EM Energy 00020 specific.m_HadEnergy = 0.0; // Hadronic Energy 00021 specific.m_InvisibleEnergy = 0.0; // Invisible energy 00022 specific.m_AuxiliaryEnergy = 0.0; // Other Energy 00023 // Instantiate containers for the MET candidate and initialise them with 00024 // the MET information in "met" (of type CommonMETData) 00025 const LorentzVector p4( met.mex, met.mey, 0.0, met.met ); 00026 const Point vtx( 0.0, 0.0, 0.0 ); 00027 // Create and return an object of type GenMET, which is a MET object with 00028 // the extra calorimeter specfic information added 00029 GenMET specificmet( specific, met.sumet, p4, vtx ); 00030 return specificmet; 00031 }