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> |
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; |
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;} |
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; |
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;} |
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 |
|
|