31 RegisterJetScapeModule<PartonPrinter> PartonPrinter::reg(
"PartonPrinter");
33 PartonPrinter::PartonPrinter() {}
35 PartonPrinter::~PartonPrinter() {}
38 this->
SetId(
"PartonPrinter");
39 JSINFO <<
"Initialize PartonPrinter ...";
40 string filename = GetXMLElementText({
"PartonPrinter",
"FileName"});
45 void PartonPrinter::Exec() {
46 VERBOSE(2) <<
"Run PartonPrinter: print shower from event # "
47 << GetCurrentEvent() <<
" ...";
50 void PartonPrinter::GetFinalPartons(
55 for (
unsigned int ipart = 0;
56 ipart < pShower.get()->GetFinalPartons().size(); ++ipart) {
58 if (std::abs(pShower.get()->GetFinalPartons().at(ipart)->pid()) == 21) {
59 dist_output << ipart <<
" "
60 << pShower.get()->GetFinalPartons().at(ipart)->pid() <<
" "
61 << pShower.get()->GetFinalPartons().at(ipart)->e() <<
" "
62 << pShower.get()->GetFinalPartons().at(ipart)->px() <<
" "
63 << pShower.get()->GetFinalPartons().at(ipart)->py() <<
" "
64 << pShower.get()->GetFinalPartons().at(ipart)->pz() << endl;
83 this->pFinals.push_back(pShower.get()->GetFinalPartons());
90 this->pFinals.clear();