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

Public Member Functions

 ElectronsAdapter (double scale=1.0)
 
virtual ~ElectronsAdapter ()
 
virtual double operator() (Json::Value depo) const
 
- Public Member Functions inherited from WireCell::Sio::JsonRecombinationAdaptor
virtual ~JsonRecombinationAdaptor ()
 

Private Attributes

double m_scale
 

Detailed Description

Definition at line 32 of file JsonDepoSource.cxx.

Constructor & Destructor Documentation

ElectronsAdapter::ElectronsAdapter ( double  scale = 1.0)
inline

Definition at line 35 of file JsonDepoSource.cxx.

35 : m_scale(scale) {}
void scale(Sequence< Val > &seq, Val scalar)
Scale (multiply) sequence values by scalar.
Definition: Waveform.h:146
virtual ElectronsAdapter::~ElectronsAdapter ( )
inlinevirtual

Definition at line 36 of file JsonDepoSource.cxx.

36 {};

Member Function Documentation

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

Implements WireCell::Sio::JsonRecombinationAdaptor.

Definition at line 37 of file JsonDepoSource.cxx.

37  {
38  return m_scale*depo["n"].asInt()*(-1.0*units::eplus);
39  }

Member Data Documentation

double ElectronsAdapter::m_scale
private

Definition at line 33 of file JsonDepoSource.cxx.


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