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

Implementation for calculation of inverse interaction length and shower energy due to delta-rays from muon. More...

#include <JRadiationSource.hh>

Inheritance diagram for JPHYSICS::JDeltaRaysSource:
JPHYSICS::JRadiationInterface JLANG::JObjectID JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, int >

Public Member Functions

 JDeltaRaysSource (const int id, const double density, const double Tmin)
 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.
 

Protected Attributes

const double rho
 
const double Tmin
 minimal kinetic energy [GeV]
 
int __id
 

Detailed Description

Implementation for calculation of inverse interaction length and shower energy due to delta-rays from muon.

This class implements the JRadiationInterface interface.

Definition at line 220 of file JRadiationSource.hh.

Constructor & Destructor Documentation

◆ JDeltaRaysSource()

JPHYSICS::JDeltaRaysSource::JDeltaRaysSource ( const int id,
const double density,
const double Tmin )
inline

Constructor.

Parameters
idradiation identifier
densitymass density of radiation material [gr/cm³]
Aatomic mass
Zatomic number
Tminminimal kunetic energy [GeV]

Definition at line 233 of file JRadiationSource.hh.

235 :
237 rho(density),
238 Tmin(Tmin)
239 {}
const double Tmin
minimal kinetic energy [GeV]
JRadiationInterface(const int id)
Constructor.

Member Function Documentation

◆ getInverseInteractionLength()

virtual double JPHYSICS::JDeltaRaysSource::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 248 of file JRadiationSource.hh.

249 {
250 const double Tmax = JDeltaRays::getTmax(E, MASS_MUON);
251
252 return JDeltaRays::getCount(E, MASS_MUON, Tmin, Tmax) * rho * 1.0e2;
253 }
static double getCount(const double E, const double M, const double Tmin, const double Tmax, const double Z, const double A, const JFormFactor_t &F, const int N=1000000)
Get number of delta-rays per unit track length for an ionising particle with given energy and given m...
static double getTmax(const double E, const double M)
Get maximum delta-ray kinetic energy for given lepton energy and mass.
Definition JDeltaRays.hh:79

◆ getEnergyOfShower()

virtual double JPHYSICS::JDeltaRaysSource::getEnergyOfShower ( const double E) const
inlineoverridevirtual

Get energy of shower.

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

Implements JPHYSICS::JRadiationInterface.

Definition at line 262 of file JRadiationSource.hh.

263 {
264 const double Tmax = JDeltaRays::getTmax(E, MASS_MUON);
265
266 const double xmin = 1.0 / Tmax;
267 const double xmax = 1.0 / Tmin;
268
269 return 1.0 / gRandom->Uniform(xmin, xmax);
270 }

◆ getThetaRMS()

virtual double JPHYSICS::JDeltaRaysSource::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 280 of file JRadiationSource.hh.

281 {
282 return 0.0;
283 }

◆ getID() [1/2]

int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 50 of file JObjectID.hh.

51 {
52 return __id;
53 }

◆ getID() [2/2]

int & JLANG::JObjectID::getID ( )
inlineinherited

Get identifier.

Returns
identifier

Definition at line 61 of file JObjectID.hh.

62 {
63 return __id;
64 }

◆ setID()

void JLANG::JObjectID::setID ( const int id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 72 of file JObjectID.hh.

73 {
74 this->__id = id;
75 }

◆ less() [1/2]

bool JLANG::JObjectID::less ( const JObjectID & object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
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.
Definition JObjectID.hh:50

◆ less() [2/2]

bool JLANG::JObjectID::less ( const int id) const
inlineinherited

Less than method.

Parameters
ididentifier
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
ididentifier
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 }

Member Data Documentation

◆ rho

const double JPHYSICS::JDeltaRaysSource::rho
protected

Definition at line 286 of file JRadiationSource.hh.

◆ Tmin

const double JPHYSICS::JDeltaRaysSource::Tmin
protected

minimal kinetic energy [GeV]

Definition at line 287 of file JRadiationSource.hh.

◆ __id

int JLANG::JObjectID::__id
protectedinherited

Definition at line 140 of file JObjectID.hh.


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