Implementation for calculation of inverse interaction length and shower energy.
More...
#include <JRadiationSource.hh>
|
| | JRadiationSource (const int id, const std::shared_ptr< JRadiation > &radiation, const double density, const JRadiation::radiation_type source) |
| | Constructor.
|
| |
| virtual double | getInverseInteractionLength (const double E) const override |
| | Get inverse interaction length.
|
| |
| virtual double | getEnergyOfShower (const double E) const override |
| | Get energy of shower.
|
| |
| virtual double | getThetaRMS (const double E, const double Es) const override |
| | Get RMS of scattering angle.
|
| |
| int | getID () const |
| | Get identifier.
|
| |
| int & | getID () |
| | Get identifier.
|
| |
| void | setID (const int id) |
| | Set identifier.
|
| |
| bool | less (const JObjectID &object) const |
| | Less than method.
|
| |
| bool | less (const int id) const |
| | Less than method.
|
| |
| bool | more (const int id) const |
| | More than method.
|
| |
|
| double(JRadiation::* | sigma )(const double) const |
| | total cross section method
|
| |
| double(JRadiation::* | eloss )(const double) const |
| | energy loss method
|
| |
| double(JRadiation::* | theta )(const double, const double) const |
| | scattering angle method
|
| |
Implementation for calculation of inverse interaction length and shower energy.
This class implements the JRadiationInterface interface.
Definition at line 85 of file JRadiationSource.hh.
◆ JRadiationSource()
Constructor.
- Parameters
-
| id | radiation identifier |
| radiation | radiation |
| density | mass density of radiation material [gr/cm³] |
| source | radiation type |
Definition at line 99 of file JRadiationSource.hh.
102 :
104 std::shared_ptr<JRadiation>(radiation),
105 radiation_type(source),
107 {}
JRadiationInterface(const int id)
Constructor.
◆ getInverseInteractionLength()
| virtual double JPHYSICS::JRadiationSource::getInverseInteractionLength |
( |
const double | E | ) |
const |
|
inlineoverridevirtual |
Get inverse interaction length.
- Parameters
-
- Returns
- inverse interaction length [m^-1]
Implements JPHYSICS::JRadiationInterface.
Definition at line 116 of file JRadiationSource.hh.
117 {
118 return (get()->*
sigma)(E) *
rho * 1.0e6;
119 }
double(JRadiation::* sigma)(const double) const
total cross section method
◆ getEnergyOfShower()
| virtual double JPHYSICS::JRadiationSource::getEnergyOfShower |
( |
const double | E | ) |
const |
|
inlineoverridevirtual |
◆ getThetaRMS()
| virtual double JPHYSICS::JRadiationSource::getThetaRMS |
( |
const double | E, |
|
|
const double | Es ) const |
|
inlineoverridevirtual |
Get RMS of scattering angle.
- Parameters
-
| E | muon energy [GeV] |
| Es | shower energy [GeV] |
- Returns
- RMS scattering angle [rad]
Implements JPHYSICS::JRadiationInterface.
Definition at line 141 of file JRadiationSource.hh.
142 {
143 return (get()->*
theta)(E, Es/E);
144 }
double(JRadiation::* theta)(const double, const double) const
scattering angle method
◆ getID() [1/2]
| int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 50 of file JObjectID.hh.
◆ getID() [2/2]
| int & JLANG::JObjectID::getID |
( |
| ) |
|
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 61 of file JObjectID.hh.
◆ setID()
| void JLANG::JObjectID::setID |
( |
const int | id | ) |
|
|
inlineinherited |
Set identifier.
- Parameters
-
Definition at line 72 of file JObjectID.hh.
◆ less() [1/2]
| bool JLANG::JObjectID::less |
( |
const JObjectID & | object | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 84 of file JObjectID.hh.
85 {
86 return this->
getID() <
object.getID();
87 }
int getID() const
Get identifier.
◆ less() [2/2]
| bool JLANG::JObjectID::less |
( |
const int | id | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 96 of file JObjectID.hh.
97 {
98 return this->
getID() < id;
99 }
◆ more()
| bool JLANG::JObjectID::more |
( |
const int | id | ) |
const |
|
inlineinherited |
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 108 of file JObjectID.hh.
109 {
110 return this->
getID() > id;
111 }
◆ rho
| const double JPHYSICS::JRadiationSource::rho |
|
protected |
◆ __id
| int JLANG::JObjectID::__id |
|
protectedinherited |
◆ sigma
| double(JRadiation::* JPHYSICS::JRadiation::radiation_type::sigma) (const double) const |
|
inherited |
◆ eloss
| double(JRadiation::* JPHYSICS::JRadiation::radiation_type::eloss) (const double) const |
|
inherited |
◆ theta
| double(JRadiation::* JPHYSICS::JRadiation::radiation_type::theta) (const double, const double) const |
|
inherited |
The documentation for this class was generated from the following file: