CMS 3D CMS Logo

Booster Class Reference

Boost a reco::Candidate by a specified boost vector. More...

#include <PhysicsTools/CandUtils/interface/Booster.h>

List of all members.

Public Member Functions

 Booster (const math::XYZVector &b)
 constructor from a boost vector
void set (reco::Candidate &c)
 set up a candidate kinematics according to the boost

Private Attributes

const math::XYZVector boost


Detailed Description

Boost a reco::Candidate by a specified boost vector.

Author:
Luca Lista, INFN
Version:
Revision
1.11

Id
Booster.h,v 1.11 2006/12/14 14:19:11 llista Exp

Definition at line 17 of file Booster.h.


Constructor & Destructor Documentation

Booster::Booster ( const math::XYZVector b  )  [inline]

constructor from a boost vector

Definition at line 19 of file Booster.h.

00019 : boost( b ) { }


Member Function Documentation

void Booster::set ( reco::Candidate c  ) 

set up a candidate kinematics according to the boost

Definition at line 8 of file Booster.cc.

References b, reco::Candidate::begin(), boost, d, e, reco::Candidate::end(), reco::Particle::p4(), and reco::Particle::setP4().

Referenced by CenterOfMassBooster::set().

00008                                 {
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 }


Member Data Documentation

const math::XYZVector Booster::boost [private]

Definition at line 23 of file Booster.h.

Referenced by set().


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