CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Booster.cc
Go to the documentation of this file.
1 // $Id: Booster.cc,v 1.1 2009/02/26 09:17:34 llista Exp $
4 #include <Math/VectorUtil.h>
5 using namespace std;
6 using namespace reco;
7 
9  c.setP4( ROOT::Math::VectorUtil::boost( c.p4(), boost ) );
10  Candidate::iterator b = c.begin(), e = c.end();
11  for( Candidate::iterator d = b; d != e; ++ d )
12  set( * d );
13 }
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual const_iterator end() const =0
last daughter const_iterator
void set(reco::Candidate &c)
set up a candidate kinematics according to the boost
Definition: Booster.cc:8
double b
Definition: hdecay.h:120
virtual const_iterator begin() const =0
first daughter const_iterator
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
void set(const std::string &name, int value)
set the flag, with a run-time name