Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:56

0001 // $Id: Booster.cc,v 1.9 2007/09/27 13:55:04 llista Exp $

0002 #include "CommonTools/CandUtils/interface/Booster.h"
0003 #include "DataFormats/Candidate/interface/Candidate.h"
0004 #include <Math/VectorUtil.h>
0005 using namespace std;
0006 using namespace reco;
0007 
0008 void Booster::set(Candidate& c) {
0009   c.setP4(ROOT::Math::VectorUtil::boost(c.p4(), boost));
0010   Candidate::iterator b = c.begin(), e = c.end();
0011   for (Candidate::iterator d = b; d != e; ++d)
0012     set(*d);
0013 }