Public Member Functions | Private Attributes | List of all members
wcls::bits::ElectronsAdapter Class Reference
Inheritance diagram for wcls::bits::ElectronsAdapter:
wcls::bits::DepoAdapter

Public Member Functions

 ElectronsAdapter (double scale=1.0)
 
virtual ~ElectronsAdapter ()
 
virtual double operator() (const sim::SimEnergyDeposit &sed) const
 
- Public Member Functions inherited from wcls::bits::DepoAdapter
virtual ~DepoAdapter ()
 

Private Attributes

double m_scale
 

Detailed Description

Definition at line 41 of file SimDepoSource.cxx.

Constructor & Destructor Documentation

wcls::bits::ElectronsAdapter::ElectronsAdapter ( double  scale = 1.0)
inline

Definition at line 44 of file SimDepoSource.cxx.

44 : m_scale(scale) {}
virtual wcls::bits::ElectronsAdapter::~ElectronsAdapter ( )
inlinevirtual

Definition at line 45 of file SimDepoSource.cxx.

45 {};

Member Function Documentation

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

Implements wcls::bits::DepoAdapter.

Definition at line 46 of file SimDepoSource.cxx.

46  {
47  return m_scale * sed.NumElectrons();
48  }

Member Data Documentation

double wcls::bits::ElectronsAdapter::m_scale
private

Definition at line 42 of file SimDepoSource.cxx.


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