ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/Objects/GenParticle.h
(Generate patch)

Comparing UserCode/UHHAnalysis/NtupleWriter/Objects/GenParticle.h (file contents):
Revision 1.2 by peiffer, Wed May 23 09:10:59 2012 UTC vs.
Revision 1.5 by peiffer, Wed May 8 12:28:35 2013 UTC

# Line 3 | Line 3
3  
4   #include "Particle.h"
5  
6 + /**
7 + *  @short generator particle class
8 + *  @author Thomas Peiffer
9 + */
10 +
11   class GenParticle : public Particle{
12   public:
13    GenParticle(){
# Line 13 | Line 18 | class GenParticle : public Particle{
18      m_mother2=0;
19      m_daughter1=0;
20      m_daughter2=0;
21 +    m_spin=0;
22    };
23    ~GenParticle(){
24    };
25  
20
26    int pdgId() const{return m_pdgId;}
27    int status() const{return m_status;}
28    int index() const{return m_index;}
29 <
29 >  int mother1() const{return m_mother1;}
30 >  int mother2() const{return m_mother2;}
31 >  int daughter1() const{return m_daughter1;}
32 >  int daughter2() const{return m_daughter2;}
33 >  int spin() const{return m_spin;}
34  
35    //return mother 1 or 2 (ind<=1 or ind>=2)
36    GenParticle* mother(std::vector<GenParticle> *gplist, int ind=1){
# Line 65 | Line 74 | class GenParticle : public Particle{
74    void set_mother2(int x){  m_mother2=x;}
75    void set_daughter1(int x){  m_daughter1=x;}
76    void set_daughter2(int x){  m_daughter2=x;}
77 +  void set_spin(int x){  m_spin=x;}
78  
79   private:
80    int m_pdgId;
# Line 75 | Line 85 | class GenParticle : public Particle{
85    int m_mother2;
86    int m_daughter1;
87    int m_daughter2;
88 +  int m_spin;
89  
90  
91   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines