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

Public Member Functions

 PointAdapter (WireCell::IRecombinationModel::pointer model, double scale=1.0)
 
virtual ~PointAdapter ()
 
virtual double operator() (const sim::SimEnergyDeposit &sed) const
 
 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 ()
 
- 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 53 of file SimDepoSetSource.cxx.

Constructor & Destructor Documentation

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

Definition at line 57 of file SimDepoSetSource.cxx.

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

Definition at line 59 of file SimDepoSetSource.cxx.

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

Definition at line 58 of file SimDepoSource.cxx.

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

Definition at line 60 of file SimDepoSource.cxx.

60 {}

Member Function Documentation

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

Implements wcls::SimDepoSetSource::DepoAdapter.

Definition at line 60 of file SimDepoSetSource.cxx.

60  {
61  const double dE = sed.Energy()*units::MeV;
62  return m_scale * (*m_model)(dE);
63  }
util::quantities::megaelectronvolt MeV
double Energy() const
virtual double wcls::bits::PointAdapter::operator() ( const sim::SimEnergyDeposit sed) const
inlinevirtual

Implements wcls::SimDepoSetSource::DepoAdapter.

Definition at line 61 of file SimDepoSource.cxx.

61  {
62  const double dE = sed.Energy()*units::MeV;
63  return m_scale * (*m_model)(dE);
64  }
util::quantities::megaelectronvolt MeV
double Energy() const

Member Data Documentation

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

Definition at line 54 of file SimDepoSetSource.cxx.

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

Definition at line 55 of file SimDepoSetSource.cxx.


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