Public Member Functions | Private Attributes | List of all members
WireCell::Gen::MipRecombination Class Reference

Model for a MIP, dQ = (Rmip/Wi)*dE. More...

#include <RecombinationModels.h>

Inheritance diagram for WireCell::Gen::MipRecombination:
WireCell::IRecombinationModel WireCell::IConfigurable WireCell::IComponent< IRecombinationModel > WireCell::IComponent< IConfigurable > WireCell::Interface WireCell::Interface

Public Member Functions

 MipRecombination (double Rmip=0.7, double Wi=23.6 *units::eV/(-1 *units::eplus))
 
virtual ~MipRecombination ()
 
virtual double operator() (double dE, double dX=0.0)
 
virtual void configure (const WireCell::Configuration &config)
 Accept a configuration. More...
 
virtual WireCell::Configuration default_configuration () const
 Optional, override to return a hard-coded default configuration. More...
 
- Public Member Functions inherited from WireCell::IRecombinationModel
virtual ~IRecombinationModel ()
 
- Public Member Functions inherited from WireCell::IComponent< IRecombinationModel >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 
- Public Member Functions inherited from WireCell::IConfigurable
virtual ~IConfigurable ()
 
- Public Member Functions inherited from WireCell::IComponent< IConfigurable >
virtual ~IComponent ()
 

Private Attributes

double m_rmip
 
double m_wi
 

Additional Inherited Members

- Public Types inherited from WireCell::IComponent< IRecombinationModel >
typedef std::shared_ptr< IRecombinationModelpointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 
- Public Types inherited from WireCell::IComponent< IConfigurable >
typedef std::shared_ptr< IConfigurablepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 

Detailed Description

Model for a MIP, dQ = (Rmip/Wi)*dE.

Definition at line 14 of file RecombinationModels.h.

Constructor & Destructor Documentation

Gen::MipRecombination::MipRecombination ( double  Rmip = 0.7,
double  Wi = 23.6*units::eV/(-1*units::eplus) 
)

Definition at line 20 of file RecombinationModels.cxx.

Gen::MipRecombination::~MipRecombination ( )
virtual

Definition at line 25 of file RecombinationModels.cxx.

26 {
27 }

Member Function Documentation

void Gen::MipRecombination::configure ( const WireCell::Configuration config)
virtual

Accept a configuration.

Implements WireCell::IConfigurable.

Definition at line 32 of file RecombinationModels.cxx.

33 {
34  m_rmip = get(config, "Rmip", m_rmip);
35  m_wi = get(config, "Wi", m_wi);
36 }
static Config * config
Definition: config.cpp:1054
WireCell::Configuration Gen::MipRecombination::default_configuration ( ) const
virtual

Optional, override to return a hard-coded default configuration.

Reimplemented from WireCell::IConfigurable.

Definition at line 37 of file RecombinationModels.cxx.

38 {
40  cfg["Rmip"] = m_rmip;
41  cfg["Wi"] = m_wi;
42  return cfg;
43 }
cfg
Definition: dbjson.py:29
Json::Value Configuration
Definition: Configuration.h:50
double Gen::MipRecombination::operator() ( double  dE,
double  dX = 0.0 
)
virtual

Member Data Documentation

double WireCell::Gen::MipRecombination::m_rmip
private

Definition at line 15 of file RecombinationModels.h.

double WireCell::Gen::MipRecombination::m_wi
private

Definition at line 15 of file RecombinationModels.h.


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