Public Member Functions | Private Attributes | List of all members
PointAdapter Class Reference
Inheritance diagram for PointAdapter:
WireCell::Sio::JsonRecombinationAdaptor

Public Member Functions

 PointAdapter (IRecombinationModel::pointer model)
 
virtual ~PointAdapter ()
 
virtual double operator() (Json::Value depo) const
 
- Public Member Functions inherited from WireCell::Sio::JsonRecombinationAdaptor
virtual ~JsonRecombinationAdaptor ()
 

Private Attributes

IRecombinationModel::pointer m_model
 

Detailed Description

Definition at line 41 of file JsonDepoSource.cxx.

Constructor & Destructor Documentation

PointAdapter::PointAdapter ( IRecombinationModel::pointer  model)
inline

Definition at line 44 of file JsonDepoSource.cxx.

44 : m_model(model) {}
IRecombinationModel::pointer m_model
virtual PointAdapter::~PointAdapter ( )
inlinevirtual

Definition at line 45 of file JsonDepoSource.cxx.

45 {}

Member Function Documentation

virtual double PointAdapter::operator() ( Json::Value  depo) const
inlinevirtual

Implements WireCell::Sio::JsonRecombinationAdaptor.

Definition at line 46 of file JsonDepoSource.cxx.

46  {
47  const double dE = depo["q"].asDouble();
48  return (*m_model)(dE);
49  }
IRecombinationModel::pointer m_model

Member Data Documentation

IRecombinationModel::pointer PointAdapter::m_model
private

Definition at line 42 of file JsonDepoSource.cxx.


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