83 std::ios::fmtflags f( cout.flags() );
84 cout <<
"GenVertex (" << vertex <<
"):";
86 if (vertex->position().x() != 0.0 && vertex->position().y() != 0.0 && vertex->position().z() != 0.0) {
95 cout.setf(std::ios::scientific, std::ios::floatfield);
96 cout.setf(std::ios_base::showpos);
97 cout << vertex->position().x() <<
",";
100 cout << vertex->position().y() <<
",";
103 cout << vertex->position().z() <<
",";
106 cout << vertex->position().t();
107 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
108 cout.unsetf(std::ios_base::showpos);
115 cout << vertex->id();
116 cout <<
" (X,cT): 0";
123 if (vertex->position().x() != 0.0 && vertex->position().y() != 0.0 && vertex->position().z() != 0.0) {
127 cout << vertex->id();
131 cout.setf(std::ios::scientific, std::ios::floatfield);
132 cout.setf(std::ios_base::showpos);
133 cout << vertex->position().x();
136 cout << vertex->position().y();
139 cout << vertex->position().z();
142 cout << vertex->position().t();
143 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
144 cout.unsetf(std::ios_base::showpos);
150 cout << vertex->id();
157 for (
const auto& iPIn: vertex->particles_in()) {
158 if ( iPIn == vertex->particles_in().front() ) {
161 cout << vertex->particles_in().size();
165 for (
const auto& iPOut: vertex->particles_out()) {
166 if ( iPOut == vertex->particles_out().front()) {
169 cout << vertex->particles_out().size();
179 if (!particle)
return;
180 std::ios::fmtflags f( cout.flags() );
185 cout << particle->pdg_id() <<
" ";
188 cout.setf(std::ios::scientific, std::ios::floatfield);
189 cout.setf(std::ios_base::showpos);
190 if (do4momPtEtaPhi) cout << particle->momentum().perp() <<
",";
191 else cout << particle->momentum().px() <<
",";
194 if (do4momPtEtaPhi) cout << particle->momentum().pseudoRapidity() <<
",";
195 else cout << particle->momentum().py() <<
",";
198 if (do4momPtEtaPhi) cout << particle->momentum().phi() <<
",";
199 else cout << particle->momentum().pz() <<
",";
202 cout << particle->momentum().e() <<
" ";
203 cout.setf(std::ios::fmtflags(0), std::ios::floatfield);
204 cout.unsetf(std::ios_base::showpos);
208 cout << particle->status() <<
" ";
214 cout << particle->status();