1 |
#include "UserCode/HbbAnalysis/interface/GenParticle.hh"
|
2 |
#include "UserCode/HbbAnalysis/interface/Candidate.hh"
|
3 |
|
4 |
namespace HbbAnalysis {
|
5 |
|
6 |
GenParticle::GenParticle(){
|
7 |
}
|
8 |
|
9 |
void GenParticle::Clear() {
|
10 |
Candidate::Clear();
|
11 |
genVars_.Clear();
|
12 |
parentIndex_.clear();
|
13 |
childIndex_.clear();
|
14 |
}
|
15 |
|
16 |
void GenParticle::Print() const {
|
17 |
std::cout << "Idx: " << genVars().index <<
|
18 |
" St: " << genVars().status <<
|
19 |
" PDG: " << genVars().pdgId <<
|
20 |
" Chg: " << genVars().charge << std::endl;
|
21 |
std::cout << "Mothers: ";
|
22 |
for (unsigned i = 0; i < parentIndex_.size(); ++i) {
|
23 |
std::cout << parentIndex_[i] << " ";
|
24 |
}
|
25 |
std::cout << std::endl;
|
26 |
std::cout << "Daughters: ";
|
27 |
for (unsigned i = 0; i < childIndex_.size(); ++i) {
|
28 |
std::cout << childIndex_[i] << " ";
|
29 |
}
|
30 |
std::cout << std::endl;
|
31 |
Candidate::Print();
|
32 |
}
|
33 |
}
|