Ionization< T > Class Template Reference

#include <Ionization.h>

Inheritance diagram for Ionization< T >:
EnergyLossProcess

List of all members.

Public Member Functions

 Ionization ()
 Ionization (const Material &material)
 ~Ionization ()
double dE_dx (double E) const
double Threshold (void) const

Private Attributes

T * fModel

Detailed Description

template<class T>
class Ionization< T >

________________________________________________________________________________________

Id
Ionization.cxx,v 1.3 2005/02/03 11:56:04 tagg Exp

________________________________________________________________________________________

Id
Ionization.h,v 1.2 2004/01/05 16:11:13 costas Exp

Definition at line 22 of file Ionization.h.


Constructor & Destructor Documentation

template<class T >
Ionization< T >::Ionization (  )  [inline]

Definition at line 25 of file Ionization.cxx.

00025                                              :
00026 EnergyLossProcess()
00027 {
00028   fModel = new T();
00029 }
//_________________________________________________________________________________________

template<class T >
Ionization< T >::Ionization ( const Material material  )  [inline]

Definition at line 31 of file Ionization.cxx.

References Process::eAll, Process::eIonization, and Ionization< T >::fModel.

00031                                                                       :
00032 EnergyLossProcess()
00033 {
00034   fModel = new T(material);
00035  
00036   Process::Process_t proc = fModel->ModeledProcess();
00037 
00038   assert( proc == Process::eIonization || proc == Process::eAll);
00039 }
//_________________________________________________________________________________________

template<class T >
Ionization< T >::~Ionization (  )  [inline]

Definition at line 41 of file Ionization.cxx.

References Ionization< T >::fModel.

00042 {
00043   if(fModel) delete fModel;
00044 }


Member Function Documentation

template<class T >
double Ionization< T >::dE_dx ( double  E  )  const [inline, virtual]

Implements EnergyLossProcess.

Definition at line 46 of file Ionization.cxx.

References ValidityRange::Emax, ValidityRange::Emin, Ionization< T >::fModel, and Ionization< T >::Threshold().

00047 {
00048   if(E > Threshold() ) {
00049 
00050      ValidityRange_t vldrange = fModel->ValidityRange();
00051 
00052      if(E >= vldrange.Emin && E <= vldrange.Emax)  return fModel->dE_dx(E);
00053   }
00054 
00055   return 0;
00056 }

template<class T >
double Ionization< T >::Threshold ( void   )  const [inline, virtual]

Implements EnergyLossProcess.

Definition at line 30 of file Ionization.h.

References MuELoss::Mm.

Referenced by Ionization< T >::dE_dx().

00030 { return MuELoss::Mm; }


Member Data Documentation

template<class T >
T* Ionization< T >::fModel [private]

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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1