Jpp
master_rocky-40-g5f0272dcd
the software that should make you happy
|
Implementation of the JSourceModel class that represents a directed source with a flat intensity distribution. More...
#include <JScatteringModel.hh>
Public Member Functions | |
JDirectedSource (JVersor3D _source_dir, double _alpha, bool _cutSurface=false, const JVersor3D _surface_normal=JVersor3D()) | |
Constructor. More... | |
double | getOpeningAngle () const |
return the opening angle in radians More... | |
JVersor3D | getDirection () const |
return the source direction More... | |
double | getEmissionProbability (JVersor3D dir) |
Return the probability density. More... | |
JVersor3D | generateDirection () |
Return a randomly generated direction according to the emission distribution. More... | |
void | setPosition (JPosition3D &_pos) |
const JPosition3D & | getPosition () const |
Protected Member Functions | |
double | getPhiMax (double theta) |
For a given angle theta with respect to the beam direction, and a given surface normal, we define phi as the rotation angle around the beam, where phi=0 corresponds to the direction sticking out over the surface a much as possible. More... | |
Protected Attributes | |
JVersor3D | source_dir |
double | ctmin |
double | alpha |
bool | cutSurface |
JVersor3D | surface_normal |
double | delta |
double | omega |
JPosition3D | pos |
Implementation of the JSourceModel class that represents a directed source with a flat intensity distribution.
When _cutSurface = true, photons that would be emitted into the surface (defined by the surface normal) will not be emitted.
Definition at line 144 of file JScatteringModel.hh.
|
inline |
Constructor.
_source_dir is the source direction _alpha is the opening angle in radians
note that _alpha should be > -1
Definition at line 154 of file JScatteringModel.hh.
|
inline |
|
inline |
|
inlinevirtual |
Return the probability density.
dP / dOmega = dP / dCosTheta dPhi
that a photon from this source is emitted in a given direction, given that a photon is emitted.
Implements JMARKOV::JSourceModel.
Definition at line 210 of file JScatteringModel.hh.
|
inlinevirtual |
Return a randomly generated direction according to the emission distribution.
This uses gRandom.
Implements JMARKOV::JSourceModel.
Definition at line 219 of file JScatteringModel.hh.
|
inlineprotected |
For a given angle theta with respect to the beam direction, and a given surface normal, we define phi as the rotation angle around the beam, where phi=0 corresponds to the direction sticking out over the surface a much as possible.
This function returns 'phi max', which is the largest value of phi for which the direction does not point into the surface.
Definition at line 242 of file JScatteringModel.hh.
|
inlineinherited |
Definition at line 108 of file JScatteringModel.hh.
|
inlineinherited |
Definition at line 110 of file JScatteringModel.hh.
|
protected |
Definition at line 256 of file JScatteringModel.hh.
|
protected |
Definition at line 257 of file JScatteringModel.hh.
|
protected |
Definition at line 258 of file JScatteringModel.hh.
|
protected |
Definition at line 259 of file JScatteringModel.hh.
|
protected |
Definition at line 260 of file JScatteringModel.hh.
|
protected |
Definition at line 261 of file JScatteringModel.hh.
|
protected |
Definition at line 263 of file JScatteringModel.hh.
|
protectedinherited |
Definition at line 114 of file JScatteringModel.hh.