12 #include "CLHEP/Units/SystemOfUnits.h"
24 std::cerr <<
"This test can not be run" << std::endl;
30 inputTestDataHandle = std::make_unique<McEventCollection>();
35 Gaudi::Hive::setCurrentContext( ctx );
38 const int process_id1(20);
39 const int event_number1(17);
41 HepMC::GenEvent& ge1 = *(inputTestDataHandle->at(0));
54 if (genPartList.empty()) {
return maxBarcode; }
62 void populateGenEvent(HepMC::GenEvent & ge,
int pdgid1,
int pdgid2, std::vector<HepMC::GenParticlePtr>& genPartList)
65 HepMC::FourVector myPos( 0.0, 0.0, 0.0, 0.0);
67 HepMC::FourVector fourMomentum1( 0.0, 0.0, 1.0, 1.0*
CLHEP::TeV);
69 myVertex->add_particle_in(inParticle1);
70 HepMC::FourVector fourMomentum2( 0.0, 0.0, -1.0, 1.0*
CLHEP::TeV);
72 myVertex->add_particle_in(inParticle2);
73 HepMC::FourVector fourMomentum3( 0.0, 1.0, 0.0, 1.0*
CLHEP::TeV);
75 myVertex->add_particle_out(inParticle3);
76 genPartList.push_back(inParticle3);
77 HepMC::FourVector fourMomentum4( 0.0, -1.0, 0.0, 1.0*
CLHEP::TeV);
79 myVertex->add_particle_out(inParticle4);
80 genPartList.push_back(inParticle4);
81 ge.add_vertex( myVertex );
87 ge.set_beam_particles(inParticle1,inParticle2);