60 HepMC::GenVertex::particles_in_const_iterator,
61 HepMC::GenVertex::particles_out_const_iterator,
62 HepMC::GenVertex::particles_out_const_iterator)
const;
85 std::cout << std::endl <<
"History for track #" <<
index <<
" : " << std::endl;
93 for (std::size_t hindex = 0; hindex < simParticles.size(); hindex++) {
102 if (!simVertexes.empty()) {
103 for (std::size_t hindex = 0; hindex < simVertexes.size(); hindex++) {
104 std::cout <<
" simVertex [" << hindex <<
"] : "
105 <<
vertexString(simVertexes[hindex]->sourceTracks(), simVertexes[hindex]->daughterTracks())
109 std::cout <<
" simVertex no found" << std::endl;
115 for (std::size_t hindex = 0; hindex <
genParticles.size(); hindex++) {
124 if (!genVertexes.empty()) {
125 for (std::size_t hindex = 0; hindex < genVertexes.size(); hindex++) {
126 std::cout <<
" genVertex [" << hindex <<
"] : "
127 <<
vertexString(genVertexes[hindex]->particles_in_const_begin(),
128 genVertexes[hindex]->particles_in_const_end(),
129 genVertexes[hindex]->particles_out_const_begin(),
130 genVertexes[hindex]->particles_out_const_end())
134 std::cout <<
" genVertex no found" << std::endl;
153 std::ostringstream vDescription;
160 vDescription << pid->name();
162 vDescription <<
pdgId;
164 vDescription <<
pdgId;
166 return vDescription.str();
173 std::ostringstream vDescription;
175 for (std::size_t
j = 0;
j <
in.size();
j++) {
184 vDescription << pid->name();
186 vDescription <<
in[
j]->pdgId();
188 vDescription <<
in[
j]->pdgId();
190 if (
j ==
in.size() - 1)
196 vDescription <<
"->";
198 for (std::size_t
j = 0;
j <
out.size();
j++) {
207 vDescription << pid->name();
209 vDescription <<
out[
j]->pdgId();
211 vDescription <<
out[
j]->pdgId();
213 if (
j ==
out.size() - 1)
219 return vDescription.str();
223 HepMC::GenVertex::particles_in_const_iterator in_end,
224 HepMC::GenVertex::particles_out_const_iterator out_begin,
225 HepMC::GenVertex::particles_out_const_iterator out_end)
const {
228 std::ostringstream vDescription;
232 HepMC::GenVertex::particles_in_const_iterator
in, itmp;
234 for (
in = in_begin;
in != in_end;
in++,
j++) {
243 vDescription << pid->name();
245 vDescription << (*in)->pdg_id();
247 vDescription << (*in)->pdg_id();
251 if (++itmp == in_end)
257 vDescription <<
"->";
260 HepMC::GenVertex::particles_out_const_iterator
out, otmp;
262 for (
out = out_begin;
out != out_end;
out++,
j++) {
271 vDescription << pid->name();
273 vDescription << (*out)->pdg_id();
275 vDescription << (*out)->pdg_id();
279 if (++otmp == out_end)
285 return vDescription.str();