CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Booster Class Reference

#include <Booster.h>

Public Member Functions

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

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.

19 : boost( b ) { }
const math::XYZVector boost
Definition: Booster.h:23
double b
Definition: hdecay.h:120
Booster::Booster ( const math::XYZVector b)
inline

constructor from a boost vector

Definition at line 19 of file Booster.h.

19 : boost( b ) { }
const math::XYZVector boost
Definition: Booster.h:23
double b
Definition: hdecay.h:120

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral(), and CenterOfMassBooster::set().

8  {
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
const math::XYZVector boost
Definition: Booster.h:23
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 Booster::set ( reco::Candidate c)

set up a candidate kinematics according to the boost

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

Member Data Documentation

const math::XYZVector Booster::boost
private

Definition at line 23 of file Booster.h.