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

Public Member Functions

 StepAdapter (IRecombinationModel::pointer model)
 
virtual ~StepAdapter ()
 
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 51 of file JsonDepoSource.cxx.

Constructor & Destructor Documentation

StepAdapter::StepAdapter ( IRecombinationModel::pointer  model)
inline

Definition at line 54 of file JsonDepoSource.cxx.

54 : m_model(model) {}
IRecombinationModel::pointer m_model
virtual StepAdapter::~StepAdapter ( )
inlinevirtual

Definition at line 55 of file JsonDepoSource.cxx.

55 {}

Member Function Documentation

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

Implements WireCell::Sio::JsonRecombinationAdaptor.

Definition at line 56 of file JsonDepoSource.cxx.

56  {
57  const double dE = depo["q"].asDouble();
58  const double dX = depo["s"].asDouble();
59  return (*m_model)(dE, dX);
60  }
IRecombinationModel::pointer m_model

Member Data Documentation

IRecombinationModel::pointer StepAdapter::m_model
private

Definition at line 52 of file JsonDepoSource.cxx.


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