Jpp
master_rocky-37-gf0c5bc59d
the software that should make you happy
|
Implementation of the JScatteringModel interface with that combines two scattering models into one effective model. More...
#include <JScatteringModel.hh>
Public Member Functions | |
JCombinedScattering (JScatteringModel *_sm1, JScatteringModel *_sm2) | |
Constructor. More... | |
virtual double | getScatteringLength () |
double | getScatteringProbability (double ct) |
Return the probability density as a function of cos(theta) More... | |
JVersor3D | generateDirection () |
Return a randomly generated direction according to the scattering probability distribution. More... | |
Protected Attributes | |
double | a |
JScatteringModel * | sm1 |
JScatteringModel * | sm2 |
double | lambda_scat |
Implementation of the JScatteringModel interface with that combines two scattering models into one effective model.
Definition at line 520 of file JScatteringModel.hh.
|
inline |
Constructor.
Note that this only copies only the pointers to the JScatteringModel instances. So if _sm1 or _sm2 are deleted or changed, it will also affect the behaviour of this instance.
Definition at line 531 of file JScatteringModel.hh.
|
inlinevirtual |
Reimplemented from JMARKOV::JScatteringModel.
Definition at line 533 of file JScatteringModel.hh.
|
inlinevirtual |
Return the probability density as a function of cos(theta)
dP / dOmega = dP / dcosTheta dPhi
to scatter in a given direction. Theta=0 is forward scattering.
Implements JMARKOV::JScatteringModel.
Definition at line 540 of file JScatteringModel.hh.
|
inlinevirtual |
Return a randomly generated direction according to the scattering probability distribution.
This uses gRandom.
Implements JMARKOV::JScatteringModel.
Definition at line 550 of file JScatteringModel.hh.
|
protected |
Definition at line 564 of file JScatteringModel.hh.
|
protected |
Definition at line 565 of file JScatteringModel.hh.
|
protected |
Definition at line 566 of file JScatteringModel.hh.
|
protectedinherited |
Definition at line 77 of file JScatteringModel.hh.