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

#include <SimpleDepo.h>

Inheritance diagram for WireCell::SimpleDepo:
WireCell::IDepo WireCell::IData< IDepo >

Public Member Functions

 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)
 
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 double energy () const
 The energy (in units of MeV) deposited. More...
 
virtual int id () const
 Track ID from Geant4. More...
 
virtual int pdg () const
 PDG code from Geant4. More...
 
virtual WireCell::IDepo::pointer prior () const
 If the deposition is drifted, this may allow access to the original. More...
 
virtual double extent_long () const
 
virtual double extent_tran () const
 
- Public Member Functions inherited from WireCell::IDepo
virtual ~IDepo ()
 
- Public Member Functions inherited from WireCell::IData< IDepo >
virtual ~IData ()
 

Private Attributes

double m_time
 
WireCell::Point m_pos
 
int m_id
 
int m_pdg
 
double m_charge
 
double m_energy
 
IDepo::pointer m_prior
 
double m_long
 
double m_tran
 

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 8 of file SimpleDepo.h.

Constructor & Destructor Documentation

SimpleDepo::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 at line 5 of file SimpleDepo.cxx.

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)
19 {
20 }
virtual double extent_long() const
Definition: SimpleDepo.cxx:44
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 int pdg() const
PDG code from Geant4.
Definition: SimpleDepo.cxx:43
virtual double extent_tran() const
Definition: SimpleDepo.cxx:45
IDepo::pointer m_prior
Definition: SimpleDepo.h:34
virtual WireCell::IDepo::pointer prior() const
If the deposition is drifted, this may allow access to the original.
Definition: SimpleDepo.cxx:38

Member Function Documentation

double SimpleDepo::charge ( ) const
virtual

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

Implements WireCell::IDepo.

Definition at line 30 of file SimpleDepo.cxx.

31 {
32  return m_charge;
33 }
double SimpleDepo::energy ( ) const
virtual

The energy (in units of MeV) deposited.

Implements WireCell::IDepo.

Definition at line 34 of file SimpleDepo.cxx.

35 {
36  return m_energy;
37 }
double SimpleDepo::extent_long ( ) const
virtual

Any (half width) extent in the longitudinal (drift) direction (distance). The distribution is implicit but typically it is taken that this is a Gaussian sigma.

Reimplemented from WireCell::IDepo.

Definition at line 44 of file SimpleDepo.cxx.

44 { return m_long; }
double SimpleDepo::extent_tran ( ) const
virtual

Any (half width) extent in the transverse (pitch) direction (distance). The distribution is implicit but typically it is taken that this is a Gaussian sigma.

Reimplemented from WireCell::IDepo.

Definition at line 45 of file SimpleDepo.cxx.

45 { return m_tran; }
int SimpleDepo::id ( ) const
virtual

Track ID from Geant4.

Implements WireCell::IDepo.

Definition at line 42 of file SimpleDepo.cxx.

42 { return m_id; }
int SimpleDepo::pdg ( ) const
virtual

PDG code from Geant4.

Implements WireCell::IDepo.

Definition at line 43 of file SimpleDepo.cxx.

43 { return m_pdg; }
const WireCell::Point & SimpleDepo::pos ( ) const
virtual

The location of the deposition.

Implements WireCell::IDepo.

Definition at line 22 of file SimpleDepo.cxx.

23 {
24  return m_pos;
25 }
WireCell::Point m_pos
Definition: SimpleDepo.h:29
WireCell::IDepo::pointer SimpleDepo::prior ( ) const
virtual

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

Implements WireCell::IDepo.

Definition at line 38 of file SimpleDepo.cxx.

39 {
40  return m_prior;
41 }
IDepo::pointer m_prior
Definition: SimpleDepo.h:34
double SimpleDepo::time ( ) const
virtual

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

Implements WireCell::IDepo.

Definition at line 26 of file SimpleDepo.cxx.

27 {
28  return m_time;
29 }

Member Data Documentation

double WireCell::SimpleDepo::m_charge
private

Definition at line 32 of file SimpleDepo.h.

double WireCell::SimpleDepo::m_energy
private

Definition at line 33 of file SimpleDepo.h.

int WireCell::SimpleDepo::m_id
private

Definition at line 30 of file SimpleDepo.h.

double WireCell::SimpleDepo::m_long
private

Definition at line 35 of file SimpleDepo.h.

int WireCell::SimpleDepo::m_pdg
private

Definition at line 31 of file SimpleDepo.h.

WireCell::Point WireCell::SimpleDepo::m_pos
private

Definition at line 29 of file SimpleDepo.h.

IDepo::pointer WireCell::SimpleDepo::m_prior
private

Definition at line 34 of file SimpleDepo.h.

double WireCell::SimpleDepo::m_time
private

Definition at line 28 of file SimpleDepo.h.

double WireCell::SimpleDepo::m_tran
private

Definition at line 35 of file SimpleDepo.h.


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