50#ifndef G4AdjointCSManager_h
51#define G4AdjointCSManager_h 1
142 G4bool IsScatProjToProjCase,
143 std::vector<G4double>&
144 AdjointCS_for_each_element);
152 G4bool IsScatProjToProjCase);
175 std::vector< std::vector<G4AdjointCSMatrix*> > theAdjointCSMatricesForScatProjToProj;
176 std::vector< std::vector<G4AdjointCSMatrix*> > theAdjointCSMatricesForProdToProj;
177 std::vector< G4VEmAdjointModel*> listOfAdjointEMModel;
179 std::vector<G4AdjointCSMatrix*>
183 G4int nbin_pro_decade);
185 std::vector<G4AdjointCSMatrix*>
188 G4int nbin_pro_decade);
194 std::vector< size_t> listOfIndexOfAdjointEMModelInAction;
195 std::vector< G4bool> listOfIsScatProjToProjCase;
196 std::vector< std::vector<G4double> > lastAdjointCSVsModelsAndElements;
197 G4bool CrossSectionMatrixesAreBuilt;
198 size_t currentParticleIndex;
203 std::vector<G4PhysicsTable*> theTotalForwardSigmaTableVector;
204 std::vector<G4PhysicsTable*> theTotalAdjointSigmaTableVector;
205 std::vector< std::vector<G4double> > EminForFwdSigmaTables;
206 std::vector< std::vector<G4double> > EminForAdjSigmaTables;
207 std::vector< std::vector<G4double> > EkinofFwdSigmaMax;
208 std::vector< std::vector<G4double> > EkinofAdjSigmaMax;
209 G4bool TotalSigmaTableAreBuilt;
212 std::vector<G4PhysicsTable*> listSigmaTableForAdjointModelScatProjToProj;
213 std::vector<G4PhysicsTable*> listSigmaTableForAdjointModelProdToProj;
220 std::vector< std::vector<G4VEmProcess*>* > listOfForwardEmProcess;
221 std::vector< std::vector<G4VEnergyLossProcess*>* > listOfForwardEnergyLossProcess;
225 std::vector< G4ParticleDefinition*> theListOfAdjointParticlesInAction;
236 size_t currentMatIndex;
248 G4bool forward_CS_is_used;
void BuildTotalSigmaTables()
size_t RegisterEmAdjointModel(G4VEmAdjointModel *)
void RegisterAdjointParticle(G4ParticleDefinition *aPartDef)
G4ParticleDefinition * GetForwardParticleEquivalent(G4ParticleDefinition *theAdjPartDef)
void GetMaxAdjTotalCS(G4ParticleDefinition *aPartDef, const G4MaterialCutsCouple *aCouple, G4double &e_sigma_max, G4double &sigma_max)
G4double GetCrossSectionCorrection(G4ParticleDefinition *aPartDef, G4double PreStepEkin, const G4MaterialCutsCouple *aCouple, G4bool &fwd_is_used, G4double &fwd_TotCS)
G4double GetTotalForwardCS(G4ParticleDefinition *aPartDef, G4double Ekin, const G4MaterialCutsCouple *aCouple)
void SetIon(G4ParticleDefinition *adjIon, G4ParticleDefinition *fwdIon)
G4double ComputeTotalAdjointCS(const G4MaterialCutsCouple *aMatCutCouple, G4ParticleDefinition *aPart, G4double PrimEnergy)
G4ParticleDefinition * GetAdjointParticleEquivalent(G4ParticleDefinition *theFwdPartDef)
G4Element * SampleElementFromCSMatrices(G4Material *aMaterial, G4VEmAdjointModel *aModel, G4double PrimEnergy, G4double Tcut, G4bool IsScatProjToProjCase)
void SetNbins(G4int aInt)
G4double GetContinuousWeightCorrection(G4ParticleDefinition *aPartDef, G4double PreStepEkin, G4double AfterStepEkin, const G4MaterialCutsCouple *aCouple, G4double step_length)
void SetTmin(G4double aVal)
G4double GetPostStepWeightCorrection()
void GetEminForTotalCS(G4ParticleDefinition *aPartDef, const G4MaterialCutsCouple *aCouple, G4double &emin_adj, G4double &emin_fwd)
static G4AdjointCSManager * GetAdjointCSManager()
G4double GetTotalAdjointCS(G4ParticleDefinition *aPartDef, G4double Ekin, const G4MaterialCutsCouple *aCouple)
G4double GetAdjointSigma(G4double Ekin_nuc, size_t index_model, G4bool is_scat_proj_to_proj, const G4MaterialCutsCouple *aCouple)
void RegisterEmProcess(G4VEmProcess *aProcess, G4ParticleDefinition *aPartDef)
void SetTmax(G4double aVal)
void BuildCrossSectionMatrices()
void RegisterEnergyLossProcess(G4VEnergyLossProcess *aProcess, G4ParticleDefinition *aPartDef)
void GetMaxFwdTotalCS(G4ParticleDefinition *aPartDef, const G4MaterialCutsCouple *aCouple, G4double &e_sigma_max, G4double &sigma_max)
G4double ComputeAdjointCS(G4Material *aMaterial, G4VEmAdjointModel *aModel, G4double PrimEnergy, G4double Tcut, G4bool IsScatProjToProjCase, std::vector< G4double > &AdjointCS_for_each_element)
void SetFwdCrossSectionMode(G4bool aBool)