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

# User Rev Content
1 bpollack 1.1 #include "TCGenParticle.h"
2     #include <iostream>
3    
4     TCGenParticle::TCGenParticle() {
5     }
6    
7     TCGenParticle::~TCGenParticle() {
8     }
9    
10     // "get" methods -------------------------------------
11    
12 bpollack 1.2 int TCGenParticle::Mother() {
13     return mother;
14 bpollack 1.1 }
15    
16 bpollack 1.2 int TCGenParticle::Grandmother() {
17     return grandmother;
18 bpollack 1.1 }
19    
20 bpollack 1.2 int TCGenParticle::GetPDGId() {
21     return PDGID;
22 bpollack 1.1 }
23    
24 bpollack 1.2 unsigned TCGenParticle::GetStatus() {
25     return status;
26 bpollack 1.1 }
27    
28 bpollack 1.2 bool TCGenParticle::IsParton() {
29     return isParton_;
30 bpollack 1.1 }
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 bpollack 1.2 mother = m;
44 bpollack 1.1 }
45    
46     void TCGenParticle::SetGrandmother(int g) {
47 bpollack 1.2 grandmother = g;
48 bpollack 1.1 }
49    
50     void TCGenParticle::SetPDGId(int pdg_id) {
51 bpollack 1.2 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 bpollack 1.1 }