Jpp test-rotations-old-533-g2bdbdb559
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 JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, 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(id)
41 {}
JObjectID()
Default constructor.
Definition JObjectID.hh:30

◆ ~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]

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

◆ __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: