47 delete fParticleChange;
52 std::ostream& out)
const
55 "Continuous processes act on adjoint particles to continuously correct their "
56 "weight during the adjoint reverse tracking. This process is needed when "
57 "the adjoint cross sections are not scaled such that the total adjoint cross "
58 "section matches the total forward cross section. By default the mode where "
59 "the total adjoint cross section is equal to the total forward cross section "
60 "is used and therefore this along step weightcorrection factor is 1. However "
61 "in some cases (some energy ranges) the total forward cross section or the "
62 "total adjoint cross section can be zero. In this case the along step weight "
63 "correction is needed and is given by exp(-(Sigma_tot_adj-Sigma_tot_fwd).dx)"
80 thePartDef, fPreStepKinEnergy, Tkin, fCurrentCouple, length);
93 if(new_weight == 0. || (new_weight <= 0. && new_weight > 0.))
102 return fParticleChange;
G4double GetContinuousStepLimit(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double ¤tSafety) override
void ProcessDescription(std::ostream &) const override
~G4AdjointAlongStepWeightCorrection() override
G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &) override
G4AdjointAlongStepWeightCorrection(const G4String &name="ContinuousWeightCorrection", G4ProcessType type=fElectromagnetic)
G4double GetContinuousWeightCorrection(G4ParticleDefinition *aPartDef, G4double PreStepEkin, G4double AfterStepEkin, const G4MaterialCutsCouple *aCouple, G4double step_length)
static G4AdjointCSManager * GetAdjointCSManager()
void Initialize(const G4Track &) override
G4double GetKineticEnergy() const
G4double GetWeight() const
G4double GetStepLength() const
G4StepPoint * GetPostStepPoint() const
const G4DynamicParticle * GetDynamicParticle() const
G4double GetKineticEnergy() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
void SetSecondaryWeightByProcess(G4bool)
void SetParentWeightByProcess(G4bool)
void ProposeParentWeight(G4double finalWeight)