Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JPHYSICS::JRadiationInterface Class Referenceabstract

Interface for calculation of inverse interaction length and shower energy. More...

#include <JRadiationSource.hh>

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

Public Member Functions

 JRadiationInterface (const int id)
 Constructor.
 
virtual ~JRadiationInterface ()
 Virtual destructor.
 
virtual double getInverseInteractionLength (const double E) const =0
 Get inverse interaction length.
 
virtual double getEnergyOfShower (const double E) const =0
 Get energy of shower.
 
virtual double getThetaRMS (const double E, const double Es) const =0
 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

int _id_
 

Detailed Description

Interface for calculation of inverse interaction length and shower energy.

Definition at line 30 of file JRadiationSource.hh.

Constructor & Destructor Documentation

◆ JRadiationInterface()

JPHYSICS::JRadiationInterface::JRadiationInterface ( const int id)
inline

Constructor.

Parameters
idradiation identifier

Definition at line 39 of file JRadiationSource.hh.

39 :
40 JObjectID<JRadiationInterface>(id)
41 {}

◆ ~JRadiationInterface()

virtual JPHYSICS::JRadiationInterface::~JRadiationInterface ( )
inlinevirtual

Virtual destructor.

Definition at line 47 of file JRadiationSource.hh.

48 {}

Member Function Documentation

◆ getInverseInteractionLength()

virtual double JPHYSICS::JRadiationInterface::getInverseInteractionLength ( const double E) const
pure virtual

Get inverse interaction length.

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

Implemented in JPHYSICS::JDeltaRaysSource, JPHYSICS::JDISSource, and JPHYSICS::JRadiationSource.

◆ getEnergyOfShower()

virtual double JPHYSICS::JRadiationInterface::getEnergyOfShower ( const double E) const
pure virtual

Get energy of shower.

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

Implemented in JPHYSICS::JDeltaRaysSource, JPHYSICS::JDISSource, and JPHYSICS::JRadiationSource.

◆ getThetaRMS()

virtual double JPHYSICS::JRadiationInterface::getThetaRMS ( const double E,
const double Es ) const
pure virtual

Get RMS of scattering angle.

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

Implemented in JPHYSICS::JDeltaRaysSource, JPHYSICS::JDISSource, and JPHYSICS::JRadiationSource.

◆ getID() [1/2]

template<class T >
int JLANG::JObjectID< T >::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 63 of file JObjectID.hh.

64 {
65 return _id_;
66 }

◆ getID() [2/2]

template<class T >
int & JLANG::JObjectID< T >::getID ( )
inlineinherited

Get identifier.

Returns
identifier

Definition at line 74 of file JObjectID.hh.

75 {
76 return _id_;
77 }

◆ setID()

template<class T >
void JLANG::JObjectID< T >::setID ( const int id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 85 of file JObjectID.hh.

86 {
87 this->_id_ = id;
88 }

◆ less() [1/2]

template<class T >
bool JLANG::JObjectID< T >::less ( const JObjectID< T > & object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 97 of file JObjectID.hh.

98 {
99 return this->getID() < object.getID();
100 }
int getID() const
Get identifier.
Definition JObjectID.hh:63

◆ less() [2/2]

template<class T >
bool JLANG::JObjectID< T >::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 109 of file JObjectID.hh.

110 {
111 return this->getID() < id;
112 }

◆ more()

template<class T >
bool JLANG::JObjectID< T >::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 121 of file JObjectID.hh.

122 {
123 return this->getID() > id;
124 }

Member Data Documentation

◆ _id_

template<class T >
int JLANG::JObjectID< T >::_id_
protectedinherited

Definition at line 153 of file JObjectID.hh.


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