66 : nForcedRegions(0),nSecBiasedRegions(0),eIonisation(nullptr),
67 currentStepLimit(0.0),startTracking(true)
94 for (
size_t j=0; j<numOfCouples; ++j) {
120 G4cout <<
" Forced Interaction is activated for "
123 <<
" inside G4Regions: " <<
G4endl;
130 G4cout <<
" Secondary biasing is activated for "
133 <<
" inside G4Regions: " <<
G4endl;
151 if(name ==
"" || name ==
"world" || name ==
"World") {
152 name =
"DefaultRegionForTheWorld";
156 G4cout <<
"### G4EmBiasingManager::ForcedInteraction WARNING: "
158 << rname <<
"> is unknown" <<
G4endl;
172 G4cout <<
"### G4EmBiasingManager::ForcedInteraction WARNING: "
173 << val <<
" < 0.0, so no activation for the G4Region <"
174 << rname <<
">" <<
G4endl;
196 if(name ==
"" || name ==
"world" || name ==
"World") {
197 name =
"DefaultRegionForTheWorld";
201 G4cout <<
"### G4EmBiasingManager::ActivateBremsstrahlungSplitting "
202 <<
"WARNING: G4Region <"
203 << rname <<
"> is unknown" <<
G4endl;
217 }
else if(0.0 < factor) {
273 std::vector<G4DynamicParticle*>& vd,
285 size_t n = vd.size();
299 }
else if(1 == nsplit) {
321 std::vector<G4DynamicParticle*>& vd,
333 size_t n = vd.size();
347 }
else if(1 == nsplit) {
374 size_t n = track.size();
386 for(
size_t k=0; k<
n; ++k) {
406 size_t n = vd.size();
412 for(
size_t k=0; k<
n; ++k) {
439 size_t n = vd.size();
442 if(1 != n || 1.0 <= w) {
return weight; }
450 if(1 < nsplit && trackWeight>w) {
458 for(
G4int k=1; k<nsplit; ++k) {
std::vector< G4double > lengthForRegion
void ActivateSecondaryBiasing(const G4String ®ion, G4double factor, G4double energyLimit)
const G4ThreeVector & GetProposedMomentumDirection() const
static constexpr double mm
const G4String & GetName() const
G4double ApplySplitting(std::vector< G4DynamicParticle * > &vd, const G4Track &track, G4VEmModel *currentModel, G4int index, G4double tcut)
G4VEnergyLossProcess * GetEnergyLossProcess(const G4ParticleDefinition *)
G4VEnergyLossProcess * eIonisation
const G4String & GetParticleName() const
void ActivateForcedInteraction(G4double length=0.0, const G4String &r="")
void SetProposedKineticEnergy(G4double proposedKinEnergy)
G4double ApplySecondaryBiasing(std::vector< G4DynamicParticle * > &, const G4Track &track, G4VEmModel *currentModel, G4ParticleChangeForGamma *pParticleChange, G4double &eloss, G4int coupleIdx, G4double tcut, G4double safety=0.0)
std::vector< const G4Region * > secBiasedRegions
void Initialise(const G4ParticleDefinition &part, const G4String &procName, G4int verbose)
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
std::vector< G4int > idxSecBiasedCouple
G4double GetWeight() const
G4double currentStepLimit
std::vector< G4int > idxForcedCouple
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4double GetStepLimit(G4int coupleIdx, G4double previousStep)
G4ParticleDefinition * GetDefinition() const
G4double GetRangeForLoss(G4double &kineticEnergy, const G4MaterialCutsCouple *)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
void ApplyRangeCut(std::vector< G4DynamicParticle * > &vd, const G4Track &track, G4double &eloss, G4double safety)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4double GetProposedKineticEnergy() const
static G4Electron * Electron()
size_t GetTableSize() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4double GetProposedKineticEnergy() const
static G4RegionStore * GetInstance()
std::vector< G4int > nBremSplitting
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
G4double ApplyRussianRoulette(std::vector< G4DynamicParticle * > &vd, G4int index)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
const G4ParticleDefinition * theElectron
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
static G4LossTableManager * Instance()
const G4ThreeVector & GetProposedMomentumDirection() const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
G4ProductionCuts * GetProductionCuts() const
std::vector< const G4Region * > forcedRegions
static const G4double reg
std::vector< G4double > secBiasedEnegryLimit
std::vector< G4double > secBiasedWeight
const G4DynamicParticle * GetDynamicParticle() const
std::vector< G4DynamicParticle * > tmpSecondaries