All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
wcls::bits::StepAdapter Class Reference
Inheritance diagram for wcls::bits::StepAdapter:
wcls::bits::DepoAdapter wcls::SimDepoSetSource::DepoAdapter

Public Member Functions

 StepAdapter (WireCell::IRecombinationModel::pointer model, double scale=1.0)
 
virtual ~StepAdapter ()
 
virtual double operator() (const sim::SimEnergyDeposit &sed) const
 
 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 ()
 
- Public Member Functions inherited from wcls::SimDepoSetSource::DepoAdapter
virtual ~DepoAdapter ()
 

Private Attributes

WireCell::IRecombinationModel::pointer m_model
 
double m_scale
 

Detailed Description

Definition at line 67 of file SimDepoSetSource.cxx.

Constructor & Destructor Documentation

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

Definition at line 71 of file SimDepoSetSource.cxx.

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

Definition at line 73 of file SimDepoSetSource.cxx.

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

Definition at line 72 of file SimDepoSource.cxx.

73  : m_model(model), m_scale(scale) {}
WireCell::IRecombinationModel::pointer m_model
virtual wcls::bits::StepAdapter::~StepAdapter ( )
inlinevirtual

Definition at line 74 of file SimDepoSource.cxx.

74 {}

Member Function Documentation

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

Implements wcls::SimDepoSetSource::DepoAdapter.

Definition at line 74 of file SimDepoSetSource.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  }
geo::Length_t StepLength() const
util::quantities::megaelectronvolt MeV
double Energy() const
virtual double wcls::bits::StepAdapter::operator() ( const sim::SimEnergyDeposit sed) const
inlinevirtual

Implements wcls::SimDepoSetSource::DepoAdapter.

Definition at line 75 of file SimDepoSource.cxx.

75  {
76  const double dE = sed.Energy()*units::MeV;
77  const double dX = sed.StepLength()*units::cm;
78  return m_scale * (*m_model)(dE, dX);
79  }
geo::Length_t StepLength() const
util::quantities::megaelectronvolt MeV
double Energy() const

Member Data Documentation

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

Definition at line 68 of file SimDepoSetSource.cxx.

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

Definition at line 69 of file SimDepoSetSource.cxx.


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