1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef CandUtils_CenterOfMassBooster_h
#define CandUtils_CenterOfMassBooster_h
/** \class CenterOfMassBooster
*
* Boost a reco::Candidate to its center-of-mass reference frame
*
* \author Luca Lista, INFN
*
* \version $Revision: 1.2 $
*
* $Id: CenterOfMassBooster.h,v 1.2 2006/07/26 08:48:05 llista Exp $
*
*/
#include "CommonTools/CandUtils/interface/Booster.h"
struct CenterOfMassBooster {
/// constructor from a candidate
CenterOfMassBooster(const reco::Candidate& c);
/// set up a candidate kinematics according to the boost
void set(reco::Candidate& c) { booster.set(c); }
private:
Booster booster;
};
#endif
|