#include <MuonBremsstrahlungSimulator.h>
Public Member Functions | |
const XYZTLorentzVector & | deltaP_BremMuon () const |
const XYZTLorentzVector & | deltaP_BremPhoton () const |
MuonBremsstrahlungSimulator (const RandomEngine *engine, double A, double Z, double density, double radLen, double photonEnergyCut, double photonFractECut) | |
Constructor. More... | |
~MuonBremsstrahlungSimulator () | |
Default destructor. More... | |
Public Member Functions inherited from MaterialEffectsSimulator | |
RHEP_const_iter | beginDaughters () const |
Returns const iterator to the beginning of the daughters list. More... | |
int | closestDaughterId () |
The id of the closest charged daughter (filled for nuclear interactions only) More... | |
double | eMass () const |
Electron mass in GeV/c2. More... | |
RHEP_const_iter | endDaughters () const |
Returns const iterator to the end of the daughters list. More... | |
double | excitE () const |
Mean excitation energy (in GeV) More... | |
MaterialEffectsSimulator (const RandomEngine *engine, double A=28.0855, double Z=14.0000, double density=2.329, double radLen=9.360) | |
unsigned | nDaughters () const |
Returns the number of daughters. More... | |
XYZVector | orthogonal (const XYZVector &) const |
A vector orthogonal to another one (because it's not in XYZTLorentzVector) More... | |
double | radLenIncm () const |
One radiation length in cm. More... | |
double | rho () const |
Density in g/cm3. More... | |
void | setNormalVector (const GlobalVector &normal) |
Sets the vector normal to the surface traversed. More... | |
double | theA () const |
A. More... | |
double | theZ () const |
Z. More... | |
void | updateState (ParticlePropagator &myTrack, double radlen) |
Compute the material effect (calls the sub class) More... | |
virtual | ~MaterialEffectsSimulator () |
Private Member Functions | |
XYZTLorentzVector | brem (ParticlePropagator &p) const |
Compute Brem photon energy and angles, if any. More... | |
void | compute (ParticlePropagator &Particle) |
Generate Bremsstrahlung photons. More... | |
double | gbteth (const double ener, const double partm, const double efrac) const |
A universal angular distribution - still from GEANT. More... | |
unsigned int | poisson (double ymu) |
Generate numbers according to a Poisson distribution of mean ymu. More... | |
Private Attributes | |
XYZTLorentzVector | brem_photon |
double | bremProba |
double | d |
XYZTLorentzVector | deltaPMuon |
TF1 * | f1 |
int | npar |
double | photonEnergy |
The minimum photon energy to be radiated, in GeV. More... | |
double | photonFractE |
The minimum photon fractional energy (wrt that of the electron) More... | |
double | rand |
double | xmax |
double | xmin |
The fractional photon energy cut (determined from the above two) More... | |
Additional Inherited Members | |
Public Types inherited from MaterialEffectsSimulator | |
typedef std::vector < RawParticle > ::const_iterator | RHEP_const_iter |
Protected Attributes inherited from MaterialEffectsSimulator | |
std::vector< RawParticle > | _theUpdatedState |
double | A |
double | density |
double | radLen |
double | radLengths |
const RandomEngine * | random |
int | theClosestChargedDaughterId |
GlobalVector | theNormalVector |
double | Z |
Definition at line 31 of file MuonBremsstrahlungSimulator.h.
MuonBremsstrahlungSimulator::MuonBremsstrahlungSimulator | ( | const RandomEngine * | engine, |
double | A, | ||
double | Z, | ||
double | density, | ||
double | radLen, | ||
double | photonEnergyCut, | ||
double | photonFractECut | ||
) |
Constructor.
Definition at line 22 of file MuonBremsstrahlungSimulator.cc.
References d, LogDebug, photonEnergy, and photonFractE.
|
inline |
|
private |
Compute Brem photon energy and angles, if any.
Definition at line 131 of file MuonBremsstrahlungSimulator.cc.
References funct::cos(), gather_cfg::cout, f1, RandomEngine::flatShoot(), gbteth(), LogDebug, M_PI, phi, MaterialEffectsSimulator::random, funct::sin(), and theta().
Referenced by compute().
|
privatevirtual |
Generate Bremsstrahlung photons.
Implements MaterialEffectsSimulator.
Definition at line 38 of file MuonBremsstrahlungSimulator.cc.
References MaterialEffectsSimulator::_theUpdatedState, MaterialEffectsSimulator::A, brem(), brem_photon, bremProba, d, deltaPMuon, MaterialEffectsSimulator::density, f1, i, LogDebug, max(), RawParticle::momentum(), npar, PetrukhinFunc(), photonEnergy, photonFractE, RandomEngine::poissonShoot(), MaterialEffectsSimulator::radLen, MaterialEffectsSimulator::radLengths, MaterialEffectsSimulator::random, RawParticle::rotate(), xmax, xmin, and MaterialEffectsSimulator::Z.
|
inline |
Definition at line 45 of file MuonBremsstrahlungSimulator.h.
References deltaPMuon.
|
inline |
Definition at line 48 of file MuonBremsstrahlungSimulator.h.
References brem_photon.
|
private |
A universal angular distribution - still from GEANT.
Definition at line 160 of file MuonBremsstrahlungSimulator.cc.
References beta, d, RandomEngine::flatShoot(), create_public_lumi_plots::log, M_PI, MaterialEffectsSimulator::random, and MaterialEffectsSimulator::theZ().
Referenced by brem().
|
private |
Generate numbers according to a Poisson distribution of mean ymu.
|
private |
Definition at line 84 of file MuonBremsstrahlungSimulator.h.
Referenced by compute(), and deltaP_BremPhoton().
|
private |
Definition at line 59 of file MuonBremsstrahlungSimulator.h.
Referenced by compute().
|
private |
Definition at line 65 of file MuonBremsstrahlungSimulator.h.
Referenced by compute(), gbteth(), and MuonBremsstrahlungSimulator().
|
private |
Definition at line 82 of file MuonBremsstrahlungSimulator.h.
Referenced by compute(), and deltaP_BremMuon().
|
private |
Definition at line 53 of file MuonBremsstrahlungSimulator.h.
|
private |
Definition at line 55 of file MuonBremsstrahlungSimulator.h.
Referenced by compute().
|
private |
The minimum photon energy to be radiated, in GeV.
Definition at line 58 of file MuonBremsstrahlungSimulator.h.
Referenced by compute(), and MuonBremsstrahlungSimulator().
|
private |
The minimum photon fractional energy (wrt that of the electron)
Definition at line 61 of file MuonBremsstrahlungSimulator.h.
Referenced by compute(), and MuonBremsstrahlungSimulator().
|
private |
Definition at line 64 of file MuonBremsstrahlungSimulator.h.
|
private |
Definition at line 64 of file MuonBremsstrahlungSimulator.h.
Referenced by svgfig.XAxis::__repr__(), and compute().
|
private |
The fractional photon energy cut (determined from the above two)
Definition at line 64 of file MuonBremsstrahlungSimulator.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), compute(), and svgfig.Axes::SVG().