Jpp test-rotations-old-533-g2bdbdb559
the software that should make you happy
Loading...
Searching...
No Matches
JPHYSICS::JACoeffSource Class Reference

Implementation for calculation of ionization constant. More...

#include <JACoeffSource.hh>

Inheritance diagram for JPHYSICS::JACoeffSource:
JPHYSICS::JACoeffInterface

Public Member Functions

 JACoeffSource (const std::shared_ptr< JRadiation > &radiation, const double density)
 Constructor.
 
virtual double getA (const double E) const override
 Get ionization constant a.
 

Protected Attributes

const double rho
 

Detailed Description

Implementation for calculation of ionization constant.

This class implements the JACoeffInterface interface.
N.B: This class owns the object pointed to using JLANG::JSharedPointer.

Definition at line 46 of file JACoeffSource.hh.

Constructor & Destructor Documentation

◆ JACoeffSource()

JPHYSICS::JACoeffSource::JACoeffSource ( const std::shared_ptr< JRadiation > & radiation,
const double density )
inline

Constructor.

Parameters
radiationpointer to valid JRadition object
densitymass density of radiation material [gr/cm³]

Definition at line 57 of file JACoeffSource.hh.

58 :
59 std::shared_ptr<JRadiation>(radiation),
60 rho(density)
61 {}

Member Function Documentation

◆ getA()

virtual double JPHYSICS::JACoeffSource::getA ( const double E) const
inlineoverridevirtual

Get ionization constant a.

Parameters
Emuon energy [GeV]
Returns
ionization constant [GeV/m]

Implements JPHYSICS::JACoeffInterface.

Definition at line 70 of file JACoeffSource.hh.

71 {
72 return get()->CalculateACoeff(E) * rho * 1.0e6;
73 }

Member Data Documentation

◆ rho

const double JPHYSICS::JACoeffSource::rho
protected

Definition at line 76 of file JACoeffSource.hh.


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