ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MPIAnalyzer/src/TCElectron.cc
Revision: 1.1
Committed: Tue Dec 7 09:49:59 2010 UTC (14 years, 4 months ago) by naodell
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
Container class for storage of electron variables.

File Contents

# Content
1 #include "TCElectron.h"
2 #include<iostream>
3
4 TCElectron::TCElectron() {
5
6 }
7
8 TCElectron::TCElectron(const TCElectron& orig) {
9
10 }
11
12 TCElectron::~TCElectron() {
13
14 }
15
16
17
18 // "get" methods -------------------------------------
19
20 TLorentzVector TCElectron::p4() const {
21 return _p4;
22 }
23
24 float TCElectron::pT() const {
25 return _p4.Pt();
26 }
27
28 TVector3 TCElectron::Vtx() const {
29 return _vtx;
30 }
31
32 //TVector3 TCElectron::AssocVtx() {
33 // return _assocPV;
34 //}
35
36
37
38 float TCElectron::eta() const {
39 return _eta;
40 }
41
42 float TCElectron::phi() const {
43 return _phi;
44 }
45
46 int TCElectron::charge() const {
47 return _charge;
48 }
49
50 float TCElectron::dxy() const {
51 return _dxy;
52 }
53
54 float TCElectron::normChi2() const {
55 return _normChi2;
56 }
57
58 float TCElectron::emIso() const {
59 return _emIso;
60 }
61
62 float TCElectron::hadIso() const {
63 return _hadIso;
64 }
65
66 float TCElectron::trkIso() const {
67 return _trkIso;
68 }
69
70
71 // "set" methods ---------------------------------------------
72
73 void TCElectron::Setp4(TLorentzVector p4) {
74 _p4 = p4;
75 }
76
77 void TCElectron::Setp4(float px, float py, float pz, float e) {
78 TLorentzVector p4(px, py, pz, e);
79 _p4 = p4;
80 }
81
82 void TCElectron::SetVtx(float vx, float vy, float vz) {
83 TVector3 v3(vx, vy, vz);
84 _vtx = v3;
85 }
86
87 //void TCElectron::SetAssocVtx(float vx, float vy, float vz) {
88 // TVector3 v3(vx, vy, vz);
89 // _assocPV = v3;
90 //}
91
92
93 void TCElectron::SetEta(float e){
94 _eta = e;
95 }
96
97 void TCElectron::SetPhi(float p){
98 _phi = p;
99 }
100
101 void TCElectron::SetCharge(int c){
102 _charge = c;
103 }
104
105 void TCElectron::Setdxy(float d){
106 _dxy = d;
107 }
108
109 void TCElectron::SetNormChi2(float c){
110 _normChi2 = c;
111 }
112
113 void TCElectron::SetEMIso(float e){
114 _emIso = e;
115 }
116
117 void TCElectron::SetHADIso(float h){
118 _hadIso = h;
119 }
120
121 void TCElectron::SetTRKIso(float t){
122 _trkIso = t;
123 }
124