CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CommonTools/RecoAlgos/src/MassiveCandidateConverter.cc

Go to the documentation of this file.
00001 #include "CommonTools/RecoAlgos/src/MassiveCandidateConverter.h"
00002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00003 #include "HepPDT/ParticleData.hh"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include <algorithm>
00006 using namespace edm;
00007 using namespace std;
00008 using namespace converter;
00009 
00010 MassiveCandidateConverter::MassiveCandidateConverter( const edm::ParameterSet & cfg ) :
00011   massSqr_(0), particle_( cfg.getParameter<PdtEntry>( "particleType" ) ) {
00012 }
00013 
00014 void MassiveCandidateConverter::beginFirstRun( const EventSetup & es ) {
00015   particle_.setup(es);
00016   massSqr_ = particle_.data().mass(); 
00017   massSqr_ *= massSqr_;
00018 }
00019