37 msg(MSG::ERROR) <<
"Could not retrieve truth McEventCollection " <<
m_inkey <<
endmsg;
38 return StatusCode::FAILURE;
46 output_collection->
push_back(
new HepMC::GenEvent(*(*citr)));
51 msg(MSG::VERBOSE) << std::setw(10) <<
"pt"
52 << std::setw(10) <<
"E"
53 << std::setw(10) <<
"eta"
54 << std::setw(10) <<
"phi"
55 << std::setw(10) <<
"pt'"
56 << std::setw(10) <<
"E'"
57 << std::setw(10) <<
"eta'"
58 << std::setw(10) <<
"phi'"
63 for (
auto particle: **itr){
64 CLHEP::HepLorentzVector momentum(particle->momentum().px(),
65 particle->momentum().py(),
66 particle->momentum().pz(),
67 particle->momentum().e());
70 msg(MSG::VERBOSE) << std::setw(10) << particle->momentum().perp()
71 << std::setw(10) << particle->momentum().e()
72 << std::setw(10) << particle->momentum().eta()
73 << std::setw(10) << particle->momentum().phi()
74 << std::setw(10) << momentum.perp()
75 << std::setw(10) << momentum.e()
76 << std::setw(10) << momentum.eta()
77 << std::setw(10) << momentum.phi()
80 particle->set_momentum( HepMC::FourVector(momentum.px(),momentum.py(),momentum.pz(),momentum.e()) );
86 msg(MSG::ERROR) <<
"Could not record boosted McEventCollection " <<
m_outkey <<
endmsg;
87 return StatusCode::FAILURE;
90 return StatusCode::SUCCESS;