8 #include "HepPDT/ParticleDataTable.hh"
16 m_positionAtScoringPlane(),
18 m_positionAtPrimary() {
24 HepMC::FourVector fourVector,
25 HepMC::FourVector positionAtScoringPlane,
26 double weight): m_pdgId(pdgId),
27 m_fourVector(fourVector),
28 m_positionAtScoringPlane(positionAtScoringPlane),
35 HepMC::FourVector fourVector,
36 HepMC::FourVector positionAtScoringPlane,
38 HepMC::FourVector positionAtPrimary): m_pdgId(pdgId),
39 m_fourVector(fourVector),
40 m_positionAtScoringPlane(positionAtScoringPlane),
42 m_positionAtPrimary(positionAtPrimary) {
58 std::cerr <<
"There is no PDG code for MARS id " << marsParticle->
particleId() << std::endl;
66 mass = particleData->mass().value();
69 std::cerr <<
"PDG code " <<
m_pdgId <<
" is not in the particle data table." << std::endl;
77 mod_p = std::sqrt(p_sq);
122 std::cerr <<
"There is no PDG code for FLUKA id " << flukaParticle->
flukaId() << std::endl;
130 mass = particleData->mass().value();
133 std::cerr <<
"PDG code " <<
m_pdgId <<
" is not in the particle data table." << std::endl;
141 mod_p = std::sqrt(p_sq);
184 if(flukaParticle->
type() == 0) {
197 std::cout.precision(6);
198 std::cout.width(11); std::cout <<
m_pdgId <<
" ";
199 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_fourVector.px() <<
" ";
200 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_fourVector.py() <<
" ";
201 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_fourVector.pz() <<
" ";
202 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_fourVector.e() <<
" ";
207 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_weight << std::endl;
208 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_positionAtPrimary.x() <<
" ";
209 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_positionAtPrimary.y() <<
" ";
210 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_positionAtPrimary.z() <<
" ";
211 std::cout.width(13); std::cout.precision(6); std::cout << std::scientific <<
m_positionAtPrimary.t() << std::endl;