Public Member Functions | Private Attributes | List of all members
wcls::bits::PointAdapter Class Reference
Inheritance diagram for wcls::bits::PointAdapter:
wcls::bits::DepoAdapter

Public Member Functions

 PointAdapter (WireCell::IRecombinationModel::pointer model, double scale=1.0)
 
virtual ~PointAdapter ()
 
virtual double operator() (const sim::SimEnergyDeposit &sed) const
 
- Public Member Functions inherited from wcls::bits::DepoAdapter
virtual ~DepoAdapter ()
 

Private Attributes

WireCell::IRecombinationModel::pointer m_model
 
double m_scale
 

Detailed Description

Definition at line 53 of file SimDepoSource.cxx.

Constructor & Destructor Documentation

wcls::bits::PointAdapter::PointAdapter ( WireCell::IRecombinationModel::pointer  model,
double  scale = 1.0 
)
inline

Definition at line 57 of file SimDepoSource.cxx.

58  : m_model(model), m_scale(scale) {}
Definition: model.py:1
WireCell::IRecombinationModel::pointer m_model
virtual wcls::bits::PointAdapter::~PointAdapter ( )
inlinevirtual

Definition at line 59 of file SimDepoSource.cxx.

59 {}

Member Function Documentation

virtual double wcls::bits::PointAdapter::operator() ( const sim::SimEnergyDeposit sed) const
inlinevirtual

Implements wcls::bits::DepoAdapter.

Definition at line 60 of file SimDepoSource.cxx.

60  {
61  const double dE = sed.Energy()*units::MeV;
62  return m_scale * (*m_model)(dE);
63  }
static constexpr double MeV
Definition: Units.h:129
double Energy() const

Member Data Documentation

WireCell::IRecombinationModel::pointer wcls::bits::PointAdapter::m_model
private

Definition at line 54 of file SimDepoSource.cxx.

double wcls::bits::PointAdapter::m_scale
private

Definition at line 55 of file SimDepoSource.cxx.


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