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.6 by rkogler, Fri Jun 14 15:00:45 2013 UTC vs.
Revision 1.7 by peiffer, Wed Jun 19 16:02:37 2013 UTC

# Line 1 | Line 1
1   #ifndef GenParticle_H
2   #define GenParticle_H
3  
4 < #include "Particle.h"
4 > #include "FlavorParticle.h"
5   #include <iomanip>
6   #include <iostream>
7   #include <string>
# Line 12 | Line 12
12   *  @author Thomas Peiffer
13   */
14  
15 < class GenParticle : public Particle{
15 > class GenParticle : public FlavorParticle{
16   public:
17    GenParticle(){
18    m_pdgId=0;
18      m_status=0;
19      m_index=0;
20      m_mother1=0;
# Line 27 | Line 26 | class GenParticle : public Particle{
26    ~GenParticle(){
27    };
28  
30  int pdgId() const{return m_pdgId;}
29    int status() const{return m_status;}
30    int index() const{return m_index;}
31    int mother1() const{return m_mother1;}
# Line 75 | Line 73 | class GenParticle : public Particle{
73    //print list of particles in one event with their characteristics
74    void Print(std::vector<GenParticle> *gplist) const{
75      std::cout << std::setw(10) << this->m_index << '|';
76 <    std::cout << std::setw(10) << this->m_pdgId << '|';
76 >    std::cout << std::setw(10) << this->pdgId() << '|';
77      std::cout << std::setw(10) << this->m_status << '|';
78      if(this->mother(gplist, 1)){
79        std::ostringstream convert1;
# Line 115 | Line 113 | class GenParticle : public Particle{
113    }
114  
115  
118  void set_pdgId(int x){  m_pdgId=x;}
116    void set_status(int x){  m_status=x;}
117    void set_index(int x){  m_index=x;}
118    void set_mother1(int x){  m_mother1=x;}
# Line 125 | Line 122 | class GenParticle : public Particle{
122    void set_spin(int x){  m_spin=x;}
123  
124   private:
128  int m_pdgId;
125    int m_status;
126    int m_index;
127  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines