SimpleDepo.h
Go to the documentation of this file.
1 #include "WireCellIface/IDepo.h"
2 
3 namespace WireCell {
4 
5  // A deposition that simply holds all the data it presents. If
6  // you have something that makes depositions immediately and needs
7  // no "smarts" just use this to hold their info outright.
8  class SimpleDepo : public WireCell::IDepo {
9  public:
10  SimpleDepo(double t, const WireCell::Point& pos,
11  double charge = 1.0, IDepo::pointer prior = nullptr,
12  double extent_long=0.0, double extent_tran=0.0,
13  int id = 0, int pdg = 0, double energy = 1.0);
14 
15  virtual const WireCell::Point& pos() const;
16  virtual double time() const;
17  virtual double charge() const;
18  virtual double energy() const;
19  virtual int id() const;
20  virtual int pdg() const;
21  virtual WireCell::IDepo::pointer prior() const;
22  virtual double extent_long() const;
23  virtual double extent_tran() const;
24 
25 
26  private:
27  // bag o' data
28  double m_time;
30  int m_id;
31  int m_pdg;
32  double m_charge;
33  double m_energy;
35  double m_long, m_tran;
36 
37  };
38 
39 }
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