Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ImportanceBiasing Class Reference

#include <G4ImportanceBiasing.hh>

+ Inheritance diagram for G4ImportanceBiasing:

Public Member Functions

 G4ImportanceBiasing (const G4String &name="NoParallelWP")
 
 G4ImportanceBiasing (G4GeometrySampler *mgs, const G4String &name="NoParallelWP")
 
virtual ~G4ImportanceBiasing ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
 
G4String namePhysics = ""
 
G4int typePhysics = 0
 
G4ParticleTabletheParticleTable = nullptr
 
G4int g4vpcInstanceID = 0
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 40 of file G4ImportanceBiasing.hh.

Constructor & Destructor Documentation

◆ G4ImportanceBiasing() [1/2]

G4ImportanceBiasing::G4ImportanceBiasing ( const G4String name = "NoParallelWP")

Definition at line 59 of file G4ImportanceBiasing.cc.

60: G4VPhysicsConstructor(name), fGeomSampler(0), paraFlag(false)
61{;}

◆ G4ImportanceBiasing() [2/2]

G4ImportanceBiasing::G4ImportanceBiasing ( G4GeometrySampler mgs,
const G4String name = "NoParallelWP" 
)

Definition at line 65 of file G4ImportanceBiasing.cc.

66: G4VPhysicsConstructor(name), fGeomSampler(mgs), paraFlag(false), paraName(name)
67{
68 if(name != "NoParallelWP") {
69 paraFlag = true;
70 paraName = name;
71 }
72}
const char * name(G4int ptype)

◆ ~G4ImportanceBiasing()

G4ImportanceBiasing::~G4ImportanceBiasing ( )
virtual

Definition at line 76 of file G4ImportanceBiasing.cc.

77{;}

Member Function Documentation

◆ ConstructParticle()

void G4ImportanceBiasing::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 81 of file G4ImportanceBiasing.cc.

82{;}

◆ ConstructProcess()

void G4ImportanceBiasing::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 86 of file G4ImportanceBiasing.cc.

87{
88 G4cout << " paraFlag: " << paraFlag << G4endl;
89
90 static G4bool first = true;
91 if(first) {
92 G4cout << " Preparing Importance Sampling " << G4endl;
93 fGeomSampler->SetParallel(paraFlag);
94 if(paraFlag) {
95 fGeomSampler->PrepareImportanceSampling(G4IStore::GetInstance(paraName), 0);
96 } else {
98 }
99 }
100
101 if(first) {
102 fGeomSampler->Configure();
103 first = false;
104 }
105
106#ifdef G4MULTITHREADED
107 fGeomSampler->AddProcess();
108#endif
109
110}
bool G4bool
Definition: G4Types.hh:86
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void SetParallel(G4bool paraflag)
virtual void PrepareImportanceSampling(G4VIStore *istore, const G4VImportanceAlgorithm *ialg)
virtual void Configure()
virtual void AddProcess()
static G4IStore * GetInstance()
Definition: G4IStore.cc:243

The documentation for this class was generated from the following files: