Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:03

0001 #ifndef CandUtils_Booster_h
0002 #define CandUtils_Booster_h
0003 /** \class Booster

0004  *

0005  * Boost a reco::Candidate by a specified boost vector 

0006  *

0007  * \author Luca Lista, INFN

0008  *

0009  * \version $Revision: 1.11 $

0010  *

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

0012  *

0013  */
0014 #include "DataFormats/Candidate/interface/CandidateFwd.h"
0015 #include "DataFormats/Math/interface/Vector3D.h"
0016 
0017 struct Booster {
0018   /// constructor from a boost vector

0019   Booster(const math::XYZVector& b) : boost(b) {}
0020   /// set up a candidate kinematics according to the boost

0021   void set(reco::Candidate& c);
0022 
0023 private:
0024   const math::XYZVector boost;
0025 };
0026 
0027 #endif