SimpleDepo.cxx
Go to the documentation of this file.
2 
3 using namespace WireCell;
4 
6  double charge, IDepo::pointer prior,
7  double extent_long, double extent_tran,
8  int id, int pdg, double energy)
9 
10  : m_time(t)
11  , m_pos(pos)
12  , m_id(id)
13  , m_pdg(pdg)
14  , m_charge(charge)
15  , m_energy(energy)
16  , m_prior(prior)
17  , m_long(extent_long)
18  , m_tran(extent_tran)
19 {
20 }
21 
23 {
24  return m_pos;
25 }
26 double SimpleDepo::time() const
27 {
28  return m_time;
29 }
30 double SimpleDepo::charge() const
31 {
32  return m_charge;
33 }
34 double SimpleDepo::energy() const
35 {
36  return m_energy;
37 }
39 {
40  return m_prior;
41 }
42 int SimpleDepo::id() const { return m_id; }
43 int SimpleDepo::pdg() const{ return m_pdg; }
44 double SimpleDepo::extent_long() const { return m_long; }
45 double SimpleDepo::extent_tran() const { return m_tran; }
std::shared_ptr< const IDepo > pointer
Definition: IData.h:19
virtual double extent_long() const
Definition: SimpleDepo.cxx:44
virtual double time() const
Definition: SimpleDepo.cxx:26
virtual double energy() const
The energy (in units of MeV) deposited.
Definition: SimpleDepo.cxx:34
WireCell::Point m_pos
Definition: SimpleDepo.h:29
virtual double charge() const
The number charge (in units of number of electrons) deposited.
Definition: SimpleDepo.cxx:30
virtual const WireCell::Point & pos() const
The location of the deposition.
Definition: SimpleDepo.cxx:22
virtual int pdg() const
PDG code from Geant4.
Definition: SimpleDepo.cxx:43
SimpleDepo(double t, const WireCell::Point &pos, double charge=1.0, IDepo::pointer prior=nullptr, double extent_long=0.0, double extent_tran=0.0, int id=0, int pdg=0, double energy=1.0)
Definition: SimpleDepo.cxx:5
virtual double extent_tran() const
Definition: SimpleDepo.cxx:45
Definition: Main.h:22
IDepo::pointer m_prior
Definition: SimpleDepo.h:34
virtual int id() const
Track ID from Geant4.
Definition: SimpleDepo.cxx:42
virtual WireCell::IDepo::pointer prior() const
If the deposition is drifted, this may allow access to the original.
Definition: SimpleDepo.cxx:38