ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/PollackPrograms/src/TCGenParticle.cc
Revision: 1.2
Committed: Wed Feb 20 21:39:43 2013 UTC (12 years, 2 months ago) by bpollack
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +21 -34 lines
Log Message:
commiting moriond analysis package

File Contents

# Content
1 #include "TCGenParticle.h"
2 #include <iostream>
3
4 TCGenParticle::TCGenParticle() {
5 }
6
7 TCGenParticle::~TCGenParticle() {
8 }
9
10 // "get" methods -------------------------------------
11
12 int TCGenParticle::Mother() {
13 return mother;
14 }
15
16 int TCGenParticle::Grandmother() {
17 return grandmother;
18 }
19
20 int TCGenParticle::GetPDGId() {
21 return PDGID;
22 }
23
24 unsigned TCGenParticle::GetStatus() {
25 return status;
26 }
27
28 bool TCGenParticle::IsParton() {
29 return isParton_;
30 }
31
32 //std::vector<int> TCGenParticle::GetDaughters() {
33 // return daughters;
34 //}
35
36 // "set" methods ---------------------------------------------
37
38 //void TCGenParticle::AddDaughter(int d) {
39 // daughters.push_back(d);
40 //}
41
42 void TCGenParticle::SetMother(int m) {
43 mother = m;
44 }
45
46 void TCGenParticle::SetGrandmother(int g) {
47 grandmother = g;
48 }
49
50 void TCGenParticle::SetPDGId(int 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 }