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
ApplyEnergyCorrection Class Reference

#include <ApplyEnergyCorrection.h>

Public Member Functions

 ApplyEnergyCorrection (double correction)
 
 ApplyEnergyCorrection (double correction)
 
void set (reco::Candidate &c)
 set up a candidate More...
 
void set (reco::Candidate &c)
 set up a candidate More...
 

Private Attributes

double correction_
 

Detailed Description

apply correction factor to candidate energy and momenta, presenrving direction

Author
Luca Lista, INFN
Version
Revision:
1.1
Id:
ApplyEnergyCorrection.h,v 1.1 2009/02/26 09:17:33 llista Exp

apply correction factor to candidate energy and momenta, presenrving direction

Author
Luca Lista, INFN
Version
Revision:
1.2
Id:
ApplyEnergyCorrection.h,v 1.2 2006/07/26 08:48:05 llista Exp

Definition at line 17 of file ApplyEnergyCorrection.h.

Constructor & Destructor Documentation

ApplyEnergyCorrection::ApplyEnergyCorrection ( double  correction)
inline

Definition at line 18 of file ApplyEnergyCorrection.h.

18 : correction_( correction ) { }
ApplyEnergyCorrection::ApplyEnergyCorrection ( double  correction)
inline

Definition at line 18 of file ApplyEnergyCorrection.h.

18 : correction_( correction ) { }

Member Function Documentation

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

set up a candidate

Definition at line 7 of file ApplyEnergyCorrection.cc.

References reco::Candidate::p4(), and reco::Candidate::setP4().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

7  {
8  c.setP4( c.p4() * correction_ );
9 }
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
void ApplyEnergyCorrection::set ( reco::Candidate c)

set up a candidate

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

Member Data Documentation

double ApplyEnergyCorrection::correction_
private

Definition at line 23 of file ApplyEnergyCorrection.h.