#include <BremsstrahlungSimulator.h>
Public Member Functions | |
BremsstrahlungSimulator (double photonEnergyCut, double photonFractECut) | |
Constructor. More... | |
~BremsstrahlungSimulator () override | |
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 *) override |
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 25 of file BremsstrahlungSimulator.h.
BremsstrahlungSimulator::BremsstrahlungSimulator | ( | double | photonEnergyCut, |
double | photonFractECut | ||
) |
Constructor.
Definition at line 8 of file BremsstrahlungSimulator.cc.
References photonEnergy, fastSimProducer_cff::photonEnergyCut, and photonFractE.
|
inlineoverride |
|
private |
Compute Brem photon energy and angles, if any.
Definition at line 63 of file BremsstrahlungSimulator.cc.
References funct::cos(), JetChargeProducer_cfi::exp, RandomEngineAndDistribution::flatShoot(), gbteth(), dqm-mbProfile::log, M_PI, phi, createTree::pp, funct::sin(), theta(), and xmin.
Referenced by compute().
|
overrideprivatevirtual |
Generate Bremsstrahlung photons.
Implements MaterialEffectsSimulator.
Definition at line 14 of file BremsstrahlungSimulator.cc.
References MaterialEffectsSimulator::_theUpdatedState, brem(), mps_fire::i, dqm-mbProfile::log, makeParticle(), SiStripPI::max, RawParticle::momentum(), run3scouting_cff::nPhotons, photonEnergy, photonFractE, poisson(), MaterialEffectsSimulator::radLengths, RawParticle::rotate(), and xmin.
|
private |
A universal angular distribution - still from GEANT.
Definition at line 94 of file BremsstrahlungSimulator.cc.
References HLT_2023v12_cff::beta, ztail::d, RandomEngineAndDistribution::flatShoot(), dqm-mbProfile::log, M_PI, MaterialEffectsSimulator::theZ(), and w1.
Referenced by brem().
|
private |
Generate numbers according to a Poisson distribution of mean ymu.
Definition at line 113 of file BremsstrahlungSimulator.cc.
References JetChargeProducer_cfi::exp, RandomEngineAndDistribution::flatShoot(), dqmiodumpmetadata::n, TtFullHadEvtBuilder_cfi::prob, and x.
Referenced by compute().
|
private |
The minimum photon energy to be radiated, in GeV.
Definition at line 35 of file BremsstrahlungSimulator.h.
Referenced by BremsstrahlungSimulator(), compute(), and Jet.Jet::photonEnergyFraction().
|
private |
The minimum photon fractional energy (wrt that of the electron)
Definition at line 38 of file BremsstrahlungSimulator.h.
Referenced by BremsstrahlungSimulator(), and compute().
|
private |
The fractional photon energy cut (determined from the above two)
Definition at line 41 of file BremsstrahlungSimulator.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), brem(), compute(), and svgfig.Axes::SVG().