CMS 3D CMS Logo

Public Member Functions | Private Attributes

Booster Class Reference

#include <Booster.h>

List of all members.

Public Member Functions

 Booster (const math::XYZVector &b)
 constructor from a boost vector
 Booster (const math::XYZVector &b)
 constructor from a boost vector
void set (reco::Candidate &c)
 set up a candidate kinematics according to the boost
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.1
Id:
Booster.h,v 1.1 2009/02/26 09:17:33 llista Exp

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.

: boost( b ) { }
Booster::Booster ( const math::XYZVector b) [inline]

constructor from a boost vector

Definition at line 19 of file Booster.h.

: 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(), reco::Candidate::end(), reco::Candidate::p4(), and reco::Candidate::setP4().

Referenced by CenterOfMassBooster::set().

                                {
  c.setP4( ROOT::Math::VectorUtil::boost( c.p4(), boost ) );
  Candidate::iterator b = c.begin(), e = c.end(); 
  for(  Candidate::iterator d = b; d != e; ++ d )
    set( * d );
}
void Booster::set ( reco::Candidate c)

set up a candidate kinematics according to the boost


Member Data Documentation

Definition at line 23 of file Booster.h.