ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/System8/EDModule/Analyzer/src/Tools.cc
Revision: 1.3
Committed: Fri May 6 14:05:52 2011 UTC (14 years ago) by samvel
Content type: text/plain
Branch: MAIN
CVS Tags: V00-00-04, V00-00-03, V00-00-02, V00-00-01, HEAD
Changes since 1.2: +0 -63 lines
Log Message:
Fix Tools

File Contents

# Content
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 }