ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/devildog/SWonAnalysis3/Thesis/src/TGenMET.cc
Revision: 1.2
Committed: Wed Jun 15 22:12:56 2011 UTC (13 years, 10 months ago) by devildog
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -3 lines
Error occurred while calculating annotation data.
Log Message:
Removed custom copy constructor

File Contents

# Content
1 /*
2 * File: TGenMET.cc
3 * Author: S. Won
4 */
5
6 #include "TGenMET.h"
7 #include <iostream>
8
9 TGenMET::TGenMET() {
10 }
11
12 TGenMET::~TGenMET() {
13 }
14
15 // "get" methods -------------------------------------
16
17 TVector3 TGenMET::Position() const {
18 return _position;
19 }
20
21 TLorentzVector TGenMET::P4() const {
22 return _p4;
23 }
24
25 TVector2 TGenMET::P2() const {
26 TVector2 v2(_p4.Px(), _p4.Py());
27 return v2;
28 }
29
30 float TGenMET::Et() const {
31 return _p4.Et();
32 }
33
34 float TGenMET::Pt() const {
35 return _p4.Pt();
36 }
37
38 // set methods
39 void TGenMET::SetPosition(float x, float y, float z) {
40 TVector3 p(x, y, z);
41 _position = p;
42 }
43
44 void TGenMET::SetP4(TLorentzVector p4) {
45 _p4 = p4;
46 }
47
48 void TGenMET::SetP4(float px, float py, float pz, float e) {
49 TLorentzVector p4(px, py, pz, e);
50 _p4 = p4;
51 }