00001 // $Id: Booster.cc,v 1.9 2007/09/27 13:55:04 llista Exp $ 00002 #include "PhysicsTools/CandUtils/interface/Booster.h" 00003 #include "DataFormats/Candidate/interface/Candidate.h" 00004 #include <Math/VectorUtil.h> 00005 using namespace std; 00006 using namespace reco; 00007 00008 void Booster::set( Candidate& c ) { 00009 c.setP4( ROOT::Math::VectorUtil::boost( c.p4(), boost ) ); 00010 Candidate::iterator b = c.begin(), e = c.end(); 00011 for( Candidate::iterator d = b; d != e; ++ d ) 00012 set( * d ); 00013 }