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

Public Member Functions

 StepAdapter (WireCell::IRecombinationModel::pointer model, double scale=1.0)
 
virtual ~StepAdapter ()
 
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 67 of file SimDepoSource.cxx.

Constructor & Destructor Documentation

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

Definition at line 71 of file SimDepoSource.cxx.

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

Definition at line 73 of file SimDepoSource.cxx.

73 {}

Member Function Documentation

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

Implements wcls::bits::DepoAdapter.

Definition at line 74 of file SimDepoSource.cxx.

74  {
75  const double dE = sed.Energy()*units::MeV;
76  const double dX = sed.StepLength()*units::cm;
77  return m_scale * (*m_model)(dE, dX);
78  }
static constexpr double cm
Definition: Units.h:68
geo::Length_t StepLength() const
static constexpr double MeV
Definition: Units.h:129
double Energy() const

Member Data Documentation

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

Definition at line 68 of file SimDepoSource.cxx.

double wcls::bits::StepAdapter::m_scale
private

Definition at line 69 of file SimDepoSource.cxx.


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