#include <BremsstrahlungSimulator.h>
Public Member Functions | |
BremsstrahlungSimulator (double photonEnergyCut, double photonFractECut) | |
Constructor. More... | |
~BremsstrahlungSimulator () | |
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 (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... | |
virtual void | save () |
Used by NuclearInteractionSimulator to save last sampled event. 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, RandomEngineAndDistribution const *) |
Compute the material effect (calls the sub class) More... | |
virtual | ~MaterialEffectsSimulator () |
Private Member Functions | |
XYZTLorentzVector | brem (ParticlePropagator &p, RandomEngineAndDistribution const *) const |
Compute Brem photon energy and angles, if any. More... | |
void | compute (ParticlePropagator &Particle, RandomEngineAndDistribution const *) |
Generate Bremsstrahlung photons. More... | |
double | gbteth (const double ener, const double partm, const double efrac, RandomEngineAndDistribution const *) const |
A universal angular distribution - still from GEANT. More... | |
unsigned int | poisson (double ymu, RandomEngineAndDistribution const *) |
Generate numbers according to a Poisson distribution of mean ymu. More... | |
Private Attributes | |
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 | 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 |
int | theClosestChargedDaughterId |
GlobalVector | theNormalVector |
double | Z |
Definition at line 26 of file BremsstrahlungSimulator.h.
BremsstrahlungSimulator::BremsstrahlungSimulator | ( | double | photonEnergyCut, |
double | photonFractECut | ||
) |
Constructor.
Definition at line 7 of file BremsstrahlungSimulator.cc.
References photonEnergy, and photonFractE.
|
inline |
|
private |
Compute Brem photon energy and angles, if any.
Definition at line 68 of file BremsstrahlungSimulator.cc.
References funct::cos(), create_public_lumi_plots::exp, RandomEngineAndDistribution::flatShoot(), gbteth(), cmsBatch::log, M_PI, phi, random, funct::sin(), theta(), histoStyle::weight, and xmin.
Referenced by compute().
|
privatevirtual |
Generate Bremsstrahlung photons.
Implements MaterialEffectsSimulator.
Definition at line 17 of file BremsstrahlungSimulator.cc.
References MaterialEffectsSimulator::_theUpdatedState, brem(), i, cmsBatch::log, bookConverter::max, RawParticle::momentum(), photonEnergy, photonFractE, poisson(), MaterialEffectsSimulator::radLengths, RawParticle::rotate(), and xmin.
|
private |
A universal angular distribution - still from GEANT.
Definition at line 102 of file BremsstrahlungSimulator.cc.
References beta, ztail::d, RandomEngineAndDistribution::flatShoot(), cmsBatch::log, M_PI, and MaterialEffectsSimulator::theZ().
Referenced by brem().
|
private |
Generate numbers according to a Poisson distribution of mean ymu.
Definition at line 123 of file BremsstrahlungSimulator.cc.
References create_public_lumi_plots::exp, RandomEngineAndDistribution::flatShoot(), gen::n, and x.
Referenced by compute().
|
private |
The minimum photon energy to be radiated, in GeV.
Definition at line 40 of file BremsstrahlungSimulator.h.
Referenced by BremsstrahlungSimulator(), and compute().
|
private |
The minimum photon fractional energy (wrt that of the electron)
Definition at line 43 of file BremsstrahlungSimulator.h.
Referenced by BremsstrahlungSimulator(), and compute().
|
private |
The fractional photon energy cut (determined from the above two)
Definition at line 46 of file BremsstrahlungSimulator.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), brem(), compute(), and svgfig.Axes::SVG().