00001 #include "AtlfastEvent/TransportedParticle.h" 00002 #include <iostream> 00003 00004 namespace Atlfast { 00005 00006 TransportedParticle::TransportedParticle(const HepMC::GenParticle* const &p): 00007 ITransportedParticle(), 00008 m_particle(p){ 00009 m_phi = Phi(p->momentum().phi()); 00010 m_eta = p->momentum().eta(); 00011 m_energy = p->momentum().e(); 00012 } 00013 00014 Phi TransportedParticle::phi() const {return m_phi;} 00015 double TransportedParticle::eta() const {return m_eta;} 00016 double TransportedParticle::E() const {return m_energy;} 00017 00018 const HepMC::GenParticle* TransportedParticle::particle() const { 00019 00020 return m_particle; 00021 00022 } 00023 00024 } 00025