Jpp  18.0.1-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JPHYSICS::JDISSource Class Reference

Implementation for calculation of inverse interaction length and shower energy due to deep-inelastic muon-nucleon scattering. More...

#include <JRadiationSource.hh>

Inheritance diagram for JPHYSICS::JDISSource:
JPHYSICS::JRadiationInterface JPHYSICS::JDIS

Public Member Functions

 JDISSource (const int id, const double density)
 Constructor. More...
 
virtual double getInverseInteractionLength (const double E) const override
 Get inverse interaction length. More...
 
virtual double getEnergyOfShower (const double E) const override
 Get energy of shower. More...
 
virtual double getThetaRMS (const double E, const double Es) const override
 Get RMS of scattering angle. More...
 
int getID () const
 Get radiation identifer. More...
 
double getCrossSection (const double E) const
 Get cross section. More...
 
double getP (const double E, const double v) const
 Get probability of given energy fraction. More...
 
double getE (const double E) const
 Get shower energy. More...
 
double getV (const double E) const
 Get breakpoint. More...
 

Protected Attributes

const double rho
 

Detailed Description

Implementation for calculation of inverse interaction length and shower energy due to deep-inelastic muon-nucleon scattering.

This class implements the JRadiationInterface interface.

Definition at line 160 of file JRadiationSource.hh.

Constructor & Destructor Documentation

JPHYSICS::JDISSource::JDISSource ( const int  id,
const double  density 
)
inline

Constructor.

Parameters
idradiation identifier
densitymass density of radiation material [gr/cm³]

Definition at line 171 of file JRadiationSource.hh.

172  :
174  rho(density)
175  {}
JRadiationInterface(const int id)
Constructor.

Member Function Documentation

virtual double JPHYSICS::JDISSource::getInverseInteractionLength ( const double  E) const
inlineoverridevirtual

Get inverse interaction length.

Parameters
Emuon energy [GeV]
Returns
inverse interaction length [m^-1]

Implements JPHYSICS::JRadiationInterface.

Definition at line 184 of file JRadiationSource.hh.

185  {
186  return this->getCrossSection(E) * (rho / NUCLEON_MOLAR_MASS) * AVOGADRO * 1.0e2;
187  }
double getCrossSection(const double E) const
Get cross section.
Definition: JDIS.hh:46
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
static const double AVOGADRO
Avogadro&#39;s number [gr^-1].
static const double NUCLEON_MOLAR_MASS
nucleon molar mass [g/mol]
virtual double JPHYSICS::JDISSource::getEnergyOfShower ( const double  E) const
inlineoverridevirtual

Get energy of shower.

Parameters
Emuon energy [GeV]
Returns
shower energy [GeV]

Implements JPHYSICS::JRadiationInterface.

Definition at line 196 of file JRadiationSource.hh.

197  {
198  return this->getE(E);
199  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
double getE(const double E) const
Get shower energy.
Definition: JDIS.hh:78
virtual double JPHYSICS::JDISSource::getThetaRMS ( const double  E,
const double  Es 
) const
inlineoverridevirtual

Get RMS of scattering angle.

Parameters
Emuon energy [GeV]
Esshower energy [GeV]
Returns
RMS scattering angle [rad]

Implements JPHYSICS::JRadiationInterface.

Definition at line 209 of file JRadiationSource.hh.

210  {
211  return static_cast<const JDIS*>(this)->getThetaRMS(E, Es/E);
212  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
Deep-inelastic muon-nucleon scattering.
Definition: JDIS.hh:31
virtual double getThetaRMS(const double E, const double Es) const override
Get RMS of scattering angle.
int JPHYSICS::JRadiationInterface::getID ( ) const
inlineinherited

Get radiation identifer.

Returns
identifier

Definition at line 48 of file JRadiationSource.hh.

49  {
50  return id;
51  }
double JPHYSICS::JDIS::getCrossSection ( const double  E) const
inlineinherited

Get cross section.

Parameters
Emuon energy [GeV]
Returns
cross section [cm^2]

Definition at line 46 of file JDIS.hh.

47  {
48  const double x = log10(E*1.0e+1);
49 
50  if (E > JDIS_t::E0)
51  return 0.35e-30 * pow(1.0 - JDIS_t::E0/E, 2.0) * exp(-2.10/x) * pow(10.0, 0.125*x);
52  else
53  return 0.0;
54  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
static constexpr double E0
minimal energy [GeV]
Definition: JDIS.hh:204
set_variable E_E log10(E_{fit}/E_{#mu})"
T pow(const T &x, const double y)
Power .
Definition: JMath.hh:97
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable STRING $argv[2] set_array QUANTILES set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable MODULE `getModule -a $DETECTOR -L "$STRING 0"` source JAcousticsToolkit.sh typeset -A TRIPODS get_tripods $WORKDIR/tripod.txt TRIPODS XMEAN
double JPHYSICS::JDIS::getP ( const double  E,
const double  v 
) const
inlineinherited

Get probability of given energy fraction.

Parameters
Emuon energy [GeV]
venergy fraction
Returns
probability

Definition at line 64 of file JDIS.hh.

65  {
66  const JDIS_t dis(E);
67 
68  return dis.getP(v);
69  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
data_type v[N+1][M+1]
Definition: JPolint.hh:777
double JPHYSICS::JDIS::getE ( const double  E) const
inlineinherited

Get shower energy.

Parameters
Emuon energy [GeV]
Returns
shower energy [GeV]

Definition at line 78 of file JDIS.hh.

79  {
80  const JDIS_t dis(E);
81 
82  return dis.getE();
83  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
double JPHYSICS::JDIS::getV ( const double  E) const
inlineinherited

Get breakpoint.

Parameters
Emuon energy [GeV]
Returns
energy fraction

Definition at line 110 of file JDIS.hh.

111  {
112  return JDIS_t::E1/E;
113  }
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Definition: JMuonPostfit.sh:40
static constexpr double E1
breakpoint [GeV]
Definition: JDIS.hh:205

Member Data Documentation

const double JPHYSICS::JDISSource::rho
protected

Definition at line 215 of file JRadiationSource.hh.


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