#include <NuclearInteractionFTFSimulator.h>
Public Member Functions | |
NuclearInteractionFTFSimulator (unsigned int distAlgo, double distCut) | |
Constructor. More... | |
~NuclearInteractionFTFSimulator () | |
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 | |
void | compute (ParticlePropagator &Particle, RandomEngineAndDistribution const *) |
Generate a nuclear interaction according to the probability that it happens. More... | |
double | distanceToPrimary (const RawParticle &Particle, const RawParticle &aDaughter) const |
void | saveDaughter (ParticlePropagator &Particle, const G4LorentzVector &lv, int pdgid) |
Private Attributes | |
G4LorentzVector | curr4Mom |
int | currIdx |
const G4ParticleDefinition * | currParticle |
G4Track * | currTrack |
double | distMin |
G4Step * | dummyStep |
int | numHadrons |
G4Nucleus | targetNucleus |
G4ThreeVector | theBoost |
G4GeneratorPrecompoundInterface * | theCascade |
unsigned int | theDistAlgo |
double | theDistCut |
double | theEnergyLimit |
std::vector< const G4ParticleDefinition * > | theG4Hadron |
G4TheoFSGenerator * | theHadronicModel |
std::vector< int > | theId |
G4LundStringFragmentation * | theLund |
std::vector< double > | theNuclIntLength |
G4HadProjectile | theProjectile |
G4ExcitedStringDecay * | theStringDecay |
G4FTFModel * | theStringModel |
G4ThreeVector | vectProj |
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 36 of file NuclearInteractionFTFSimulator.h.
NuclearInteractionFTFSimulator::NuclearInteractionFTFSimulator | ( | unsigned int | distAlgo, |
double | distCut | ||
) |
Constructor.
Definition at line 63 of file NuclearInteractionFTFSimulator.cc.
References currIdx, currParticle, currTrack, dummyStep, GeV, i, numHadrons, targetNucleus, theBoost, theEnergyLimit, theG4Hadron, theHadronicModel, theId, theLund, theNuclIntLength, theStringDecay, theStringModel, and vectProj.
NuclearInteractionFTFSimulator::~NuclearInteractionFTFSimulator | ( | ) |
Default Destructor.
Definition at line 177 of file NuclearInteractionFTFSimulator.cc.
References theLund, theStringDecay, and theStringModel.
|
privatevirtual |
Generate a nuclear interaction according to the probability that it happens.
Implements MaterialEffectsSimulator.
Definition at line 184 of file NuclearInteractionFTFSimulator.cc.
References MaterialEffectsSimulator::_theUpdatedState, funct::cos(), curr4Mom, currIdx, currParticle, currTrack, dir, distMin, dummyStep, alignCSCRings::e, RandomEngineAndDistribution::flatShoot(), GeV, j, RawParticle::momentum(), numHadrons, phi, RawParticle::pid(), MaterialEffectsSimulator::radLengths, query::result, saveDaughter(), funct::sin(), mathSSE::sqrt(), targetNucleus, theBoost, MaterialEffectsSimulator::theClosestChargedDaughterId, theEnergyLimit, theG4Hadron, theHadronicModel, theId, theNuclIntLength, theProjectile, and vectProj.
|
private |
Definition at line 315 of file NuclearInteractionFTFSimulator.cc.
References RawParticle::charge(), HLT_25ns14e33_v1_cff::distance, and theDistAlgo.
Referenced by saveDaughter().
|
private |
Definition at line 296 of file NuclearInteractionFTFSimulator.cc.
References MaterialEffectsSimulator::_theUpdatedState, HLT_25ns14e33_v1_cff::distance, distanceToPrimary(), distMin, fact, customizeTrackingMonitorSeedNumber::idx, MaterialEffectsSimulator::theClosestChargedDaughterId, and theDistCut.
Referenced by compute().
|
private |
Definition at line 72 of file NuclearInteractionFTFSimulator.h.
Referenced by compute().
|
private |
Definition at line 82 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 68 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 67 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 79 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and saveDaughter().
|
private |
Definition at line 66 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 81 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 70 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 74 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 64 of file NuclearInteractionFTFSimulator.h.
|
private |
Definition at line 83 of file NuclearInteractionFTFSimulator.h.
Referenced by distanceToPrimary().
|
private |
Definition at line 78 of file NuclearInteractionFTFSimulator.h.
Referenced by saveDaughter().
|
private |
Definition at line 76 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 56 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 60 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 58 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 63 of file NuclearInteractionFTFSimulator.h.
Referenced by NuclearInteractionFTFSimulator(), and ~NuclearInteractionFTFSimulator().
|
private |
Definition at line 57 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().
|
private |
Definition at line 71 of file NuclearInteractionFTFSimulator.h.
Referenced by compute().
|
private |
Definition at line 62 of file NuclearInteractionFTFSimulator.h.
Referenced by NuclearInteractionFTFSimulator(), and ~NuclearInteractionFTFSimulator().
|
private |
Definition at line 61 of file NuclearInteractionFTFSimulator.h.
Referenced by NuclearInteractionFTFSimulator(), and ~NuclearInteractionFTFSimulator().
|
private |
Definition at line 73 of file NuclearInteractionFTFSimulator.h.
Referenced by compute(), and NuclearInteractionFTFSimulator().