26 std::cerr <<
"This test can not be run" << std::endl;
32 inputTestDataHandle = std::make_unique<McEventCollection>();
37 Gaudi::Hive::setCurrentContext( ctx );
40 const int process_id1(20);
41 const int event_number1(17);
52 const int event_number2(89);
53 ge2.set_event_number(event_number2);
76 myVertex->add_particle_in(inParticle1);
79 myVertex->add_particle_in(inParticle2);
82 myVertex->add_particle_out(inParticle3);
83 genPartList.push_back(inParticle3);
86 myVertex->add_particle_out(inParticle4);
87 genPartList.push_back(inParticle4);
88 ge.add_vertex( myVertex );
94 ge.set_beam_particles(std::move(inParticle1),std::move(inParticle2));
101 genPart->set_pdg_id(999);
102 genPart->set_status(1);
106 genVertex->add_particle_out(genPart);
107 genPartVector.push_back(genPart);
111 if (hScatVx!=
nullptr) {
113 genVertex->set_position(pmvxpos);
115 auto itrp =hScatVx->particles_in().cbegin();
116 if (hScatVx->particles_in().size()==2) {
120 vxmom.setPx(mom1.e()+mom2.e());
123 vxmom.setE(mom1.e()+mom2.e());
124 genPart->set_momentum(vxmom);
128 if (!ge.vertices().empty()) {
129 std::vector<HepMC::GenVertexPtr> vtxvec;
130 for (
const auto& vtx: ge.vertices()) {
131 vtxvec.push_back(vtx);
132 ge.remove_vertex(vtx);
138 ge.add_vertex(std::move(genVertex));