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

Comparing UserCode/PollackPrograms/src/TCGenParticle.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 9 | Line 9 | TCGenParticle::~TCGenParticle() {
9  
10   // "get" methods -------------------------------------
11  
12 < TVector3 TCGenParticle::Position() const {
13 <           return _position;
14 < }
15 <
16 < TVector2 TCGenParticle::P2() const {
17 <           TVector2 v2(this->Px(), this->Py());
18 <                   return v2;
19 < }
20 <
21 < int TCGenParticle::Charge() const{
22 <           return charge;
12 > int TCGenParticle::Mother() {
13 >    return mother;
14   }
15  
16 < int TCGenParticle::GetStatus(){
17 <  return _status;
16 > int TCGenParticle::Grandmother() {
17 >    return grandmother;
18   }
19  
20 < int TCGenParticle::Mother() {
21 <           return mother;
20 > int TCGenParticle::GetPDGId() {
21 >    return PDGID;
22   }
23  
24 < int TCGenParticle::Grandmother() {
25 <           return grandmother;
24 > unsigned TCGenParticle::GetStatus() {
25 >    return status;
26   }
27  
28 < int TCGenParticle::GetPDGId() {
29 <           return PDGID;
28 > bool TCGenParticle::IsParton() {
29 >    return isParton_;
30   }
31  
32   //std::vector<int> TCGenParticle::GetDaughters() {
# Line 44 | Line 35 | int TCGenParticle::GetPDGId() {
35  
36   // "set" methods ---------------------------------------------
37  
47 void TCGenParticle::SetPosition(float x, float y, float z) {
48           TVector3 p(x, y, z);
49                   _position = p;
50 }
51
52 void TCGenParticle::SetCharge(int c) {
53           charge = c;
54 }
55
56 void TCGenParticle::SetStatus(int status){
57  _status = status;
58 }
38   //void TCGenParticle::AddDaughter(int d) {
39   //   daughters.push_back(d);
40   //}
41  
42   void TCGenParticle::SetMother(int m) {
43 <           mother = m;
43 >    mother = m;
44   }
45  
46   void TCGenParticle::SetGrandmother(int g) {
47 <           grandmother = g;
47 >    grandmother = g;
48   }
49  
50   void TCGenParticle::SetPDGId(int pdg_id) {
51 <           PDGID = pdg_id;
51 >    PDGID = pdg_id;
52 > }
53 >
54 > void TCGenParticle::SetStatus(unsigned s)
55 > {
56 >    status = s;
57 > }
58 > void TCGenParticle::SetIsParton(bool a) {
59 >    isParton_=a;
60   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines