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