133 for (
size_t j=0; j<msc; ++j) {
137 for (
size_t k=0; k<emp; ++k) {
143 for (
size_t a=0;
a<mod; ++
a) {
146 for (
size_t b=0; b<fmod; ++b) {
155 for (
size_t b=0; b<fmod; ++b) {
227 G4cout <<
"G4LossTableManager::Register G4VEnergyLossProcess : "
277 for (
G4int i=0; i<
n; ++i) {
281 G4cout <<
"G4LossTableManager::Register G4VMultipleScattering : "
293 for (
size_t i=0; i<msc; ++i) {
304 for (
G4int i=0; i<
n; ++i) {
308 G4cout <<
"G4LossTableManager::Register G4VEmProcess : "
320 for (
size_t i=0; i<emp; ++i) {
331 G4cout <<
"G4LossTableManager::Register G4VEmModel : "
342 for (
size_t i=0; i<
n; ++i) {
356 G4cout <<
"G4LossTableManager::Register G4VEmFluctuationModel : "
366 for (
size_t i=0; i<
n; ++i) {
377 if(!p || !part) {
return; }
382 G4cout <<
"G4LossTableManager::RegisterExtraParticle "
405 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
416 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
445 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
454 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
474 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
484 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
513 G4cout <<
"### G4LossTableManager::LocalPhysicsTable() for "
527 G4cout <<
"===== G4LossTableManager::LocalPhysicsTable() for run "
575 G4cout <<
"### G4LossTableManager::LocalPhysicsTable end"
580 G4cout <<
"%%%%% All dEdx and Range tables for worker are ready for run "
593 G4cout <<
"### G4LossTableManager::BuildPhysicsTable() for "
605 G4cout <<
"===== G4LossTableManager::BuildPhysicsTable() for run "
617 G4cout <<
"### G4LossTableManager start initilisation for first particle "
643 G4cout <<
" base particle "
682 G4cout <<
"### G4LossTableManager::BuildPhysicsTable end: "
688 G4cout <<
"%%%%% All dEdx and Range tables are built for master run= "
725 <<
" tables are assigned"
742 G4cout <<
"G4LossTableManager::BuildTables() for "
746 std::vector<G4PhysicsTable*> t_list;
747 std::vector<G4VEnergyLossProcess*> loss_list;
748 std::vector<G4bool> build_flags;
759 for (i=0; i<
n_loss; ++i) {
767 for(
G4int j=0; j<nvec; ++j) {
769 if(ptr == (*pvec)[j]) {
794 loss_list.push_back(p);
795 build_flags.push_back(val);
800 G4int n_dedx = t_list.size();
801 if (0 == n_dedx || !em) {
802 G4cout <<
"G4LossTableManager WARNING: no DEDX processes for "
809 G4cout <<
"G4LossTableManager::BuildTables() start to build range tables"
810 <<
" and the sum of " << n_dedx <<
" processes"
813 <<
" nSubRegions= " << nSubRegions;
862 std::vector<G4PhysicsTable*> listSub;
863 std::vector<G4PhysicsTable*> listCSDA;
865 for (i=0; i<n_dedx; ++i) {
871 if (0 < nSubRegions) {
874 listSub.push_back(dedx);
883 listCSDA.push_back(dedx);
887 if (0 < nSubRegions) {
889 if (1 < listSub.size()) {
912 G4cout <<
"G4LossTableManager::BuildTables: Tables are built for "
927 ed <<
"Energy loss process not found for " << aParticle->
GetParticleName()
929 G4Exception(
"G4LossTableManager::ParticleHaveNoLoss",
"em0001",
942 const std::vector<G4VEnergyLossProcess*>&
957 const std::vector<G4VMultipleScattering*>&
1012 G4String ss =
"G4LossTableManager::" + tit;
G4EmConfigurator * EmConfigurator()
void BuildRangeTable(const G4PhysicsTable *dedxTable, G4PhysicsTable *rangeTable, G4bool isIonisation=false)
void SetDEDXTable(G4PhysicsTable *p, G4EmTableType tType)
G4int WorkerVerbose() const
static G4LossTableManager * Instance()
void InitialiseAtomicDeexcitation()
G4VAtomDeexcitation * atomDeexcitation
std::ostringstream G4ExceptionDescription
void SetVerbose(G4int verb)
void SetIonisation(G4bool val)
G4VSubCutProducer * subcutProducer
std::vector< G4VEmModel * > mod_vector
G4PhysicsTable * SubLambdaTable() const
std::vector< ExP01TrackerHit * > a
G4ElectronIonPair * emElectronIonPair
void DeRegister(G4VEnergyLossProcess *p)
G4PhysicsTable * RangeTableForLoss() const
void push_back(G4PhysicsVector *)
static G4ThreadLocal G4LossTableManager * instance
void AddCollaborativeProcess(G4VEnergyLossProcess *)
G4PhysicsTable * CSDARangeTable() const
const G4String & GetName() const
void CopyTables(const G4ParticleDefinition *aParticle, G4VEnergyLossProcess *)
std::vector< G4PhysicsTable * > range_vector
G4PhysicsTable * IonisationTableForSubsec() const
G4PhysicsTable * IonisationTable() const
const std::vector< G4VEmProcess * > & GetEmProcessVector()
G4PhysicsTable * BuildLambdaTable(G4EmTableType tType=fRestricted)
static G4PhysicsTable * PreparePhysicsTable(G4PhysicsTable *physTable)
const G4String & GetParticleName() const
std::map< PD, G4VEnergyLossProcess *, std::less< PD > > loss_map
G4EmConfigurator * emConfigurator
void SetVerboseLevel(G4int)
void SetInitialisationFlag(G4bool flag)
G4VEnergyLossProcess * BuildTables(const G4ParticleDefinition *aParticle)
G4bool BuildCSDARange() const
G4EmSaturation * GetEmSaturation()
G4PhysicsTable * LambdaTable() const
void ParticleHaveNoLoss(const G4ParticleDefinition *aParticle)
void SetInverseRangeTable(G4PhysicsTable *p)
const G4ParticleDefinition * SecondaryParticle() const
void SetSubCutProducer(G4VSubCutProducer *)
G4GLOB_DLL std::ostream G4cout
G4PhysicsTable * DEDXTable() const
std::vector< G4VEmFluctuationModel * > fmod_vector
G4VEnergyLossProcess * currentLoss
G4ElectronIonPair * ElectronIonPair()
G4EmSaturation * EmSaturation()
G4bool startInitialisation
G4int NumberOfSubCutoffRegions() const
void Register(G4VEnergyLossProcess *p)
const G4ParticleDefinition * BaseParticle() const
void BuildInverseRangeTable(const G4PhysicsTable *rangeTable, G4PhysicsTable *invRangeTable, G4bool isIonisation=false)
G4PhysicsTable * DEDXTableForSubsec() const
const G4String & GetProcessName() const
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void RegisterExtraParticle(const G4ParticleDefinition *aParticle, G4VEnergyLossProcess *p)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::vector< G4PhysicsTable * > inv_range_vector
void BuildDEDXTable(G4PhysicsTable *dedxTable, const std::vector< G4PhysicsTable * > &)
void SetVerbose(G4int value)
G4EmParameters * theParameters
G4EmCorrections * emCorrections
void SetLambdaTable(G4PhysicsTable *p)
G4bool all_tables_are_built
const G4String & GetName() const
G4PhysicsTable * InverseRangeTable() const
void BuildPhysicsTable(const G4ParticleDefinition *aParticle)
G4LossTableBuilder * tableBuilder
const G4ParticleDefinition * Particle() const
G4ProcessManager * GetProcessManager() const
std::vector< G4PhysicsTable * > dedx_vector
void PrepareModels(const G4ParticleDefinition *aParticle, G4VEnergyLossProcess *p)
static G4EmParameters * Instance()
std::vector< G4VEnergyLossProcess * > loss_vector
void PreparePhysicsTable(const G4ParticleDefinition *aParticle, G4VEnergyLossProcess *p, G4bool theMaster)
void SetCSDARangeTable(G4PhysicsTable *pRange)
void PrintEWarning(G4String, G4double)
void SetVerbose(G4int val)
void LocalPhysicsTables(const G4ParticleDefinition *aParticle, G4VEnergyLossProcess *p)
static G4Electron * Electron()
std::vector< PD > part_vector
const G4String & GetName() const
std::vector< G4bool > isActive
void SetSecondaryRangeTable(G4PhysicsTable *p)
std::vector< G4VEmProcess * > emp_vector
G4PhysicsTable * DEDXunRestrictedTable() const
void SetSubLambdaTable(G4PhysicsTable *p)
std::vector< PD > base_part_vector
void SetRangeTableForLoss(G4PhysicsTable *p)
std::vector< G4VMultipleScattering * > msc_vector
void SetAtomDeexcitation(G4VAtomDeexcitation *)
G4PhysicsTable * BuildDEDXTable(G4EmTableType tType=fRestricted)
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
G4ProcessVector * GetProcessList() const
std::vector< G4bool > tables_are_built
void SetSplineFlag(G4bool flag)
G4bool IsIonisationProcess() const