1 |
/**
|
2 |
* Tools
|
3 |
* top
|
4 |
*
|
5 |
* Created by Samvel Khalatian on Sep 7, 2010
|
6 |
* Copyright 2010, All rights reserved
|
7 |
*/
|
8 |
|
9 |
#include <TLorentzVector.h>
|
10 |
#include <TVector3.h>
|
11 |
|
12 |
#include "EDModule/Analyzer/interface/Tools.h"
|
13 |
|
14 |
namespace tt = top::tools;
|
15 |
|
16 |
void tt::setP4(TLorentzVector *topP4,
|
17 |
const math::XYZTLorentzVector *cmsswP4)
|
18 |
{
|
19 |
topP4->SetPxPyPzE(cmsswP4->px(),
|
20 |
cmsswP4->py(),
|
21 |
cmsswP4->pz(),
|
22 |
cmsswP4->energy());
|
23 |
}
|
24 |
|
25 |
void tt::setVertex(TVector3 &vector, const math::XYZPoint &point)
|
26 |
{
|
27 |
vector.SetXYZ(point.x(), point.y(), point.z());
|
28 |
}
|