Public Member Functions | Private Attributes | List of all members
WireCell::Gen::TransportedDepo Class Reference

#include <TransportedDepo.h>

Inheritance diagram for WireCell::Gen::TransportedDepo:
WireCell::IDepo WireCell::IData< IDepo >

Public Member Functions

 TransportedDepo (const WireCell::IDepo::pointer &from, double location, double velocity)
 
virtual ~TransportedDepo ()
 
virtual const WireCell::Pointpos () const
 The location of the deposition. More...
 
virtual double time () const
 
virtual double charge () const
 The number charge (in units of number of electrons) deposited. More...
 
virtual int id () const
 Track ID from Geant4. More...
 
virtual int pdg () const
 PDG code from Geant4. More...
 
virtual double energy () const
 The energy (in units of MeV) deposited. More...
 
virtual WireCell::IDepo::pointer prior () const
 If the deposition is drifted, this may allow access to the original. More...
 
- Public Member Functions inherited from WireCell::IDepo
virtual ~IDepo ()
 
virtual double extent_long () const
 
virtual double extent_tran () const
 
- Public Member Functions inherited from WireCell::IData< IDepo >
virtual ~IData ()
 

Private Attributes

WireCell::IDepo::pointer m_from
 
WireCell::Point m_pos
 
double m_time
 

Additional Inherited Members

- Public Types inherited from WireCell::IData< IDepo >
typedef IDepo value_type
 
typedef std::shared_ptr< const IDepopointer
 
typedef std::vector< pointervector
 
typedef std::shared_ptr< const vectorshared_vector
 

Detailed Description

Definition at line 11 of file TransportedDepo.h.

Constructor & Destructor Documentation

WireCell::Gen::TransportedDepo::TransportedDepo ( const WireCell::IDepo::pointer from,
double  location,
double  velocity 
)
inline

Definition at line 17 of file TransportedDepo.h.

18  : m_from(from), m_pos(from->pos()) {
19  double dx = m_pos.x() - location;
20  m_pos.x(location);
21  m_time = from->time() + dx/velocity;
22  }
WireCell::IDepo::pointer m_from
T x(const T &val)
Definition: D3Vector.h:55
virtual WireCell::Gen::TransportedDepo::~TransportedDepo ( )
inlinevirtual

Definition at line 23 of file TransportedDepo.h.

23 {};

Member Function Documentation

virtual double WireCell::Gen::TransportedDepo::charge ( ) const
inlinevirtual

The number charge (in units of number of electrons) deposited.

Implements WireCell::IDepo.

Definition at line 27 of file TransportedDepo.h.

27 { return m_from->charge(); }
WireCell::IDepo::pointer m_from
virtual double WireCell::Gen::TransportedDepo::energy ( ) const
inlinevirtual

The energy (in units of MeV) deposited.

Implements WireCell::IDepo.

Definition at line 30 of file TransportedDepo.h.

30 { return m_from->energy(); }
WireCell::IDepo::pointer m_from
virtual int WireCell::Gen::TransportedDepo::id ( ) const
inlinevirtual

Track ID from Geant4.

Implements WireCell::IDepo.

Definition at line 28 of file TransportedDepo.h.

28 { return m_from->id(); }
WireCell::IDepo::pointer m_from
virtual int WireCell::Gen::TransportedDepo::pdg ( ) const
inlinevirtual

PDG code from Geant4.

Implements WireCell::IDepo.

Definition at line 29 of file TransportedDepo.h.

29 { return m_from->pdg(); }
WireCell::IDepo::pointer m_from
virtual const WireCell::Point& WireCell::Gen::TransportedDepo::pos ( ) const
inlinevirtual

The location of the deposition.

Implements WireCell::IDepo.

Definition at line 25 of file TransportedDepo.h.

25 { return m_pos; }
virtual WireCell::IDepo::pointer WireCell::Gen::TransportedDepo::prior ( ) const
inlinevirtual

If the deposition is drifted, this may allow access to the original.

Implements WireCell::IDepo.

Definition at line 31 of file TransportedDepo.h.

31 { return m_from; }
WireCell::IDepo::pointer m_from
virtual double WireCell::Gen::TransportedDepo::time ( ) const
inlinevirtual

The number of seconds from some absolute start time to when the deposition occur ed.

Implements WireCell::IDepo.

Definition at line 26 of file TransportedDepo.h.

26 { return m_time; }

Member Data Documentation

WireCell::IDepo::pointer WireCell::Gen::TransportedDepo::m_from
private

Definition at line 12 of file TransportedDepo.h.

WireCell::Point WireCell::Gen::TransportedDepo::m_pos
private

Definition at line 13 of file TransportedDepo.h.

double WireCell::Gen::TransportedDepo::m_time
private

Definition at line 14 of file TransportedDepo.h.


The documentation for this class was generated from the following file: