CMS 3D CMS Logo

GenSpecificAlgo Class Reference

Adds generator level HEPMC specific information to MET base class Author: R. More...

#include <RecoMET/METAlgorithms/interface/GenSpecificAlgo.h>

List of all members.

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.


Detailed Description

Adds generator level HEPMC specific information to MET base class Author: R.

Cavanaugh (taken from F.Ratnikov, UMd) 6 June, 2006

Definition at line 13 of file GenSpecificAlgo.h.


Member Typedef Documentation

typedef math::XYZTLorentzVector GenSpecificAlgo::LorentzVector

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.


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:22 2009 for CMSSW by  doxygen 1.5.4