ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/PollackPrograms/src/TCGenJet.cc
(Generate patch)

Comparing UserCode/PollackPrograms/src/TCGenJet.cc (file contents):
Revision 1.1 by bpollack, Tue Jul 24 20:24:55 2012 UTC vs.
Revision 1.2 by bpollack, Wed Feb 20 21:39:43 2013 UTC

# Line 6 | Line 6
6   */
7  
8   #include "TCGenJet.h"
9 #include <iostream>
9  
10   TCGenJet::TCGenJet() {}
11  
# Line 14 | Line 13 | TCGenJet::~TCGenJet() {}
13  
14   // "get" methods -------------------------------------
15  
17 TVector2 TCGenJet::P2() const {
18   TVector2 v2(this->Px(), this->Py());
19   return v2;
20 }
21
16   float TCGenJet::HadEnergy() const {
17     return _hadEnergy;
18   }
# Line 51 | Line 45 | int TCGenJet::JetFlavor() const {
45     return _jetFlavor;
46   }
47  
54 TVector3 TCGenJet::Vtx() const {
55   return _vtx;
56 }
57
48   // "set" methods ---------------------------------------------
49  
60 void TCGenJet::SetVtx(float vx, float vy, float vz) {
61   TVector3 v3(vx, vy, vz);
62   _vtx = v3;
63 }
64
50   void TCGenJet::SetProgenitorP4(TLorentzVector p4) {
51     _progenitorP4 = p4;
52   }
53  
69 //void TCGenJet::SetAssocVtx(float vx, float vy, float vz) {
70 //   TVector3 v3(vx, vy, vz);
71 //   _assocPV = v3;
72 //}
73
54   void TCGenJet::SetHadEnergy(float h) {
55     _hadEnergy = h;
56   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines