1 #ifndef WIRECELL_NAV_TRANSPORTEDDEPO 2 #define WIRECELL_NAV_TRANSPORTEDDEPO 18 : m_from(from), m_pos(from->
pos()) {
19 double dx = m_pos.
x() - location;
21 m_time = from->time() + dx/velocity;
27 virtual double charge()
const {
return m_from->charge(); }
28 virtual int id()
const {
return m_from->id(); }
29 virtual int pdg()
const {
return m_from->pdg(); }
30 virtual double energy()
const {
return m_from->energy(); }
std::shared_ptr< const IDepo > pointer
WireCell::IDepo::pointer m_from
virtual double charge() const
The number charge (in units of number of electrons) deposited.
virtual double energy() const
The energy (in units of MeV) deposited.
virtual double time() const
TransportedDepo(const WireCell::IDepo::pointer &from, double location, double velocity)
virtual const WireCell::Point & pos() const
The location of the deposition.
virtual WireCell::IDepo::pointer prior() const
If the deposition is drifted, this may allow access to the original.
virtual int pdg() const
PDG code from Geant4.
virtual ~TransportedDepo()
virtual int id() const
Track ID from Geant4.